	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54spi_int_ready
_p54spi_int_ready:                      ## @p54spi_int_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_SPI_ADRS_HOST_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_SPI_HOST_INT_UPDATE@GOTPCREL(%rip), %rax
	movq	_SPI_HOST_INT_SW_UPDATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_p54spi_write32
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_4
## %bb.2:
	movq	_FW_STATE_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_3:
	movq	_FW_STATE_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_ADRS_HOST_INT_EN,4,2       ## @SPI_ADRS_HOST_INT_EN
	.comm	_SPI_HOST_INT_UPDATE,4,2        ## @SPI_HOST_INT_UPDATE
	.comm	_SPI_HOST_INT_SW_UPDATE,4,2     ## @SPI_HOST_INT_SW_UPDATE
	.comm	_FW_STATE_READY,8,3             ## @FW_STATE_READY
	.no_dead_strip	_p54spi_int_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54spi_int_ready
_p54spi_int_ready:                      ; @p54spi_int_ready
	.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	x19, x0
Lloh0:
	adrp	x8, _SPI_ADRS_HOST_INT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_ADRS_HOST_INT_EN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SPI_HOST_INT_UPDATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SPI_HOST_INT_UPDATE@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _SPI_HOST_INT_SW_UPDATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPI_HOST_INT_SW_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_p54spi_write32
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _FW_STATE_READY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_STATE_READY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	w8, [x19], #4
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_complete
LBB0_3:
Lloh12:
	adrp	x8, _FW_STATE_READY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_STATE_READY@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_ADRS_HOST_INT_EN,4,2       ; @SPI_ADRS_HOST_INT_EN
	.comm	_SPI_HOST_INT_UPDATE,4,2        ; @SPI_HOST_INT_UPDATE
	.comm	_SPI_HOST_INT_SW_UPDATE,4,2     ; @SPI_HOST_INT_SW_UPDATE
	.comm	_FW_STATE_READY,8,3             ; @FW_STATE_READY
	.no_dead_strip	_p54spi_int_ready
.subsections_via_symbols
