	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lock_region
_lock_region:                           ## @lock_region
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	andl	(%rax), %r12d
	movq	%rcx, %rdi
	callq	_round_up
	movq	%rax, %rbx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %r13
	movb	(%r13), %cl
	movq	%rax, %rdi
	shrq	%cl, %rdi
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	movb	(%r13), %cl
	shrq	%cl, %rbx
	leal	-1(%rax), %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rdx
	xorl	%ecx, %ecx
	cmpq	%rdx, %rbx
	sete	%cl
	negl	%ecx
	leal	(%rax,%rcx), %ebx
	addl	$11, %ebx
	orl	%r12d, %ebx
	movl	%r14d, %edi
	callq	_AS_LOCKADDR_LO
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mmu_write
	movl	%r14d, %edi
	callq	_AS_LOCKADDR_HI
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mmu_write
	movq	_AS_COMMAND_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_cmd                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_AS_COMMAND_LOCK,4,2            ## @AS_COMMAND_LOCK
	.no_dead_strip	_lock_region
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lock_region
_lock_region:                           ; @lock_region
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x3
	bl	_round_up
	mov	x22, x0
Lloh6:
	adrp	x24, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	x8, [x24]
	lsr	x0, x0, x8
	bl	_fls
	ldr	x8, [x24]
	lsr	x8, x22, x8
	sub	w9, w0, #1
	mov	w10, #1
	lsl	x9, x10, x9
	cmp	x8, x9
	mov	w8, #10
	cinc	w8, w8, ne
	and	w9, w23, w19
	add	w8, w8, w0
	orr	w19, w8, w9
	mov	x0, x20
	bl	_AS_LOCKADDR_LO
	mov	x1, x0
	mov	x0, x21
	mov	x2, x19
	bl	_mmu_write
	mov	x0, x20
	bl	_AS_LOCKADDR_HI
	mov	x1, x0
	mov	x0, x21
	bl	_mmu_write
Lloh8:
	adrp	x8, _AS_COMMAND_LOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AS_COMMAND_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_write_cmd
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_AS_COMMAND_LOCK,4,2            ; @AS_COMMAND_LOCK
	.no_dead_strip	_lock_region
.subsections_via_symbols
