	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_install                      ## -- Begin function f_install
	.p2align	4, 0x90
_f_install:                             ## @f_install
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_current@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_lock
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_f_install_start
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	_O_CLOEXEC_@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	movq	%rbx, %rdi
	callq	_bit_set
LBB0_3:
	movq	_O_NONBLOCK_@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r15d, %esi
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_fd_setflags
LBB0_5:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_unlock
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_O_CLOEXEC_,4,2                 ## @O_CLOEXEC_
	.comm	_O_NONBLOCK_,4,2                ## @O_NONBLOCK_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_f_install                      ; -- Begin function f_install
	.p2align	2
_f_install:                             ; @f_install
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _current@GOTPAGE
Lloh1:
	ldr	x22, [x22, _current@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x0, [x8]
	bl	_lock
	mov	x0, x19
	mov	w1, #0
	bl	_f_install_start
	mov	x20, x0
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _O_CLOEXEC_@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_CLOEXEC_@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x22]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_bit_set
LBB0_3:
Lloh5:
	adrp	x8, _O_NONBLOCK_@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_NONBLOCK_@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	tst	w1, w21
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_fd_setflags
LBB0_5:
	ldr	x8, [x22]
	ldr	x0, [x8]
	bl	_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_O_CLOEXEC_,4,2                 ; @O_CLOEXEC_
	.comm	_O_NONBLOCK_,4,2                ; @O_NONBLOCK_
.subsections_via_symbols
