	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cafe_device_ready
_cafe_device_ready:                     ## @cafe_device_ready
	.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
	movq	(%rdi), %rbx
	movq	_NAND_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cafe_readl
	movq	_NAND_IRQ@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_cafe_readl
	movl	%eax, %r14d
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cafe_writel
	movq	(%rbx), %r15
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_cafe_readl
	movl	%eax, %r12d
	movq	_GLOBAL_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cafe_readl
	movl	%eax, %r13d
	movq	_GLOBAL_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cafe_readl
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_cafe_dev_dbg
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_STATUS,4,2                ## @NAND_STATUS
	.comm	_NAND_IRQ,4,2                   ## @NAND_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NAND device is%s ready, IRQ %x (%x) (%x,%x)\n"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_GLOBAL_IRQ,4,2                 ## @GLOBAL_IRQ
	.comm	_GLOBAL_IRQ_MASK,4,2            ## @GLOBAL_IRQ_MASK
	.no_dead_strip	_cafe_device_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cafe_device_ready
_cafe_device_ready:                     ; @cafe_device_ready
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _NAND_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cafe_readl
Lloh3:
	adrp	x22, _NAND_IRQ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NAND_IRQ@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cafe_readl
	mov	x20, x0
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_cafe_writel
	ldr	x21, [x19]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_cafe_readl
	mov	x22, x0
Lloh5:
	adrp	x8, _GLOBAL_IRQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GLOBAL_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cafe_readl
	mov	x23, x0
Lloh8:
	adrp	x8, _GLOBAL_IRQ_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLOBAL_IRQ_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cafe_readl
	mov	x6, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x3, x20
	mov	x4, x22
	mov	x5, x23
	bl	_cafe_dev_dbg
	mov	w0, #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
	ret
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_STATUS,4,2                ; @NAND_STATUS
	.comm	_NAND_IRQ,4,2                   ; @NAND_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NAND device is%s ready, IRQ %x (%x) (%x,%x)\n"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_GLOBAL_IRQ,4,2                 ; @GLOBAL_IRQ
	.comm	_GLOBAL_IRQ_MASK,4,2            ; @GLOBAL_IRQ_MASK
	.no_dead_strip	_cafe_device_ready
.subsections_via_symbols
