	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aw_spi_intr
_aw_spi_intr:                           ## @aw_spi_intr
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_AW_SPI_ISR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_AW_SPI_READ_4
	movl	%eax, %r14d
	movq	_AW_SPI_IER_RF_FULL@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_aw_spi_read_rxfifo
LBB0_2:
	movq	_AW_SPI_IER_TF_EMP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_aw_spi_fill_txfifo
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_AW_SPI_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AW_SPI_IER_TC@GOTPCREL(%rip), %rax
	movl	(%r12), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_AW_SPI_WRITE_4
LBB0_5:
	movq	_AW_SPI_IER_TC@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_aw_spi_read_rxfifo
	movq	_AW_SPI_IER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_AW_SPI_WRITE_4
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	callq	_wakeup
LBB0_7:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AW_SPI_WRITE_4                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AW_SPI_ISR,4,2                 ## @AW_SPI_ISR
	.comm	_AW_SPI_IER_RF_FULL,4,2         ## @AW_SPI_IER_RF_FULL
	.comm	_AW_SPI_IER_TF_EMP,4,2          ## @AW_SPI_IER_TF_EMP
	.comm	_AW_SPI_IER,4,2                 ## @AW_SPI_IER
	.comm	_AW_SPI_IER_TC,4,2              ## @AW_SPI_IER_TC
	.no_dead_strip	_aw_spi_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aw_spi_intr
_aw_spi_intr:                           ; @aw_spi_intr
	.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, x0
Lloh0:
	adrp	x21, _AW_SPI_ISR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AW_SPI_ISR@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_AW_SPI_READ_4
	mov	x20, x0
Lloh2:
	adrp	x22, _AW_SPI_IER_RF_FULL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AW_SPI_IER_RF_FULL@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_aw_spi_read_rxfifo
LBB0_2:
Lloh4:
	adrp	x8, _AW_SPI_IER_TF_EMP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AW_SPI_IER_TF_EMP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x23, _AW_SPI_IER_TC@GOTPAGE
Lloh8:
	ldr	x23, [x23, _AW_SPI_IER_TC@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_aw_spi_fill_txfifo
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _AW_SPI_IER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AW_SPI_IER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x23]
	ldr	w9, [x22]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_AW_SPI_WRITE_4
LBB0_5:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_aw_spi_read_rxfifo
Lloh12:
	adrp	x8, _AW_SPI_IER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AW_SPI_IER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_AW_SPI_WRITE_4
	str	xzr, [x19, #16]
	mov	x0, x19
	bl	_wakeup
LBB0_7:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	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
	b	_AW_SPI_WRITE_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AW_SPI_ISR,4,2                 ; @AW_SPI_ISR
	.comm	_AW_SPI_IER_RF_FULL,4,2         ; @AW_SPI_IER_RF_FULL
	.comm	_AW_SPI_IER_TF_EMP,4,2          ; @AW_SPI_IER_TF_EMP
	.comm	_AW_SPI_IER,4,2                 ; @AW_SPI_IER
	.comm	_AW_SPI_IER_TC,4,2              ; @AW_SPI_IER_TC
	.no_dead_strip	_aw_spi_intr
.subsections_via_symbols
