	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onenand_buffer_address
_onenand_buffer_address:                ## @onenand_buffer_address
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_ONENAND_BSA_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	testl	%edi, %edi
	jne	LBB0_1
## %bb.2:
	movq	_ONENAND_BSA_DATARAM0@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_ONENAND_BSA_DATARAM1@GOTPCREL(%rip), %rcx
LBB0_3:
	orl	(%rcx), %eax
	movq	_ONENAND_BSC_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_ONENAND_BSA_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ONENAND_BSA_MASK,4,2           ## @ONENAND_BSA_MASK
	.comm	_ONENAND_BSA_DATARAM1,4,2       ## @ONENAND_BSA_DATARAM1
	.comm	_ONENAND_BSA_DATARAM0,4,2       ## @ONENAND_BSA_DATARAM0
	.comm	_ONENAND_BSC_MASK,4,2           ## @ONENAND_BSC_MASK
	.comm	_ONENAND_BSA_SHIFT,4,2          ## @ONENAND_BSA_SHIFT
	.no_dead_strip	_onenand_buffer_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onenand_buffer_address
_onenand_buffer_address:                ; @onenand_buffer_address
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ONENAND_BSA_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ONENAND_BSA_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w1
Lloh3:
	adrp	x9, _ONENAND_BSA_DATARAM0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ONENAND_BSA_DATARAM0@GOTPAGEOFF]
Lloh5:
	adrp	x10, _ONENAND_BSA_DATARAM1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ONENAND_BSA_DATARAM1@GOTPAGEOFF]
	cmp	w0, #0
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _ONENAND_BSC_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ONENAND_BSC_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	and	w9, w9, w2
Lloh10:
	adrp	x10, _ONENAND_BSA_SHIFT@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ONENAND_BSA_SHIFT@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ONENAND_BSA_MASK,4,2           ; @ONENAND_BSA_MASK
	.comm	_ONENAND_BSA_DATARAM1,4,2       ; @ONENAND_BSA_DATARAM1
	.comm	_ONENAND_BSA_DATARAM0,4,2       ; @ONENAND_BSA_DATARAM0
	.comm	_ONENAND_BSC_MASK,4,2           ; @ONENAND_BSC_MASK
	.comm	_ONENAND_BSA_SHIFT,4,2          ; @ONENAND_BSA_SHIFT
	.no_dead_strip	_onenand_buffer_address
.subsections_via_symbols
