	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxc_do_addr_cycle
_mxc_do_addr_cycle:                     ## @mxc_do_addr_cycle
	.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, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_mtd_to_nand
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_nand_get_controller_data
	movq	%rax, %r12
	cmpl	$-1, %ebx
	je	LBB0_3
## %bb.1:
	movl	%ebx, %r14d
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movzbl	%cl, %esi
	xorl	%edx, %edx
	cmpl	$-1, %r13d
	sete	%dl
	movq	%r12, %rdi
	callq	*(%rax)
	cmpl	$513, (%r15)                    ## imm = 0x201
	jl	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movl	%r14d, %ecx
	movzbl	%ch, %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
LBB0_3:
	cmpl	$-1, %r13d
	je	LBB0_9
## %bb.4:
	movl	%r13d, %ebx
	movq	(%r12), %rax
	movzbl	%bl, %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	*(%rax)
	cmpl	$513, (%r15)                    ## imm = 0x201
	jl	LBB0_8
## %bb.5:
	cmpl	$268435456, 4(%r15)             ## imm = 0x10000000
	movq	(%r12), %rax
	movq	(%rax), %rax
	movzbl	%bh, %esi
	jge	LBB0_6
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_NAND_ROW_ADDR_3@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r12), %rax
	movq	(%rax), %rax
	movzbl	%bh, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testl	%ecx, (%rdx)
	je	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	*%rax
	movq	(%r12), %rax
	movq	(%rax), %rax
	shrl	$16, %ebx
	movzbl	%bl, %esi
LBB0_7:
	movq	%r12, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_ROW_ADDR_3,4,2            ## @NAND_ROW_ADDR_3
	.no_dead_strip	_mxc_do_addr_cycle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxc_do_addr_cycle
_mxc_do_addr_cycle:                     ; @mxc_do_addr_cycle
	.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	x23, x1
	mov	x21, x0
	bl	_mtd_to_nand
	mov	x22, x0
	bl	_nand_get_controller_data
	mov	x20, x0
	cmn	w23, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
	and	w1, w23, #0xff
	cmn	w19, #1
	cset	w2, eq
	mov	x0, x20
	blr	x8
	ldr	w8, [x21]
	cmp	w8, #513
	b.lt	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ubfx	w1, w23, #8, #8
	mov	x0, x20
	mov	w2, #0
	blr	x8
LBB0_3:
	cmn	w19, #1
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x20]
	ldr	x8, [x8]
	and	w1, w19, #0xff
	mov	x0, x20
	mov	w2, #0
	blr	x8
	ldr	w8, [x21]
	cmp	w8, #513
	b.lt	LBB0_7
; %bb.5:
	ldr	w8, [x21, #4]
	ldr	x9, [x20]
	ldr	x3, [x9]
	ubfx	w1, w19, #8, #8
	mov	w9, #268435456
	cmp	w8, w9
	b.ge	LBB0_8
	b	LBB0_9
LBB0_6:
	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
	ret
LBB0_7:
Lloh0:
	adrp	x8, _NAND_ROW_ADDR_3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_ROW_ADDR_3@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh2:
	ldr	w8, [x8]
	ldr	x10, [x20]
	ldr	x3, [x10]
	ubfx	w1, w19, #8, #8
	tst	w8, w9
	b.eq	LBB0_9
LBB0_8:
	mov	x0, x20
	mov	w2, #0
	blr	x3
	ldr	x8, [x20]
	ldr	x3, [x8]
	ubfx	w1, w19, #16, #8
LBB0_9:
	mov	x0, x20
	mov	w2, #1
	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
	br	x3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_ROW_ADDR_3,4,2            ; @NAND_ROW_ADDR_3
	.no_dead_strip	_mxc_do_addr_cycle
.subsections_via_symbols
