	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbcir_carrier_report
_wbcir_carrier_report:                  ## @wbcir_carrier_report
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_WBCIR_REG_ECEIR_CNT_LO@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_inb
	movl	%eax, %r14d
	movq	_WBCIR_REG_ECEIR_CNT_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%rbx), %rdi
	callq	_inb
                                        ## kill: def $eax killed $eax def $rax
	shll	$8, %eax
	orl	%r14d, %eax
	leal	-1(%rax), %ecx
	cmpl	$65533, %ecx                    ## imm = 0xFFFD
	ja	LBB0_2
## %bb.1:
	movl	$1, -40(%rbp)
	imull	$1000000, %eax, %edi            ## imm = 0xF4240
	movq	8(%rbx), %rsi
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, -36(%rbp)
	movl	16(%rbx), %edi
	leaq	-40(%rbp), %rsi
	callq	_ir_raw_event_store
LBB0_2:
	movq	$0, 8(%rbx)
	movq	_WBCIR_REG_ECEIR_CCTL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	movq	_WBCIR_CNTR_R@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_WBCIR_CNTR_EN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	%esi, %edx
	callq	_wbcir_set_bits
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	movl	(%r12), %esi
	movl	(%r15), %edx
	orl	%esi, %edx
	callq	_wbcir_set_bits
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WBCIR_REG_ECEIR_CNT_LO,8,3     ## @WBCIR_REG_ECEIR_CNT_LO
	.comm	_WBCIR_REG_ECEIR_CNT_HI,8,3     ## @WBCIR_REG_ECEIR_CNT_HI
	.comm	_WBCIR_REG_ECEIR_CCTL,8,3       ## @WBCIR_REG_ECEIR_CCTL
	.comm	_WBCIR_CNTR_R,4,2               ## @WBCIR_CNTR_R
	.comm	_WBCIR_CNTR_EN,4,2              ## @WBCIR_CNTR_EN
	.no_dead_strip	_wbcir_carrier_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbcir_carrier_report
_wbcir_carrier_report:                  ; @wbcir_carrier_report
	.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	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _WBCIR_REG_ECEIR_CNT_LO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WBCIR_REG_ECEIR_CNT_LO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	mov	x20, x0
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _WBCIR_REG_ECEIR_CNT_HI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WBCIR_REG_ECEIR_CNT_HI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	orr	w8, w20, w0, lsl #8
	sub	w9, w8, #1
	mov	w10, #65533
	cmp	w9, w10
	b.hi	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [sp, #8]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w0, w8, w9
	ldr	x1, [x19, #8]
	bl	_DIV_ROUND_CLOSEST
	str	w0, [sp, #12]
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_ir_raw_event_store
LBB0_2:
	str	xzr, [x19, #8]
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _WBCIR_REG_ECEIR_CCTL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _WBCIR_REG_ECEIR_CCTL@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh8:
	adrp	x21, _WBCIR_CNTR_R@GOTPAGE
Lloh9:
	ldr	x21, [x21, _WBCIR_CNTR_R@GOTPAGEOFF]
	add	x0, x9, x8
	ldr	w1, [x21]
Lloh10:
	adrp	x22, _WBCIR_CNTR_EN@GOTPAGE
Lloh11:
	ldr	x22, [x22, _WBCIR_CNTR_EN@GOTPAGEOFF]
	ldr	w8, [x22]
	orr	w2, w8, w1
	bl	_wbcir_set_bits
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	ldr	w1, [x22]
	ldr	w8, [x21]
	orr	w2, w8, w1
	bl	_wbcir_set_bits
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WBCIR_REG_ECEIR_CNT_LO,8,3     ; @WBCIR_REG_ECEIR_CNT_LO
	.comm	_WBCIR_REG_ECEIR_CNT_HI,8,3     ; @WBCIR_REG_ECEIR_CNT_HI
	.comm	_WBCIR_REG_ECEIR_CCTL,8,3       ; @WBCIR_REG_ECEIR_CCTL
	.comm	_WBCIR_CNTR_R,4,2               ; @WBCIR_CNTR_R
	.comm	_WBCIR_CNTR_EN,4,2              ; @WBCIR_CNTR_EN
	.no_dead_strip	_wbcir_carrier_report
.subsections_via_symbols
