	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c_onenand_do_lock_cmd
_s3c_onenand_do_lock_cmd:               ## @s3c_onenand_do_lock_cmd
	.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	%ecx, %r15d
	movl	%esi, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movb	(%r14), %cl
	sarl	%cl, %ebx
	movq	%rdx, %r12
	movq	_onenand@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%rax)
	movb	(%r14), %cl
	shrq	%cl, %r12
	movl	%eax, %r13d
	leal	(%rbx,%r12), %edi
	decl	%edi
	movq	_onenand@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*(%rax)
	movq	_ONENAND_CMD_LOCK@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	movq	_ONENAND_UNLOCK_START@GOTPCREL(%rip), %rcx
	cmoveq	_ONENAND_LOCK_START@GOTPCREL(%rip), %rcx
	movl	%eax, %r15d
	movl	(%rcx), %r12d
	movq	(%rbx), %rdi
	movq	_ONENAND_UNLOCK_END@GOTPCREL(%rip), %rbx
	cmoveq	_ONENAND_LOCK_END@GOTPCREL(%rip), %rbx
	movl	%r13d, %esi
	callq	_CMD_MAP_10
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_s3c_write_cmd
	movl	(%rbx), %ebx
	movq	_onenand@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	%r15d, %esi
	callq	_CMD_MAP_10
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_s3c_write_cmd
	movq	8(%r14), %rax
	movq	_FL_LOCKING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_onenand,8,3                    ## @onenand
	.comm	_ONENAND_CMD_LOCK,4,2           ## @ONENAND_CMD_LOCK
	.comm	_ONENAND_LOCK_START,4,2         ## @ONENAND_LOCK_START
	.comm	_ONENAND_LOCK_END,4,2           ## @ONENAND_LOCK_END
	.comm	_ONENAND_UNLOCK_START,4,2       ## @ONENAND_UNLOCK_START
	.comm	_ONENAND_UNLOCK_END,4,2         ## @ONENAND_UNLOCK_END
	.comm	_FL_LOCKING,4,2                 ## @FL_LOCKING
	.no_dead_strip	_s3c_onenand_do_lock_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c_onenand_do_lock_cmd
_s3c_onenand_do_lock_cmd:               ; @s3c_onenand_do_lock_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x24, [x0]
	ldr	w8, [x24]
	asr	w22, w1, w8
Lloh0:
	adrp	x25, _onenand@GOTPAGE
Lloh1:
	ldr	x25, [x25, _onenand@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	blr	x8
	mov	x23, x0
	ldr	w8, [x24]
	lsr	x8, x21, x8
	add	w8, w22, w8
	sub	w0, w8, #1
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	w1, #0
	mov	w2, #0
	blr	x8
	mov	x21, x0
Lloh2:
	adrp	x8, _ONENAND_CMD_LOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ONENAND_CMD_LOCK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ONENAND_LOCK_START@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ONENAND_LOCK_START@GOTPAGEOFF]
Lloh7:
	adrp	x10, _ONENAND_UNLOCK_START@GOTPAGE
Lloh8:
	ldr	x10, [x10, _ONENAND_UNLOCK_START@GOTPAGEOFF]
	cmp	w8, w20
	csel	x8, x9, x10, eq
	ldr	w20, [x8]
	ldr	x0, [x25]
Lloh9:
	adrp	x8, _ONENAND_LOCK_END@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ONENAND_LOCK_END@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ONENAND_UNLOCK_END@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ONENAND_UNLOCK_END@GOTPAGEOFF]
	csel	x22, x8, x9, eq
	mov	x1, x23
	bl	_CMD_MAP_10
	mov	x1, x0
	mov	x0, x20
	bl	_s3c_write_cmd
	ldr	w20, [x22]
	ldr	x0, [x25]
	mov	x1, x21
	bl	_CMD_MAP_10
	mov	x1, x0
	mov	x0, x20
	bl	_s3c_write_cmd
	ldr	x2, [x24, #8]
Lloh13:
	adrp	x8, _FL_LOCKING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FL_LOCKING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	br	x2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_onenand,8,3                    ; @onenand
	.comm	_ONENAND_CMD_LOCK,4,2           ; @ONENAND_CMD_LOCK
	.comm	_ONENAND_LOCK_START,4,2         ; @ONENAND_LOCK_START
	.comm	_ONENAND_LOCK_END,4,2           ; @ONENAND_LOCK_END
	.comm	_ONENAND_UNLOCK_START,4,2       ; @ONENAND_UNLOCK_START
	.comm	_ONENAND_UNLOCK_END,4,2         ; @ONENAND_UNLOCK_END
	.comm	_FL_LOCKING,4,2                 ; @FL_LOCKING
	.no_dead_strip	_s3c_onenand_do_lock_cmd
.subsections_via_symbols
