	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbcir_irq_handler
_wbcir_irq_handler:                     ## @wbcir_irq_handler
	.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
	movq	%rsi, %rdi
	callq	_pnp_get_drvdata
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_WBCIR_BANK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wbcir_select_bank
	movq	_WBCIR_REG_SP3_EIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_inb
	movl	%eax, %r12d
	andl	(%rbx), %r12d
	je	LBB0_1
## %bb.2:
	movq	_WBCIR_IRQ_ERR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_WBCIR_REG_SP3_LSR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_inb
	movq	_WBCIR_RX_OVERRUN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_WBCIR_RXSTATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	24(%rbx), %edi
	callq	_ir_raw_event_reset
LBB0_5:
	movq	_WBCIR_REG_SP3_ASCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_inb
	movq	_WBCIR_TX_UNDERRUN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_WBCIR_TXSTATE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_7:
	movq	_WBCIR_IRQ_RX@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wbcir_irq_rx
LBB0_9:
	movq	_WBCIR_IRQ_TX_LOW@GOTPCREL(%rip), %rax
	movq	_WBCIR_IRQ_TX_EMPTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%r12d, %ecx
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_wbcir_irq_tx
	jmp	LBB0_11
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
LBB0_11:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WBCIR_BANK_0,4,2               ## @WBCIR_BANK_0
	.comm	_WBCIR_REG_SP3_EIR,8,3          ## @WBCIR_REG_SP3_EIR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_WBCIR_IRQ_ERR,4,2              ## @WBCIR_IRQ_ERR
	.comm	_WBCIR_REG_SP3_LSR,8,3          ## @WBCIR_REG_SP3_LSR
	.comm	_WBCIR_RX_OVERRUN,4,2           ## @WBCIR_RX_OVERRUN
	.comm	_WBCIR_RXSTATE_ERROR,4,2        ## @WBCIR_RXSTATE_ERROR
	.comm	_WBCIR_REG_SP3_ASCR,8,3         ## @WBCIR_REG_SP3_ASCR
	.comm	_WBCIR_TX_UNDERRUN,4,2          ## @WBCIR_TX_UNDERRUN
	.comm	_WBCIR_TXSTATE_ERROR,4,2        ## @WBCIR_TXSTATE_ERROR
	.comm	_WBCIR_IRQ_RX,4,2               ## @WBCIR_IRQ_RX
	.comm	_WBCIR_IRQ_TX_LOW,4,2           ## @WBCIR_IRQ_TX_LOW
	.comm	_WBCIR_IRQ_TX_EMPTY,4,2         ## @WBCIR_IRQ_TX_EMPTY
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_wbcir_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbcir_irq_handler
_wbcir_irq_handler:                     ; @wbcir_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x0, x1
	bl	_pnp_get_drvdata
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _WBCIR_BANK_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WBCIR_BANK_0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wbcir_select_bank
	ldr	x8, [x20, #16]
Lloh3:
	adrp	x9, _WBCIR_REG_SP3_EIR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WBCIR_REG_SP3_EIR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	ldr	w8, [x20]
	ands	w22, w8, w0
	b.eq	LBB0_11
; %bb.1:
Lloh6:
	adrp	x8, _WBCIR_IRQ_ERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WBCIR_IRQ_ERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.2:
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _WBCIR_REG_SP3_LSR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WBCIR_REG_SP3_LSR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh12:
	adrp	x8, _WBCIR_RX_OVERRUN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WBCIR_RX_OVERRUN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _WBCIR_RXSTATE_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WBCIR_RXSTATE_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x20, #28]
	ldr	w0, [x20, #24]
	bl	_ir_raw_event_reset
LBB0_4:
	ldr	x8, [x20, #16]
Lloh18:
	adrp	x9, _WBCIR_REG_SP3_ASCR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WBCIR_REG_SP3_ASCR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh21:
	adrp	x8, _WBCIR_TX_UNDERRUN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WBCIR_TX_UNDERRUN@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh24:
	adrp	x8, _WBCIR_TXSTATE_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _WBCIR_TXSTATE_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #8]
LBB0_6:
Lloh27:
	adrp	x8, _WBCIR_IRQ_RX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WBCIR_IRQ_RX@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x21
	bl	_wbcir_irq_rx
LBB0_8:
Lloh30:
	adrp	x8, _WBCIR_IRQ_TX_LOW@GOTPAGE
Lloh31:
	ldr	x8, [x8, _WBCIR_IRQ_TX_LOW@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _WBCIR_IRQ_TX_EMPTY@GOTPAGE
Lloh34:
	ldr	x9, [x9, _WBCIR_IRQ_TX_EMPTY@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_wbcir_irq_tx
LBB0_10:
Lloh36:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh37:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh38:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh39:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_WBCIR_BANK_0,4,2               ; @WBCIR_BANK_0
	.comm	_WBCIR_REG_SP3_EIR,8,3          ; @WBCIR_REG_SP3_EIR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_WBCIR_IRQ_ERR,4,2              ; @WBCIR_IRQ_ERR
	.comm	_WBCIR_REG_SP3_LSR,8,3          ; @WBCIR_REG_SP3_LSR
	.comm	_WBCIR_RX_OVERRUN,4,2           ; @WBCIR_RX_OVERRUN
	.comm	_WBCIR_RXSTATE_ERROR,4,2        ; @WBCIR_RXSTATE_ERROR
	.comm	_WBCIR_REG_SP3_ASCR,8,3         ; @WBCIR_REG_SP3_ASCR
	.comm	_WBCIR_TX_UNDERRUN,4,2          ; @WBCIR_TX_UNDERRUN
	.comm	_WBCIR_TXSTATE_ERROR,4,2        ; @WBCIR_TXSTATE_ERROR
	.comm	_WBCIR_IRQ_RX,4,2               ; @WBCIR_IRQ_RX
	.comm	_WBCIR_IRQ_TX_LOW,4,2           ; @WBCIR_IRQ_TX_LOW
	.comm	_WBCIR_IRQ_TX_EMPTY,4,2         ; @WBCIR_IRQ_TX_EMPTY
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_wbcir_irq_handler
.subsections_via_symbols
