	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close                          ## -- Begin function close
	.p2align	4, 0x90
_close:                                 ## @close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_init_l@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	_req_pipefd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%edi, (%rax)
	je	LBB0_7
## %bb.4:
	cmpl	%edi, 4(%rax)
	je	LBB0_7
## %bb.5:
	movq	_resp_pipefd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%edi, (%rax)
	je	LBB0_7
## %bb.6:
	cmpl	%edi, 4(%rax)
	je	LBB0_7
## %bb.9:
	popq	%rbp
	jmp	_true_close                     ## TAILCALL
LBB0_1:
	movq	_close_fds_cnt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpq	$1, %rcx
	jbe	LBB0_2
LBB0_7:
	movq	_EBADF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_close_fds@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	leal	1(%rcx), %esi
	movl	%esi, (%rax)
	movl	%edi, (%rdx,%rcx,4)
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_l,4,2                     ## @init_l
	.comm	_close_fds_cnt,4,2              ## @close_fds_cnt
	.comm	_close_fds,8,3                  ## @close_fds
	.comm	_errno,8,3                      ## @errno
	.comm	_req_pipefd,8,3                 ## @req_pipefd
	.comm	_resp_pipefd,8,3                ## @resp_pipefd
	.comm	_EBADF,8,3                      ## @EBADF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_close                          ; -- Begin function close
	.p2align	2
_close:                                 ; @close
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _init_l@GOTPAGE
Lloh1:
	ldr	x8, [x8, _init_l@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _req_pipefd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _req_pipefd@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, w0
	b.eq	LBB0_7
; %bb.2:
	ldr	w8, [x8, #4]
	cmp	w8, w0
	b.eq	LBB0_7
; %bb.3:
Lloh6:
	adrp	x8, _resp_pipefd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _resp_pipefd@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, w0
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x8, #4]
	cmp	w8, w0
	b.eq	LBB0_7
; %bb.5:
	b	_true_close
LBB0_6:
Lloh9:
	adrp	x10, _close_fds_cnt@GOTPAGE
Lloh10:
	ldr	x10, [x10, _close_fds_cnt@GOTPAGEOFF]
	ldr	w9, [x10]
	cmp	w9, #1
	b.ls	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EBADF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	x8, [x9]
	mov	w0, #-1
	ret
LBB0_8:
Lloh17:
	adrp	x11, _close_fds@GOTPAGE
Lloh18:
	ldr	x11, [x11, _close_fds@GOTPAGEOFF]
Lloh19:
	ldr	x11, [x11]
	add	w12, w9, #1
	str	w12, [x10]
	str	w0, [x11, x9, lsl #2]
Lloh20:
	adrp	x9, _errno@GOTPAGE
Lloh21:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh22:
	str	xzr, [x9]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_init_l,4,2                     ; @init_l
	.comm	_close_fds_cnt,4,2              ; @close_fds_cnt
	.comm	_close_fds,8,3                  ; @close_fds
	.comm	_errno,8,3                      ; @errno
	.comm	_req_pipefd,8,3                 ; @req_pipefd
	.comm	_resp_pipefd,8,3                ; @resp_pipefd
	.comm	_EBADF,8,3                      ; @EBADF
.subsections_via_symbols
