	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_fcntl                      ## -- Begin function sys_fcntl
	.p2align	4, 0x90
_sys_fcntl:                             ## @sys_fcntl
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r12d
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	callq	_f_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	leal	-128(%rbx), %eax
	cmpl	$11, %eax
	ja	LBB0_8
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	xorl	%edx, %edx
	cmpl	$129, %ebx
	sete	%dl
	leaq	L_.str.8(%rip), %rdi
	leaq	L_.str.9(%rip), %rcx
	movl	%r12d, %esi
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_STRACE
	leaq	-96(%rbp), %rsi
	movl	%r14d, %edi
	movl	$20, %edx
	callq	_user_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movl	-80(%rbp), %eax
	movl	%eax, -48(%rbp)
	movaps	-96(%rbp), %xmm0
	movaps	%xmm0, -64(%rbp)
	jmp	LBB0_7
LBB0_5:
	movq	__EBADF@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str.10(%rip), %rdi
	leaq	L_.str.9(%rip), %rcx
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_STRACE
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	movl	$20, %edx
	callq	_user_read
	testl	%eax, %eax
	jne	LBB0_16
LBB0_7:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_fcntl_setlk
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_8:
	leaq	L_.str.11(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_STRACE
	movq	__EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_STRACE
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_fd_setflags
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_10:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r12d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_STRACE
	movl	(%r13), %esi
	movl	%r12d, %edi
	testb	$1, %r14b
	jne	LBB0_23
## %bb.11:
	callq	_bit_clear
	jmp	LBB0_18
LBB0_12:
	leaq	L_.str.6(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_STRACE
	leaq	-96(%rbp), %rsi
	movl	%r14d, %edi
	movl	$20, %edx
	callq	_user_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movl	-80(%rbp), %eax
	movl	%eax, -48(%rbp)
	movaps	-96(%rbp), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_fcntl_getlk
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_18
## %bb.14:
	movl	-48(%rbp), %eax
	movl	%eax, -80(%rbp)
	movaps	-64(%rbp), %xmm0
	movaps	%xmm0, -96(%rbp)
	leaq	-96(%rbp), %rsi
	jmp	LBB0_26
LBB0_15:
	leaq	L_.str.7(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_STRACE
	leaq	-64(%rbp), %rsi
	movl	%r14d, %edi
	movl	$20, %edx
	callq	_user_read
	testl	%eax, %eax
	jne	LBB0_16
## %bb.24:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_fcntl_getlk
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_18
## %bb.25:
	leaq	-64(%rbp), %rsi
LBB0_26:
	movl	%r14d, %edi
	movl	$20, %edx
	callq	_user_write
	testl	%eax, %eax
	je	LBB0_18
LBB0_16:
	movq	__EFAULT@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_STRACE
	movq	%r15, %rdi
	callq	_fd_getflags
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_STRACE
	movl	(%r13), %esi
	movl	%r12d, %edi
	callq	_bit_test
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_21:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_STRACE
	incl	(%r15)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_f_install_start
	movl	%eax, %r15d
	movl	(%r13), %esi
	movl	%eax, %edi
	callq	_bit_set
	jmp	LBB0_18
LBB0_22:
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_STRACE
	incl	(%r15)
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_f_install_start
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_23:
	callq	_bit_set
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_15
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	__EBADF,4,2                     ## @_EBADF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fcntl(%d, F_DUPFD, %d)"

L_.str.1:                               ## @.str.1
	.asciz	"fcntl(%d, F_DUPFD_CLOEXEC, %d)"

L_.str.2:                               ## @.str.2
	.asciz	"fcntl(%d, F_GETFD)"

L_.str.3:                               ## @.str.3
	.asciz	"fcntl(%d, F_SETFD, 0x%x)"

L_.str.4:                               ## @.str.4
	.asciz	"fcntl(%d, F_GETFL)"

L_.str.5:                               ## @.str.5
	.asciz	"fcntl(%d, F_SETFL, %#x)"

L_.str.6:                               ## @.str.6
	.asciz	"fcntl(%d, F_GETLK, %#x)"

	.comm	__EFAULT,4,2                    ## @_EFAULT
L_.str.7:                               ## @.str.7
	.asciz	"fcntl(%d, F_GETLK64, %#x)"

L_.str.8:                               ## @.str.8
	.asciz	"fcntl(%d, F_SETLK%*s, %#x)"

L_.str.9:                               ## @.str.9
	.asciz	"W"

L_.str.10:                              ## @.str.10
	.asciz	"fcntl(%d, F_SETLK%*s64, %#x)"

L_.str.11:                              ## @.str.11
	.asciz	"fcntl(%d, %d)"

	.comm	__EINVAL,4,2                    ## @_EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sys_fcntl                      ; -- Begin function sys_fcntl
	.p2align	2
_sys_fcntl:                             ; @sys_fcntl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _current@GOTPAGE
Lloh1:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x23, [x8]
	bl	_f_get
	cbz	x0, LBB0_5
; %bb.1:
	sub	w8, w22, #128
	cmp	w8, #11
	b.hi	LBB0_8
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	cmp	w22, #129
	cset	w8, eq
	mov	x9, x19
	str	x9, [sp, #16]
Lloh5:
	adrp	x9, l_.str.9@PAGE
Lloh6:
	add	x9, x9, l_.str.9@PAGEOFF
	stp	x8, x9, [sp]
Lloh7:
	adrp	x0, l_.str.8@PAGE
Lloh8:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #20
	bl	_user_read
	cbnz	w0, LBB0_16
; %bb.4:
	ldr	w8, [sp, #80]
	str	w8, [sp, #48]
	ldr	q0, [sp, #64]
	str	q0, [sp, #32]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, __EBADF@GOTPAGE
Lloh10:
	ldr	x8, [x8, __EBADF@GOTPAGEOFF]
	b	LBB0_17
LBB0_6:
	mov	x8, x19
	str	x8, [sp, #16]
Lloh11:
	adrp	x8, l_.str.9@PAGE
Lloh12:
	add	x8, x8, l_.str.9@PAGEOFF
	stp	xzr, x8, [sp]
Lloh13:
	adrp	x0, l_.str.10@PAGE
Lloh14:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #20
	bl	_user_read
	cbnz	w0, LBB0_16
LBB0_7:
	add	x1, sp, #32
	mov	x0, x20
	mov	w2, #0
	bl	_fcntl_setlk
	mov	x20, x0
	b	LBB0_18
LBB0_8:
	str	x22, [sp]
Lloh15:
	adrp	x0, l_.str.11@PAGE
Lloh16:
	add	x0, x0, l_.str.11@PAGEOFF
	mov	x1, x21
	bl	_STRACE
Lloh17:
	adrp	x8, __EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, __EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
	mov	x8, x19
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	mov	x0, x20
	mov	x1, x19
	bl	_fd_setflags
	mov	x20, x0
	b	LBB0_18
LBB0_10:
	str	x19, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	ldr	w1, [x23]
	mov	x0, x21
	tbnz	w19, #0, LBB0_23
; %bb.11:
	bl	_bit_clear
	mov	w20, #0
	b	LBB0_18
LBB0_12:
	mov	x8, x19
	str	x8, [sp]
Lloh23:
	adrp	x0, l_.str.6@PAGE
Lloh24:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #20
	bl	_user_read
	cbnz	w0, LBB0_16
; %bb.13:
	ldr	w8, [sp, #80]
	str	w8, [sp, #48]
	ldr	q0, [sp, #64]
	str	q0, [sp, #32]
	add	x1, sp, #32
	mov	x0, x20
	bl	_fcntl_getlk
	mov	x20, x0
	tbnz	w0, #31, LBB0_18
; %bb.14:
	ldr	w8, [sp, #48]
	str	w8, [sp, #80]
	ldr	q0, [sp, #32]
	str	q0, [sp, #64]
	add	x1, sp, #64
	b	LBB0_26
LBB0_15:
	mov	x8, x19
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.7@PAGE
Lloh26:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #20
	bl	_user_read
	cbz	w0, LBB0_24
LBB0_16:
Lloh27:
	adrp	x8, __EFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
LBB0_17:
	ldr	w20, [x8]
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_19:
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	mov	x0, x20
	bl	_fd_getflags
	mov	x20, x0
	b	LBB0_18
LBB0_20:
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	ldr	w1, [x23]
	mov	x0, x21
	bl	_bit_test
	mov	x20, x0
	b	LBB0_18
LBB0_21:
	mov	x8, x19
	str	x8, [sp]
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_f_install_start
	mov	x20, x0
	ldr	w1, [x23]
	bl	_bit_set
	b	LBB0_18
LBB0_22:
	mov	x8, x19
	str	x8, [sp]
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_STRACE
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_f_install_start
	mov	x20, x0
	b	LBB0_18
LBB0_23:
	bl	_bit_set
	mov	w20, #0
	b	LBB0_18
LBB0_24:
	add	x1, sp, #32
	mov	x0, x20
	bl	_fcntl_getlk
	mov	x20, x0
	tbnz	w0, #31, LBB0_18
; %bb.25:
	add	x1, sp, #32
LBB0_26:
	mov	x0, x19
	mov	w2, #20
	bl	_user_write
Lloh37:
	adrp	x8, __EFAULT@GOTPAGE
Lloh38:
	ldr	x8, [x8, __EFAULT@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w20, w20, w8, eq
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_20-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
	.byte	(LBB0_22-LBB0_3)>>2
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	__EBADF,4,2                     ; @_EBADF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fcntl(%d, F_DUPFD, %d)"

l_.str.1:                               ; @.str.1
	.asciz	"fcntl(%d, F_DUPFD_CLOEXEC, %d)"

l_.str.2:                               ; @.str.2
	.asciz	"fcntl(%d, F_GETFD)"

l_.str.3:                               ; @.str.3
	.asciz	"fcntl(%d, F_SETFD, 0x%x)"

l_.str.4:                               ; @.str.4
	.asciz	"fcntl(%d, F_GETFL)"

l_.str.5:                               ; @.str.5
	.asciz	"fcntl(%d, F_SETFL, %#x)"

l_.str.6:                               ; @.str.6
	.asciz	"fcntl(%d, F_GETLK, %#x)"

	.comm	__EFAULT,4,2                    ; @_EFAULT
l_.str.7:                               ; @.str.7
	.asciz	"fcntl(%d, F_GETLK64, %#x)"

l_.str.8:                               ; @.str.8
	.asciz	"fcntl(%d, F_SETLK%*s, %#x)"

l_.str.9:                               ; @.str.9
	.asciz	"W"

l_.str.10:                              ; @.str.10
	.asciz	"fcntl(%d, F_SETLK%*s64, %#x)"

l_.str.11:                              ; @.str.11
	.asciz	"fcntl(%d, %d)"

	.comm	__EINVAL,4,2                    ; @_EINVAL
.subsections_via_symbols
