	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_pnp_get_drvdata
	movq	%rax, %r12
	movq	_wbcir_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_WBCIR_BANK_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_wbcir_select_bank
	movq	_WBCIR_REG_SP3_EIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	32(%r12), %rdi
	callq	_inb
	movq	_WBCIR_IRQ_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	movq	_WBCIR_IRQ_ERR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, %edi
	orl	%ecx, %edi
	testl	%eax, %edi
	je	LBB0_22
## %bb.1:
	testl	%eax, %esi
	je	LBB0_3
## %bb.2:
	movl	$1, (%r12)
	movl	(%rdx), %ecx
LBB0_3:
	testl	%eax, %ecx
	je	LBB0_26
## %bb.4:
	movq	_WBCIR_REG_SP3_RXDATA@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	32(%r12), %rdi
	leaq	-80(%rbp), %rsi
	movl	$8, %edx
	callq	_insb
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_add_irdata_bit
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, 8(%r12)
	incq	%rbx
	cmpq	$32, %rbx
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-80(%rbp,%rbx,4), %edi
	callq	_hweight8
	cmpl	$4, %eax
	jbe	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_add_irdata_bit
	cmpl	$8, %r13d
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rax
	incq	%rax
	jmp	LBB0_7
LBB0_12:
	movq	_WBCIR_MAX_IDLE_BYTES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_26
## %bb.13:
	movq	_WBCIR_RX_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WBCIR_REG_SP3_ASCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%r12), %rsi
	callq	_outb
	movq	_WBCIR_REG_SP3_LSR@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	32(%r12), %rdi
	callq	_inb
	movq	_WBCIR_RX_AVAIL@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	32(%r12), %rdi
	callq	_inb
	movq	(%r13), %rdi
	addq	32(%r12), %rdi
	callq	_inb
	testl	%eax, (%rbx)
	jne	LBB0_14
LBB0_15:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, 16(%r12)
	jle	LBB0_18
## %bb.16:
	movq	_BITS_PER_LONG@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	L_.str.1(%rip), %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rsi
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	cltq
	movl	(%rsi,%rax,4), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %ecx
	addl	%ecx, %ebx
	cmpl	16(%r12), %ebx
	jl	LBB0_17
LBB0_18:
	movq	_protocol@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_23
## %bb.19:
	cmpl	$130, %eax
	je	LBB0_24
## %bb.20:
	cmpl	$129, %eax
	jne	LBB0_25
## %bb.21:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wbcir_parse_rc5
	jmp	LBB0_25
LBB0_22:
	movq	_wbcir_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_23:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wbcir_parse_rc6
	jmp	LBB0_25
LBB0_24:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_wbcir_parse_nec
LBB0_25:
	movq	%r12, %rdi
	callq	_wbcir_reset_irdata
	movq	$0, 8(%r12)
LBB0_26:
	movq	_wbcir_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@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	$40, %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_lock,4,2                 ## @wbcir_lock
	.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	_WBCIR_REG_SP3_RXDATA,8,3       ## @WBCIR_REG_SP3_RXDATA
	.comm	_WBCIR_MAX_IDLE_BYTES,8,3       ## @WBCIR_MAX_IDLE_BYTES
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IRDATA:\n"

L_.str.1:                               ## @.str.1
	.asciz	"0x%08lX\n"

	.comm	_BITS_PER_LONG,4,2              ## @BITS_PER_LONG
	.comm	_protocol,4,2                   ## @protocol
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	x0, x1
	bl	_pnp_get_drvdata
	mov	x19, x0
Lloh3:
	adrp	x0, _wbcir_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _wbcir_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh5:
	adrp	x8, _WBCIR_BANK_0@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WBCIR_BANK_0@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wbcir_select_bank
	ldr	x8, [x19, #32]
Lloh8:
	adrp	x9, _WBCIR_REG_SP3_EIR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WBCIR_REG_SP3_EIR@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh11:
	adrp	x9, _WBCIR_IRQ_RX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _WBCIR_IRQ_RX@GOTPAGEOFF]
	ldr	w8, [x9]
