	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbcir_irq_rx
_wbcir_irq_rx:                          ## @wbcir_irq_rx
	.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	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	_WBCIR_REG_SP3_LSR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	24(%r15), %rdi
	callq	_inb
	movq	_WBCIR_RX_AVAIL@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.1:
	movq	_WBCIR_REG_SP3_RXDATA@GOTPCREL(%rip), %r13
	movq	_WBCIR_RXSTATE_ERROR@GOTPCREL(%rip), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r15), %edi
	leaq	-48(%rbp), %rsi
	callq	_ir_raw_event_store_with_filter
	movq	_WBCIR_RXSTATE_ERROR@GOTPCREL(%rip), %rbx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	addq	24(%r15), %rdi
	callq	_inb
	testl	%eax, (%r12)
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	24(%r15), %rdi
	callq	_inb
	movq	(%r15), %rcx
	cmpq	(%rbx), %rcx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ecx
	andl	$127, %ecx
	incl	%ecx
	xorl	%edx, %edx
	cmpq	$0, 16(%r15)
	sete	%dl
	leal	2(,%rdx,8), %ebx
	imull	%ecx, %ebx
	xorl	%ecx, %ecx
	testb	$-128, %al
	sete	%cl
	movl	%ecx, -48(%rbp)
	movl	%ebx, %edi
	callq	_US_TO_NS
	movl	%eax, -44(%rbp)
	cmpl	$0, -48(%rbp)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%ebx, 8(%r15)
	jmp	LBB0_5
LBB0_7:
	movl	12(%r15), %edi
	callq	_ir_raw_event_handle
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WBCIR_REG_SP3_LSR,8,3          ## @WBCIR_REG_SP3_LSR
	.comm	_WBCIR_RX_AVAIL,4,2             ## @WBCIR_RX_AVAIL
	.comm	_WBCIR_REG_SP3_RXDATA,8,3       ## @WBCIR_REG_SP3_RXDATA
	.comm	_WBCIR_RXSTATE_ERROR,8,3        ## @WBCIR_RXSTATE_ERROR
	.no_dead_strip	_wbcir_irq_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbcir_irq_rx
_wbcir_irq_rx:                          ; @wbcir_irq_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x21, _WBCIR_REG_SP3_LSR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WBCIR_REG_SP3_LSR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
Lloh2:
	adrp	x22, _WBCIR_RX_AVAIL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WBCIR_RX_AVAIL@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.1:
Lloh4:
	adrp	x23, _WBCIR_REG_SP3_RXDATA@GOTPAGE
Lloh5:
	ldr	x23, [x23, _WBCIR_REG_SP3_RXDATA@GOTPAGEOFF]
Lloh6:
	adrp	x24, _WBCIR_RXSTATE_ERROR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _WBCIR_RXSTATE_ERROR@GOTPAGEOFF]
	mov	w25, #2
	mov	w26, #10
	mov	w27, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #12]
	add	x1, sp, #8
	bl	_ir_raw_event_store_with_filter
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inb
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	and	w8, w0, #0x7f
	ldr	x9, [x19, #16]
	cmp	x9, #0
	csel	w9, w26, w25, eq
	madd	w20, w9, w8, w9
	bic	w8, w27, w0, lsr #7
	str	w8, [sp, #8]
	mov	x0, x20
	bl	_US_TO_NS
	str	w0, [sp, #12]
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, w20
	str	w8, [x19, #8]
	b	LBB0_2
LBB0_7:
	ldr	w0, [x19, #12]
	bl	_ir_raw_event_handle
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WBCIR_REG_SP3_LSR,8,3          ; @WBCIR_REG_SP3_LSR
	.comm	_WBCIR_RX_AVAIL,4,2             ; @WBCIR_RX_AVAIL
	.comm	_WBCIR_REG_SP3_RXDATA,8,3       ; @WBCIR_REG_SP3_RXDATA
	.comm	_WBCIR_RXSTATE_ERROR,8,3        ; @WBCIR_RXSTATE_ERROR
	.no_dead_strip	_wbcir_irq_rx
.subsections_via_symbols
