	.file	"73575978.c"
	.intel_syntax noprefix
	.text
	.globl	filename
	.section	.rodata
.LC0:
	.string	"test.txt"
	.section	.data.rel.local,"aw"
	.align 8
	.type	filename, @object
	.size	filename, 8
filename:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"openat"
	.text
	.globl	my_openat
	.type	my_openat, @function
my_openat:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR filename[rip]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, -100
	mov	eax, 0
	call	openat@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L1
	lea	rdi, .LC1[rip]
	call	perror@PLT
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	my_openat, .-my_openat
	.section	.rodata
.LC2:
	.string	"."
.LC3:
	.string	"my_openat2"
	.text
	.globl	my_openat2
	.type	my_openat2, @function
my_openat2:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	lea	rdi, .LC2[rip]
	call	opendir@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	dirfd@PLT
	mov	DWORD PTR -16[rbp], eax
	mov	rcx, QWORD PTR filename[rip]
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	openat@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	nop
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	my_openat2, .-my_openat2
	.section	.rodata
	.align 8
.LC4:
	.string	"/home/zing/workspace/c/learn-c/cmake-build-debug/linux/fcntl"
.LC5:
	.string	"my_openat3"
	.text
	.globl	my_openat3
	.type	my_openat3, @function
my_openat3:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	edx, 0
	lea	rsi, .LC4[rip]
	mov	edi, -100
	mov	eax, 0
	call	openat@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	nop
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	my_openat3, .-my_openat3
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	my_openat
	mov	eax, 0
	call	my_openat2
	mov	eax, 0
	call	my_openat3
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"73575978.c"
	.text
	.global	filename
	.section	.rodata
	.align	2
.LC0:
	.ascii	"test.txt\000"
	.data
	.align	2
	.type	filename, %object
	.size	filename, 4
filename:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"openat\000"
	.text
	.align	2
	.global	my_openat
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_openat, %function
my_openat:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, r3
	mvn	r0, #99
	bl	openat
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L1
	ldr	r0, .L3+4
	bl	perror
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	filename
	.word	.LC1
	.size	my_openat, .-my_openat
	.section	.rodata
	.align	2
.LC2:
	.ascii	".\000"
	.align	2
.LC3:
	.ascii	"my_openat2\000"
	.text
	.align	2
	.global	my_openat2
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_openat2, %function
my_openat2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r0, .L7
	bl	opendir
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	dirfd
	str	r0, [fp, #-12]
	ldr	r3, .L7+4
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	openat
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L5
	ldr	r0, .L7+8
	bl	perror
	nop
.L5:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC2
	.word	filename
	.word	.LC3
	.size	my_openat2, .-my_openat2
	.section	.rodata
	.align	2
.LC4:
	.ascii	"/home/zing/workspace/c/learn-c/cmake-build-debug/li"
	.ascii	"nux/fcntl\000"
	.align	2
.LC5:
	.ascii	"my_openat3\000"
	.text
	.align	2
	.global	my_openat3
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_openat3, %function
my_openat3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r2, #0
	ldr	r1, .L11
	mvn	r0, #99
	bl	openat
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L11+4
	bl	perror
	nop
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC5
	.size	my_openat3, .-my_openat3
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	my_openat
	bl	my_openat2
	bl	my_openat3
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
