	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcntl_tests_1
_fcntl_tests_1:                         ## @fcntl_tests_1
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	_CAP_FCNTL_GETFL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rax, %rbx
	callq	_cap_fcntls_limit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %r13
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_cap_fcntls_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movq	-48(%rbp), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_CHECK
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_CAP_ALL
	movq	_CAP_FCNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cap_rights_clear
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_cap_rights_limit
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	movq	_CAP_FCNTL_ALL@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_cap_fcntls_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	sete	%dil
	callq	_CHECK
	movq	_errno@GOTPCREL(%rip), %r14
	movq	$0, (%r14)
	movq	_CAP_FCNTL_SETFL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_CAP_FCNTL_GETFL@GOTPCREL(%rip), %rax
	orq	(%rax), %rsi
	movl	%r15d, %edi
	callq	_cap_fcntls_limit
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_CHECK
	movq	(%r14), %rax
	movq	_ENOTCAPABLE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	movq	%rcx, %rbx
	sete	%dil
	callq	_CHECK
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_cap_fcntls_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	sete	%dil
	callq	_CHECK
	movq	$0, (%r14)
	movq	_CAP_FCNTL_GETFL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	%r15d, %edi
	callq	_cap_fcntls_limit
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_CHECK
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%rbx), %rax
	sete	%dil
	callq	_CHECK
	movq	(%r12), %rax
	movq	%rax, -48(%rbp)
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_cap_fcntls_get
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CHECK
	xorl	%edi, %edi
	cmpq	$0, -48(%rbp)
	sete	%dil
	callq	_CHECK
	movq	_F_GETFD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	movq	_F_SETFD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_FD_CLOEXEC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	movl	(%r12), %esi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	cmpl	(%rbx), %eax
	sete	%dil
	callq	_CHECK
	movl	(%r13), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	movl	(%r12), %esi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_CHECK
	movq	$0, (%r14)
	movq	_F_GETFL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_CHECK
	movq	(%r14), %rax
	xorl	%edi, %edi
	movq	_ENOTCAPABLE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	sete	%dil
	callq	_CHECK
	movq	$0, (%r14)
	movq	_F_SETFL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_CHECK
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_CHECK
	movq	$0, (%r14)
	movl	(%rbx), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_CHECK
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_CHECK
	movq	$0, (%r14)
	movl	(%r12), %esi
	movl	%r15d, %edi
	xorl	%eax, %eax
	callq	_fcntl
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	callq	_CHECK
	movq	(%r14), %rax
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_CHECK
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_FCNTL_GETFL,8,3            ## @CAP_FCNTL_GETFL
	.comm	_CAP_FCNTL,4,2                  ## @CAP_FCNTL
	.comm	_CAP_FCNTL_ALL,8,3              ## @CAP_FCNTL_ALL
	.comm	_errno,8,3                      ## @errno
	.comm	_CAP_FCNTL_SETFL,8,3            ## @CAP_FCNTL_SETFL
	.comm	_ENOTCAPABLE,8,3                ## @ENOTCAPABLE
	.comm	_F_GETFD,4,2                    ## @F_GETFD
	.comm	_F_SETFD,4,2                    ## @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ## @FD_CLOEXEC
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.no_dead_strip	_fcntl_tests_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcntl_tests_1
_fcntl_tests_1:                         ; @fcntl_tests_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x22, _CAP_FCNTL_GETFL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CAP_FCNTL_GETFL@GOTPAGEOFF]
	ldr	x1, [x22]
	bl	_cap_fcntls_limit
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
	str	xzr, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_cap_fcntls_get
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [sp, #24]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_CHECK
	add	x0, sp, #20
	bl	_CAP_ALL
Lloh2:
	adrp	x8, _CAP_FCNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAP_FCNTL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #20
	bl	_cap_rights_clear
	add	x1, sp, #20
	mov	x0, x19
	bl	_cap_rights_limit
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
Lloh5:
	adrp	x23, _CAP_FCNTL_ALL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _CAP_FCNTL_ALL@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_cap_fcntls_get
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [sp, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_CHECK
Lloh7:
	adrp	x20, _errno@GOTPAGE
Lloh8:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	str	xzr, [x20]
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _CAP_FCNTL_SETFL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CAP_FCNTL_SETFL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	orr	x1, x9, x8
	mov	x0, x19
	bl	_cap_fcntls_limit
	cmn	w0, #1
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [x20]
Lloh12:
	adrp	x21, _ENOTCAPABLE@GOTPAGE
Lloh13:
	ldr	x21, [x21, _ENOTCAPABLE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [x23]
	str	x8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_cap_fcntls_get
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [sp, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_CHECK
	str	xzr, [x20]
	ldr	x1, [x22]
	mov	x0, x19
	bl	_cap_fcntls_limit
	cmn	w0, #1
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [x23]
	str	x8, [sp, #24]
	add	x1, sp, #24
	mov	x0, x19
	bl	_cap_fcntls_get
	cmp	x0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [sp, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_CHECK
Lloh14:
	adrp	x22, _F_GETFD@GOTPAGE
Lloh15:
	ldr	x22, [x22, _F_GETFD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_fcntl
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
Lloh16:
	adrp	x23, _F_SETFD@GOTPAGE
Lloh17:
	ldr	x23, [x23, _F_SETFD@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh18:
	adrp	x24, _FD_CLOEXEC@GOTPAGE
Lloh19:
	ldr	x24, [x24, _FD_CLOEXEC@GOTPAGEOFF]
	ldr	w8, [x24]
	str	x8, [sp]
	mov	x0, x19
	bl	_fcntl
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w1, [x22]
	mov	x0, x19
	bl	_fcntl
	ldr	w8, [x24]
	cmp	w0, w8
	cset	w0, eq
	bl	_CHECK
	ldr	w1, [x23]
	str	xzr, [sp]
	mov	x0, x19
	bl	_fcntl
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
	ldr	w1, [x22]
	mov	x0, x19
	bl	_fcntl
	cmp	w0, #0
	cset	w0, eq
	bl	_CHECK
	str	xzr, [x20]
Lloh20:
	adrp	x22, _F_GETFL@GOTPAGE
Lloh21:
	ldr	x22, [x22, _F_GETFL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_fcntl
	cmn	w0, #1
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_CHECK
	str	xzr, [x20]
Lloh22:
	adrp	x23, _F_SETFL@GOTPAGE
Lloh23:
	ldr	x23, [x23, _F_SETFL@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh24:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	x8, [sp]
	mov	x0, x19
	bl	_fcntl
	cmn	w0, #1
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_CHECK
	str	xzr, [x20]
	ldr	w1, [x23]
	str	xzr, [sp]
	mov	x0, x19
	bl	_fcntl
	cmn	w0, #1
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_CHECK
	str	xzr, [x20]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_fcntl
	cmn	w0, #1
	cset	w0, eq
	bl	_CHECK
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_CHECK
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_FCNTL_GETFL,8,3            ; @CAP_FCNTL_GETFL
	.comm	_CAP_FCNTL,4,2                  ; @CAP_FCNTL
	.comm	_CAP_FCNTL_ALL,8,3              ; @CAP_FCNTL_ALL
	.comm	_errno,8,3                      ; @errno
	.comm	_CAP_FCNTL_SETFL,8,3            ; @CAP_FCNTL_SETFL
	.comm	_ENOTCAPABLE,8,3                ; @ENOTCAPABLE
	.comm	_F_GETFD,4,2                    ; @F_GETFD
	.comm	_F_SETFD,4,2                    ; @F_SETFD
	.comm	_FD_CLOEXEC,4,2                 ; @FD_CLOEXEC
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.no_dead_strip	_fcntl_tests_1
.subsections_via_symbols
