	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_with_trace               ## -- Begin function close_with_trace
	.p2align	4, 0x90
_close_with_trace:                      ## @close_with_trace
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	%edi, %r13d
	xorl	%eax, %eax
	callq	_prepare_to_trace
	movq	_errno@GOTPCREL(%rip), %rbx
	movq	$0, (%rbx)
	movl	%r13d, %edi
	callq	_close
	movl	%eax, %r14d
	movq	_procfs_trace@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.1:
	movq	_info_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_procfs_file@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
## %bb.3:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	movq	(%rbx), %rdi
	movq	_procfs_file@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.6:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_7:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_safe_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_10:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_fflush
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_procfs_trace,8,3               ## @procfs_trace
	.comm	_info_verbose,8,3               ## @info_verbose
	.comm	_procfs_file,8,3                ## @procfs_file
	.comm	_stdout,8,3                     ## @stdout
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%d -- "

L_.str.1:                               ## @.str.1
	.asciz	"[close FAILED! (%s)]\n"

L_.str.2:                               ## @.str.2
	.asciz	"%d = close (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close_with_trace               ; -- Begin function close_with_trace
	.p2align	2
_close_with_trace:                      ; @close_with_trace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	bl	_prepare_to_trace
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	mov	x0, x20
	bl	_close
	mov	x19, x0
Lloh2:
	adrp	x8, _procfs_trace@GOTPAGE
Lloh3:
	ldr	x8, [x8, _procfs_trace@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.1:
Lloh5:
	adrp	x8, _info_verbose@GOTPAGE
Lloh6:
	ldr	x8, [x8, _info_verbose@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x23, _procfs_file@GOTPAGE
Lloh9:
	ldr	x23, [x23, _procfs_file@GOTPAGEOFF]
Lloh10:
	adrp	x25, _stdout@GOTPAGE
Lloh11:
	ldr	x25, [x25, _stdout@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, #0
	csel	x0, x9, x8, eq
	stp	x21, x22, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_3:
	ldr	x0, [x24]
	ldr	x8, [x23]
	ldr	x9, [x25]
	cmp	x8, #0
	csel	x21, x9, x8, eq
	cbz	x0, LBB0_5
; %bb.4:
	bl	_safe_strerror
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
	stp	x19, x20, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x21
	bl	_fprintf
	ldr	x0, [x23]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_fflush
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_procfs_trace,8,3               ; @procfs_trace
	.comm	_info_verbose,8,3               ; @info_verbose
	.comm	_procfs_file,8,3                ; @procfs_file
	.comm	_stdout,8,3                     ; @stdout
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%d -- "

l_.str.1:                               ; @.str.1
	.asciz	"[close FAILED! (%s)]\n"

l_.str.2:                               ; @.str.2
	.asciz	"%d = close (%d)\n"

.subsections_via_symbols
