	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_pnp_get_drvdata
	movq	%rax, %rbx
	leaq	8(%rax), %r12
	movq	%r12, %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	24(%rbx), %rdi
	callq	_inb
	movl	%eax, %r15d
	movq	_WBCIR_IRQ_RX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_WBCIR_IRQ_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	testl	%r15d, %edx
	je	LBB0_1
## %bb.2:
	testl	%r15d, %ecx
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
	movl	12(%rbx), %edi
	callq	_ir_raw_event_reset
	movl	(%r14), %eax
LBB0_4:
	testl	%r15d, %eax
	je	LBB0_26
## %bb.5:
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rbx)
	jne	LBB0_7
## %bb.6:
	movl	$1, 4(%rbx)
	movl	16(%rbx), %edi
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_led_trigger_event
LBB0_7:
	movq	_WBCIR_REG_SP3_RXDATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rbx), %rdi
	leaq	-80(%rbp), %rsi
	movl	$8, %edx
	callq	_insb
	movq	%rbx, %r13
	addq	$32, %r13
	movl	$1, %ecx
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_12
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r14
	cmpq	$8, %r14
	je	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-80(%rbp,%r14,4), %eax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$255, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r15d, %r15d
	testb	$-128, %al
	sete	%r15b
	andl	$127, %eax
	imulq	$10000, %rax, %r12              ## imm = 0x2710
	movq	40(%rbx), %rax
	cmpl	%r15d, 32(%rbx)
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	12(%rbx), %edi
	movq	%r13, %rsi
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	callq	_ir_raw_event_store
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, (%r13)
	xorl	%eax, %eax
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	%r12, %rax
	movq	%rax, 40(%rbx)
	jmp	LBB0_17
LBB0_18:
	testl	%ecx, %ecx
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_25
## %bb.19:
	cmpq	$0, 40(%rbx)
	je	LBB0_22
## %bb.20:
	cmpl	$0, (%rbx)
	jne	LBB0_22
## %bb.21:
	movl	12(%rbx), %edi
	movq	%r13, %rsi
	callq	_ir_raw_event_store
	movq	$0, 40(%rbx)
LBB0_22:
	movq	_WBCIR_RX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WBCIR_REG_SP3_ASCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	24(%rbx), %rsi
	callq	_outb
	movq	_WBCIR_REG_SP3_LSR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	24(%rbx), %rdi
	callq	_inb
	movq	_WBCIR_RX_AVAIL@GOTPCREL(%rip), %r15
	testl	%eax, (%r15)
	movq	_WBCIR_REG_SP3_RXDATA@GOTPCREL(%rip), %r13
	je	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	24(%rbx), %rdi
	callq	_inb
	movq	(%r14), %rdi
	addq	24(%rbx), %rdi
	callq	_inb
	testl	%eax, (%r15)
	jne	LBB0_23
LBB0_24:
	movl	12(%rbx), %edi
	callq	_ir_raw_event_reset
	movq	$0, (%rbx)
	movl	16(%rbx), %edi
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_led_trigger_event
LBB0_25:
	movl	12(%rbx), %edi
	callq	_ir_raw_event_handle