Lloh13:
	adrp	x10, _WBCIR_IRQ_ERR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WBCIR_IRQ_ERR@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w11, w10, w8
	tst	w11, w0
	b.eq	LBB0_15
; %bb.1:
	tst	w10, w0
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x9]
LBB0_3:
	tst	w8, w0
	b.eq	LBB0_26
; %bb.4:
	ldr	x8, [x19, #32]
Lloh16:
	adrp	x22, _WBCIR_REG_SP3_RXDATA@GOTPAGE
Lloh17:
	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
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_add_irdata_bit
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	x8, [x19, #8]
	add	x24, x24, #4
	cmp	x24, #128
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, x24]
	bl	_hweight8
	cmp	w0, #4
	b.ls	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_add_irdata_bit
	cmp	w21, #8
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	b	LBB0_7
LBB0_11:
Lloh18:
	adrp	x9, _WBCIR_MAX_IDLE_BYTES@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WBCIR_MAX_IDLE_BYTES@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_26
; %bb.12:
Lloh21:
	adrp	x8, _WBCIR_RX_DISABLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WBCIR_RX_DISABLE@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
Lloh24:
	adrp	x9, _WBCIR_REG_SP3_ASCR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WBCIR_REG_SP3_ASCR@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	x8, [x19, #32]
Lloh27:
	adrp	x21, _WBCIR_REG_SP3_LSR@GOTPAGE
Lloh28:
	ldr	x21, [x21, _WBCIR_REG_SP3_LSR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
Lloh29:
	adrp	x23, _WBCIR_RX_AVAIL@GOTPAGE
Lloh30:
	ldr	x23, [x23, _WBCIR_RX_AVAIL@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19, #32]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inb
	ldr	x8, [x19, #32]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
	b	LBB0_13
LBB0_15:
Lloh31:
	adrp	x0, _wbcir_lock@GOTPAGE
Lloh32:
	ldr	x0, [x0, _wbcir_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh33:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_27
LBB0_16:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	w22, #0
Lloh37:
	adrp	x23, _BITS_PER_LONG@GOTPAGE
Lloh38:
	ldr	x23, [x23, _BITS_PER_LONG@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh39:
	adrp	x21, l_.str.1@PAGE
Lloh40:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	sdiv	w8, w22, w8
	ldr	w8, [x9, w8, sxtw #2]
	str	x8, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_dev_dbg
	ldr	w8, [x23]
	ldr	w9, [x19, #16]
	add	w22, w8, w22
	cmp	w22, w9
	b.lt	LBB0_18
LBB0_19:
Lloh41:
	adrp	x8, _protocol@GOTPAGE
Lloh42:
	ldr	x8, [x8, _protocol@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_23
; %bb.20:
	cmp	w8, #130
	b.eq	LBB0_24
; %bb.21:
	cmp	w8, #129
	b.ne	LBB0_25
; %bb.22:
	mov	x0, x20
	mov	x1, x19
	bl	_wbcir_parse_rc5
	b	LBB0_25
LBB0_23:
	mov	x0, x20
	mov	x1, x19
	bl	_wbcir_parse_rc6
	b	LBB0_25
LBB0_24:
	mov	x0, x20
	mov	x1, x19
	bl	_wbcir_parse_nec
LBB0_25:
	mov	x0, x19
	bl	_wbcir_reset_irdata
	str	xzr, [x19, #8]
LBB0_26:
Lloh44:
	adrp	x0, _wbcir_lock@GOTPAGE
Lloh45:
	ldr	x0, [x0, _wbcir_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh46:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_27:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh48:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh49:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_wbcir_lock,4,2                 ; @wbcir_lock
	.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	_WBCIR_REG_SP3_RXDATA,8,3       ; @WBCIR_REG_SP3_RXDATA
	.comm	_WBCIR_MAX_IDLE_BYTES,8,3       ; @WBCIR_MAX_IDLE_BYTES
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IRDATA:\n"

l_.str.1:                               ; @.str.1
	.asciz	"0x%08lX\n"

	.comm	_BITS_PER_LONG,4,2              ; @BITS_PER_LONG
	.comm	_protocol,4,2                   ; @protocol
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_wbcir_irq_handler
.subsections_via_symbols
