	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onenand_ooblayout_32_64_free
_onenand_ooblayout_32_64_free:          ## @onenand_ooblayout_32_64_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	leal	31(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$5, %ecx
	addl	%ecx, %ecx
	cmpl	%esi, %ecx
	jle	LBB0_1
## %bb.2:
	movl	%esi, %eax
	shll	$4, %esi
	testb	$1, %al
	jne	LBB0_3
## %bb.4:
	orl	$2, %esi
	movl	%esi, (%rdx)
	movl	$3, 4(%rdx)
	jmp	LBB0_5
LBB0_1:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	addl	$-2, %esi
	movl	%esi, (%rdx)
	movl	$2, 4(%rdx)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_onenand_ooblayout_32_64_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function onenand_ooblayout_32_64_free
_onenand_ooblayout_32_64_free:          ; @onenand_ooblayout_32_64_free
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	cmp	w1, w8, lsl #1
	b.ge	LBB0_3
; %bb.1:
	lsl	w8, w1, #4
	mov	w0, #0
	tbnz	w1, #0, LBB0_4
; %bb.2:
	orr	w8, w8, #0x2
	mov	w9, #3
	stp	w8, w9, [x2]
	ret
LBB0_3:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	sub	w8, w8, #2
	mov	w9, #2
	stp	w8, w9, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_onenand_ooblayout_32_64_free
.subsections_via_symbols
