	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onenand_lock_handle
_onenand_lock_handle:                   ## @onenand_lock_handle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_ONENAND_GET_WP_STATUS
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_1
## %bb.2:
	movq	_ONENAND_HAS_CONT_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%r14), %ecx
	movslq	%ebx, %rdx
	leaq	l_switch.table.onenand_lock_handle(%rip), %rsi
	movq	(%rsi,%rdx,8), %rdx
	cmovel	%ecx, %eax
	orl	(%rdx), %eax
	movl	%eax, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ONENAND_SET_WP_STATUS          ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ONENAND_HAS_CONT_LOCK,4,2      ## @ONENAND_HAS_CONT_LOCK
	.comm	_ONENAND_WP_US,4,2              ## @ONENAND_WP_US
	.comm	_ONENAND_WP_LS,4,2              ## @ONENAND_WP_LS
	.comm	_ONENAND_WP_LTS,4,2             ## @ONENAND_WP_LTS
	.no_dead_strip	_onenand_lock_handle
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.onenand_lock_handle
l_switch.table.onenand_lock_handle:
	.quad	_ONENAND_WP_US
	.quad	_ONENAND_WP_US
	.quad	_ONENAND_WP_LTS
	.quad	_ONENAND_WP_LS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onenand_lock_handle
_onenand_lock_handle:                   ; @onenand_lock_handle
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_ONENAND_GET_WP_STATUS
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _ONENAND_HAS_CONT_LOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ONENAND_HAS_CONT_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x19]
Lloh3:
	adrp	x11, l_switch.table.onenand_lock_handle@PAGE
Lloh4:
	add	x11, x11, l_switch.table.onenand_lock_handle@PAGEOFF
	ldr	x8, [x11, w8, sxtw #3]
	ldr	w8, [x8]
	tst	w9, w10
	csel	w9, wzr, w0, eq
	orr	w0, w8, w9
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ONENAND_SET_WP_STATUS
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ONENAND_HAS_CONT_LOCK,4,2      ; @ONENAND_HAS_CONT_LOCK
	.comm	_ONENAND_WP_US,4,2              ; @ONENAND_WP_US
	.comm	_ONENAND_WP_LS,4,2              ; @ONENAND_WP_LS
	.comm	_ONENAND_WP_LTS,4,2             ; @ONENAND_WP_LTS
	.no_dead_strip	_onenand_lock_handle
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.onenand_lock_handle
l_switch.table.onenand_lock_handle:
	.quad	_ONENAND_WP_US
	.quad	_ONENAND_WP_US
	.quad	_ONENAND_WP_LTS
	.quad	_ONENAND_WP_LS

.subsections_via_symbols
