	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_close                     ## -- Begin function file_close
	.p2align	4, 0x90
_file_close:                            ## @file_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	js	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_close
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	20(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_syswarn
LBB0_3:
	movq	_pids@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movl	20(%rbx), %edi
	movl	12(%rbx), %edx
	movl	16(%rbx), %esi
	callq	_set_ids
	testl	%eax, %eax
	setne	%cl
	jmp	LBB0_6
LBB0_4:
	xorl	%ecx, %ecx
LBB0_6:
	movq	_pmode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	testb	%cl, %cl
	je	LBB0_9
LBB0_8:
	movq	_SETBITS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 8(%rbx)
LBB0_9:
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	8(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_set_pmode
LBB0_11:
	movq	_patime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pmtime@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_12
## %bb.13:
	movl	20(%rbx), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_set_ftime                      ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to close file descriptor on %s"

	.comm	_pids,8,3                       ## @pids
	.comm	_pmode,8,3                      ## @pmode
	.comm	_SETBITS,4,2                    ## @SETBITS
	.comm	_patime,8,3                     ## @patime
	.comm	_pmtime,8,3                     ## @pmtime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_file_close                     ; -- Begin function file_close
	.p2align	2
_file_close:                            ; @file_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	tbnz	w1, #31, LBB0_12
; %bb.1:
	mov	x19, x0
	mov	x0, x1
	bl	_close
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x19, #20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #0
	bl	_syswarn
LBB0_3:
Lloh5:
	adrp	x8, _pids@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pids@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
	ldp	w1, w0, [x19, #16]
	ldr	w2, [x19, #12]
	bl	_set_ids
	cmp	w0, #0
	cset	w9, ne
	b	LBB0_6
LBB0_5:
	mov	w9, #0
LBB0_6:
Lloh8:
	adrp	x8, _pmode@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pmode@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_8
; %bb.7:
Lloh11:
	adrp	x9, _SETBITS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SETBITS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	bic	w9, w10, w9
	str	w9, [x19, #8]
LBB0_8:
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w0, [x19, #20]
	ldr	w1, [x19, #8]
	bl	_set_pmode
LBB0_10:
Lloh14:
	adrp	x8, _patime@GOTPAGE
Lloh15:
	ldr	x8, [x8, _patime@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _pmtime@GOTPAGE
Lloh18:
	ldr	x9, [x9, _pmtime@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_12
; %bb.11:
	ldr	w0, [x19, #20]
	ldp	w2, w1, [x19]
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_ftime
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to close file descriptor on %s"

	.comm	_pids,8,3                       ; @pids
	.comm	_pmode,8,3                      ; @pmode
	.comm	_SETBITS,4,2                    ; @SETBITS
	.comm	_patime,8,3                     ; @patime
	.comm	_pmtime,8,3                     ; @pmtime
.subsections_via_symbols
