	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function w6692_irq
_w6692_irq:                             ## @w6692_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	leaq	4(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	_W_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ReadW6692
	movl	%eax, %ebx
	movl	(%r15), %eax
	notl	%eax
	testl	%ebx, %eax
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_16
LBB0_2:
	incl	12(%r15)
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movl	(%r15), %r12d
	notl	%r12d
	andl	%ebx, %r12d
	movq	_W_INT_B1_EXI@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_W6692B_interrupt
LBB0_4:
	movq	_W_INT_B2_EXI@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_W6692B_interrupt
LBB0_6:
	movq	_W_INT_D_RME@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_handle_rxD
LBB0_8:
	movq	_W_INT_D_RMR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_W_D_FIFO_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_W6692_empty_Dfifo
LBB0_10:
	movq	_W_INT_D_XFR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_handle_txD
LBB0_12:
	movq	_W_INT_D_EXI@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_handle_statusD
LBB0_14:
	movq	_W_INT_XINT0@GOTPCREL(%rip), %rax
	movq	_W_INT_XINT1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testl	%r12d, %ecx
	je	LBB0_16
## %bb.15:
	movl	8(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_16:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W_ISTA,4,2                     ## @W_ISTA
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ista %02x\n"

	.comm	_W_INT_B1_EXI,4,2               ## @W_INT_B1_EXI
	.comm	_W_INT_B2_EXI,4,2               ## @W_INT_B2_EXI
	.comm	_W_INT_D_RME,4,2                ## @W_INT_D_RME
	.comm	_W_INT_D_RMR,4,2                ## @W_INT_D_RMR
	.comm	_W_D_FIFO_THRESH,4,2            ## @W_D_FIFO_THRESH
	.comm	_W_INT_D_XFR,4,2                ## @W_INT_D_XFR
	.comm	_W_INT_D_EXI,4,2                ## @W_INT_D_EXI
	.comm	_W_INT_XINT0,4,2                ## @W_INT_XINT0
	.comm	_W_INT_XINT1,4,2                ## @W_INT_XINT1
L_.str.1:                               ## @.str.1
	.asciz	"%s: W6692 spurious XINT!\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_w6692_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function w6692_irq
_w6692_irq:                             ; @w6692_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock
Lloh0:
	adrp	x8, _W_ISTA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W_ISTA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ReadW6692
	ldr	w8, [x20]
	orr	w9, w8, w0
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	mov	x21, x0
	ldp	w1, w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #12]
	str	x21, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x20]
	bic	w21, w21, w8
Lloh7:
	adrp	x8, _W_INT_B1_EXI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _W_INT_B1_EXI@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	w1, #0
	bl	_W6692B_interrupt
LBB0_4:
Lloh10:
	adrp	x8, _W_INT_B2_EXI@GOTPAGE
Lloh11:
	ldr	x8, [x8, _W_INT_B2_EXI@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	w1, #1
	bl	_W6692B_interrupt
LBB0_6:
Lloh13:
	adrp	x8, _W_INT_D_RME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _W_INT_D_RME@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_handle_rxD
LBB0_8:
Lloh16:
	adrp	x8, _W_INT_D_RMR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _W_INT_D_RMR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_10
; %bb.9:
Lloh19:
	adrp	x8, _W_D_FIFO_THRESH@GOTPAGE
Lloh20:
	ldr	x8, [x8, _W_D_FIFO_THRESH@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_W6692_empty_Dfifo
LBB0_10:
Lloh22:
	adrp	x8, _W_INT_D_XFR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _W_INT_D_XFR@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_handle_txD
LBB0_12:
Lloh25:
	adrp	x8, _W_INT_D_EXI@GOTPAGE
Lloh26:
	ldr	x8, [x8, _W_INT_D_EXI@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	bl	_handle_statusD
LBB0_14:
Lloh28:
	adrp	x8, _W_INT_XINT0@GOTPAGE
Lloh29:
	ldr	x8, [x8, _W_INT_XINT0@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _W_INT_XINT1@GOTPAGE
Lloh32:
	ldr	x9, [x9, _W_INT_XINT1@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_16
; %bb.15:
	ldr	w1, [x20, #8]
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_16:
Lloh36:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh37:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_W_ISTA,4,2                     ; @W_ISTA
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ista %02x\n"

	.comm	_W_INT_B1_EXI,4,2               ; @W_INT_B1_EXI
	.comm	_W_INT_B2_EXI,4,2               ; @W_INT_B2_EXI
	.comm	_W_INT_D_RME,4,2                ; @W_INT_D_RME
	.comm	_W_INT_D_RMR,4,2                ; @W_INT_D_RMR
	.comm	_W_D_FIFO_THRESH,4,2            ; @W_D_FIFO_THRESH
	.comm	_W_INT_D_XFR,4,2                ; @W_INT_D_XFR
	.comm	_W_INT_D_EXI,4,2                ; @W_INT_D_EXI
	.comm	_W_INT_XINT0,4,2                ; @W_INT_XINT0
	.comm	_W_INT_XINT1,4,2                ; @W_INT_XINT1
l_.str.1:                               ; @.str.1
	.asciz	"%s: W6692 spurious XINT!\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_w6692_irq
.subsections_via_symbols
