	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcntl_getlocks
_fcntl_getlocks:                        ## @fcntl_getlocks
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -128(%rbp)
	movq	%rdx, -120(%rbp)
	movq	$0, -112(%rbp)
	movq	_F_RDLCK@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	_SEEK_SET@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -96(%rbp)
	xorl	%ebx, %ebx
	xorps	%xmm0, %xmm0
	movups	%xmm0, -88(%rbp)
	movq	$0, -72(%rbp)
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	cmpq	%r8, %rcx
	je	LBB0_10
## %bb.1:
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	_F_GETLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rdx
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_rump_sys_fcntl
	movl	%eax, %edi
	callq	_RL
	movq	-104(%rbp), %rax
	movq	_F_UNLCK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.2:
	leaq	64(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movups	-128(%rbp), %xmm0
	movups	-112(%rbp), %xmm1
	movups	-96(%rbp), %xmm2
	movups	-80(%rbp), %xmm3
	movups	%xmm3, 48(%r15)
	movups	%xmm2, 32(%r15)
	movups	%xmm1, 16(%r15)
	movups	%xmm0, (%r15)
	movq	-96(%rbp), %rax
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	sete	%dil
	callq	_ATF_REQUIRE
	movq	-88(%rbp), %rdx
	movl	$1, %ebx
	subq	%r13, %rdx
	jle	LBB0_3
## %bb.4:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_fcntl_getlocks
	movl	%eax, %ebx
	movl	%eax, %eax
	incl	%ebx
	shlq	$6, %rax
	addq	%rax, %r15
	cmpq	%r14, %r15
	jne	LBB0_5
	jmp	LBB0_10
LBB0_3:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_5:
	movq	-80(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.6:
	addq	-88(%rbp), %rsi
	testq	%r12, %r12
	je	LBB0_7
## %bb.8:
	addq	%r13, %r12
	subq	%rsi, %r12
	jg	LBB0_9
	jmp	LBB0_10
LBB0_7:
	xorl	%r12d, %r12d
LBB0_9:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_fcntl_getlocks
	addl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_F_RDLCK,4,2                    ## @F_RDLCK
	.comm	_SEEK_SET,8,3                   ## @SEEK_SET
	.comm	_F_GETLK,4,2                    ## @F_GETLK
	.comm	_F_UNLCK,8,3                    ## @F_UNLCK
	.no_dead_strip	_fcntl_getlocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcntl_getlocks
_fcntl_getlocks:                        ; @fcntl_getlocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	x1, [sp]
Lloh0:
	adrp	x8, _F_RDLCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F_RDLCK@GOTPAGEOFF]
	stp	x2, xzr, [sp, #8]
Lloh2:
	ldrsw	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x25, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SEEK_SET@GOTPAGEOFF]
	ldr	x8, [x25]
	stp	x8, xzr, [sp, #32]
	stp	xzr, xzr, [sp, #48]
	cmp	x3, x4
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh5:
	adrp	x8, _F_GETLK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F_GETLK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_rump_sys_fcntl
	bl	_RL
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, _F_UNLCK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _F_UNLCK@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_2:
	mov	w24, #0
LBB0_3:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_4:
	add	x23, x24, #64
	ldp	q0, q1, [sp]
	stp	q0, q1, [x24]
	ldp	q0, q1, [sp, #32]
	stp	q0, q1, [x24, #32]
	ldr	x8, [sp, #32]
	ldr	x9, [x25]
	cmp	x8, x9
	cset	w0, eq
	bl	_ATF_REQUIRE
	ldr	x8, [sp, #40]
	subs	x2, x8, x22
	b.le	LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	mov	x3, x23
	mov	x4, x19
	bl	_fcntl_getlocks
	add	w24, w0, #1
	mov	w8, w0
	add	x23, x23, x8, lsl #6
	cmp	x23, x19
	b.eq	LBB0_3
; %bb.6:
	ldr	x8, [sp, #48]
	cbnz	x8, LBB0_8
	b	LBB0_3
LBB0_7:
	mov	w24, #1
	ldr	x8, [sp, #48]
	cbz	x8, LBB0_3
LBB0_8:
	ldr	x9, [sp, #40]
	add	x1, x9, x8
	cbz	x21, LBB0_10
; %bb.9:
	add	x8, x21, x22
	subs	x2, x8, x1
	b.gt	LBB0_11
	b	LBB0_3
LBB0_10:
	mov	x2, #0
LBB0_11:
	mov	x0, x20
	mov	x3, x23
	mov	x4, x19
	bl	_fcntl_getlocks
	add	w24, w0, w24
	b	LBB0_3
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_F_RDLCK,4,2                    ; @F_RDLCK
	.comm	_SEEK_SET,8,3                   ; @SEEK_SET
	.comm	_F_GETLK,4,2                    ; @F_GETLK
	.comm	_F_UNLCK,8,3                    ; @F_UNLCK
	.no_dead_strip	_fcntl_getlocks
.subsections_via_symbols