LBB0_26:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_1:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.28:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.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	_WBCIR_IRQ_RX,4,2               ## @WBCIR_IRQ_RX
	.comm	_WBCIR_IRQ_ERR,4,2              ## @WBCIR_IRQ_ERR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_WBCIR_REG_SP3_RXDATA,8,3       ## @WBCIR_REG_SP3_RXDATA
	.comm	_WBCIR_RX_DISABLE,4,2           ## @WBCIR_RX_DISABLE
	.comm	_WBCIR_REG_SP3_ASCR,8,3         ## @WBCIR_REG_SP3_ASCR
	.comm	_WBCIR_REG_SP3_LSR,8,3          ## @WBCIR_REG_SP3_LSR
	.comm	_WBCIR_RX_AVAIL,4,2             ## @WBCIR_RX_AVAIL
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.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:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x0, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_pnp_get_drvdata
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _WBCIR_BANK_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WBCIR_BANK_0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wbcir_select_bank
	ldr	x8, [x20, #24]
Lloh6:
	adrp	x9, _WBCIR_REG_SP3_EIR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WBCIR_REG_SP3_EIR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh9:
	adrp	x22, _WBCIR_IRQ_RX@GOTPAGE
Lloh10:
	ldr	x22, [x22, _WBCIR_IRQ_RX@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh11:
	adrp	x9, _WBCIR_IRQ_ERR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WBCIR_IRQ_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w10, w9, w8
	tst	w10, w0
	b.eq	LBB0_21
; %bb.1:
	mov	x21, x0
	tst	w9, w0
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x20, #12]
	bl	_ir_raw_event_reset
	ldr	w8, [x22]
LBB0_3:
	tst	w8, w21
	b.eq	LBB0_24
; %bb.4:
	str	x19, [sp]                       ; 8-byte Folded Spill
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x20, #4]
	ldr	w0, [x20, #16]
Lloh14:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_led_trigger_event
LBB0_6:
	ldr	x8, [x20, #24]
Lloh17:
	adrp	x22, _WBCIR_REG_SP3_RXDATA@GOTPAGE
Lloh18:
	ldr	x22, [x22, _WBCIR_REG_SP3_RXDATA@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	add	x23, sp, #8
	add	x1, sp, #8
	mov	w2, #8
	bl	_insb
	mov	x24, #0
	add	x21, x20, #32
	mov	w25, #1
	mov	w26, #10000
	mov	w27, #1
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, #0
	str	w19, [x21]
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	and	x9, x28, #0x7f
	mul	x9, x9, x26
	add	x8, x8, x9
	str	x8, [x20, #40]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #4
	cmp	x24, #32
	b.eq	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w28, [x23, x24]
	cmp	w28, #255
	csel	w8, w27, wzr, eq
	cmp	w28, #0
	csel	w27, w27, w8, eq
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	bic	w19, w25, w28, lsr #7
	ldr	w9, [x20, #32]
	ldr	x8, [x20, #40]
	cmp	w9, w19
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x8, LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x20, #12]
	mov	x1, x21
	bl	_ir_raw_event_store
	b	LBB0_7
LBB0_14:
	cbz	w27, LBB0_23
; %bb.15:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_18
; %bb.16:
	ldr	w8, [x20]
	cbnz	w8, LBB0_18
; %bb.17:
	ldr	w0, [x20, #12]
	mov	x1, x21
	bl	_ir_raw_event_store
	str	xzr, [x20, #40]
LBB0_18:
Lloh19:
	adrp	x8, _WBCIR_RX_DISABLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WBCIR_RX_DISABLE@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
Lloh22:
	adrp	x9, _WBCIR_REG_SP3_ASCR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _WBCIR_REG_SP3_ASCR@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	x8, [x20, #24]
Lloh25:
	adrp	x21, _WBCIR_REG_SP3_LSR@GOTPAGE
Lloh26:
	ldr	x21, [x21, _WBCIR_REG_SP3_LSR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
Lloh27:
	adrp	x23, _WBCIR_RX_AVAIL@GOTPAGE
Lloh28:
	ldr	x23, [x23, _WBCIR_RX_AVAIL@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x20, #24]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inb
	ldr	x8, [x20, #24]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
	b	LBB0_19
LBB0_21:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh29:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
	ldr	w0, [x20, #12]
	bl	_ir_raw_event_reset
	str	xzr, [x20]
	ldr	w0, [x20, #16]
Lloh31:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_led_trigger_event
LBB0_23:
	ldr	w0, [x20, #12]
	bl	_ir_raw_event_handle
	ldr	x19, [sp]                       ; 8-byte Folded Reload
LBB0_24:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh34:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.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	_WBCIR_IRQ_RX,4,2               ; @WBCIR_IRQ_RX
	.comm	_WBCIR_IRQ_ERR,4,2              ; @WBCIR_IRQ_ERR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_WBCIR_REG_SP3_RXDATA,8,3       ; @WBCIR_REG_SP3_RXDATA
	.comm	_WBCIR_RX_DISABLE,4,2           ; @WBCIR_RX_DISABLE
	.comm	_WBCIR_REG_SP3_ASCR,8,3         ; @WBCIR_REG_SP3_ASCR
	.comm	_WBCIR_REG_SP3_LSR,8,3          ; @WBCIR_REG_SP3_LSR
	.comm	_WBCIR_RX_AVAIL,4,2             ; @WBCIR_RX_AVAIL
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_wbcir_irq_handler
.subsections_via_symbols
