	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navpoint_irq
_navpoint_irq:                          ## @navpoint_irq
	.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	%rsi, %rbx
	movq	16(%rsi), %r14
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_SSSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_pxa_ssp_read_reg
	movl	%eax, %r15d
	movl	%r12d, %eax
	movq	_sssr@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	je	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_warn
	movl	(%r13), %esi
	movl	(%r12), %edx
	andl	%r15d, %edx
	movq	%r14, %rdi
	callq	_pxa_ssp_write_reg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_SSSR_RNE@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	je	LBB0_8
## %bb.3:
	movq	_SSDR@GOTPCREL(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_pxa_ssp_read_reg
	testl	%eax, (%r12)
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_pxa_ssp_read_reg
	movl	%eax, %ecx
	sarl	$8, %ecx
	movq	(%rbx), %rdx
	movslq	8(%rbx), %rsi
	movl	%ecx, (%rdx,%rsi,4)
	movslq	8(%rbx), %rcx
	movl	%eax, 4(%rdx,%rcx,4)
	addl	$2, 8(%rbx)
	movl	(%rdx), %edi
	callq	_HEADER_LENGTH
	cmpl	8(%rbx), %eax
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_navpoint_packet
	movl	$0, 8(%rbx)
	jmp	LBB0_6
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_SSSR,4,2                       ## @SSSR
	.comm	_sssr,4,2                       ## @sssr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected interrupt: status=0x%08x\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_SSSR_RNE,4,2                   ## @SSSR_RNE
	.comm	_SSDR,4,2                       ## @SSDR
	.no_dead_strip	_navpoint_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navpoint_irq
_navpoint_irq:                          ; @navpoint_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	ldr	x20, [x1, #16]
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x23, _SSSR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _SSSR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_pxa_ssp_read_reg
	mov	x21, x0
Lloh5:
	adrp	x25, _sssr@GOTPAGE
Lloh6:
	ldr	x25, [x25, _sssr@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh7:
	adrp	x24, _IRQ_HANDLED@GOTPAGE
Lloh8:
	ldr	x24, [x24, _IRQ_HANDLED@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_warn
	ldr	w1, [x23]
	ldr	w8, [x25]
	and	w2, w8, w21
	mov	x0, x20
	bl	_pxa_ssp_write_reg
	ldr	w22, [x24]
LBB0_2:
Lloh11:
	adrp	x25, _SSSR_RNE@GOTPAGE
Lloh12:
	ldr	x25, [x25, _SSSR_RNE@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.3:
Lloh13:
	adrp	x21, _SSDR@GOTPAGE
Lloh14:
	ldr	x21, [x21, _SSDR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_pxa_ssp_read_reg
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_pxa_ssp_read_reg
	asr	w8, w0, #8
	ldr	x9, [x19]
	ldrsw	x10, [x19, #8]
	str	w8, [x9, x10, lsl #2]
	ldrsw	x8, [x19, #8]
	add	x8, x9, x8, lsl #2
	str	w0, [x8, #4]
	ldr	w8, [x19, #8]
	add	w8, w8, #2
	str	w8, [x19, #8]
	ldr	w0, [x9]
	bl	_HEADER_LENGTH
	ldr	w8, [x19, #8]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_navpoint_packet
	str	wzr, [x19, #8]
	b	LBB0_4
LBB0_7:
	ldr	w22, [x24]
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_SSSR,4,2                       ; @SSSR
	.comm	_sssr,4,2                       ; @sssr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected interrupt: status=0x%08x\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_SSSR_RNE,4,2                   ; @SSSR_RNE
	.comm	_SSDR,4,2                       ; @SSDR
	.no_dead_strip	_navpoint_irq
.subsections_via_symbols
