	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbcir_set_carrier_report
_wbcir_set_carrier_report:              ## @wbcir_set_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	%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
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpl	%r15d, (%rbx)
	je	LBB0_6
## %bb.1:
	movq	$0, 32(%rbx)
	movq	_WBCIR_REG_ECEIR_CCTL@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	24(%rbx), %rdi
	movq	_WBCIR_CNTR_R@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_WBCIR_CNTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	%esi, %edx
	callq	_wbcir_set_bits
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.3:
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	16(%rbx), %rax
	movl	$2, %r13d
	movl	$3, %r12d
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	movq	(%rcx), %rdi
	addq	24(%rbx), %rdi
	movq	_WBCIR_CNTR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rdx), %edx
	orl	%esi, %edx
	callq	_wbcir_set_bits
	jmp	LBB0_5
LBB0_2:
	movl	$10, %r13d
	movl	$15, %r12d
LBB0_5:
	movq	_WBCIR_BANK_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wbcir_select_bank
	movl	%r13d, %edi
	callq	_US_TO_NS
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx)
	movq	_WBCIR_REG_SP3_BGDL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r12d, %edi
	callq	_outb
	movq	_WBCIR_REG_SP3_BGDH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	_WBCIR_BANK_7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wbcir_select_bank
	movq	_WBCIR_REG_SP3_RCCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	testl	%r15d, %r15d
	movq	_WBCIR_RX_T_OV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %esi
	cmovel	%r15d, %esi
	callq	_wbcir_set_bits
	movl	%r15d, (%rbx)
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.comm	_WBCIR_BANK_2,4,2               ## @WBCIR_BANK_2
	.comm	_WBCIR_REG_SP3_BGDL,8,3         ## @WBCIR_REG_SP3_BGDL
	.comm	_WBCIR_REG_SP3_BGDH,8,3         ## @WBCIR_REG_SP3_BGDH
	.comm	_WBCIR_BANK_7,4,2               ## @WBCIR_BANK_7
	.comm	_WBCIR_REG_SP3_RCCFG,8,3        ## @WBCIR_REG_SP3_RCCFG
	.comm	_WBCIR_RX_T_OV,4,2              ## @WBCIR_RX_T_OV
	.no_dead_strip	_wbcir_set_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_set_carrier_report
_wbcir_set_carrier_report:              ; @wbcir_set_carrier_report
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x21, [x0]
	add	x19, x21, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	cmp	w8, w20
	b.eq	LBB0_7
; %bb.1:
	str	xzr, [x21, #32]
	ldr	x8, [x21, #24]
Lloh0:
	adrp	x22, _WBCIR_REG_ECEIR_CCTL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WBCIR_REG_ECEIR_CCTL@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x23, _WBCIR_CNTR_R@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WBCIR_CNTR_R@GOTPAGEOFF]
	add	x0, x9, x8
	ldr	w1, [x23]
Lloh4:
	adrp	x24, _WBCIR_CNTR_EN@GOTPAGE
Lloh5:
	ldr	x24, [x24, _WBCIR_CNTR_EN@GOTPAGEOFF]
	ldr	w8, [x24]
	orr	w2, w8, w1
	bl	_wbcir_set_bits
	cbz	w20, LBB0_5
; %bb.2:
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x21, #24]
	ldr	x9, [x22]
	add	x0, x9, x8
	ldr	w1, [x24]
	ldr	w8, [x23]
	orr	w2, w8, w1
	bl	_wbcir_set_bits
LBB0_4:
	mov	w23, #2
	mov	w22, #3
	b	LBB0_6
LBB0_5:
	mov	w23, #10
	mov	w22, #15
LBB0_6:
Lloh6:
	adrp	x8, _WBCIR_BANK_2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WBCIR_BANK_2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wbcir_select_bank
	mov	x0, x23
	bl	_US_TO_NS
	ldp	x9, x8, [x21, #8]
	str	w0, [x8]
Lloh9:
	adrp	x8, _WBCIR_REG_SP3_BGDL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WBCIR_REG_SP3_BGDL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x1, x8, x9
	mov	x0, x22
	bl	_outb
	ldr	x8, [x21, #8]
Lloh12:
	adrp	x9, _WBCIR_REG_SP3_BGDH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WBCIR_REG_SP3_BGDH@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_outb
Lloh15:
	adrp	x8, _WBCIR_BANK_7@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WBCIR_BANK_7@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_wbcir_select_bank
	ldr	x8, [x21, #8]
Lloh18:
	adrp	x9, _WBCIR_REG_SP3_RCCFG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WBCIR_REG_SP3_RCCFG@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x0, x9, x8
Lloh21:
	adrp	x8, _WBCIR_RX_T_OV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WBCIR_RX_T_OV@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	cmp	w20, #0
	csel	w1, wzr, w2, eq
	bl	_wbcir_set_bits
	str	w20, [x21]
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.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
	.comm	_WBCIR_BANK_2,4,2               ; @WBCIR_BANK_2
	.comm	_WBCIR_REG_SP3_BGDL,8,3         ; @WBCIR_REG_SP3_BGDL
	.comm	_WBCIR_REG_SP3_BGDH,8,3         ; @WBCIR_REG_SP3_BGDH
	.comm	_WBCIR_BANK_7,4,2               ; @WBCIR_BANK_7
	.comm	_WBCIR_REG_SP3_RCCFG,8,3        ; @WBCIR_REG_SP3_RCCFG
	.comm	_WBCIR_RX_T_OV,4,2              ; @WBCIR_RX_T_OV
	.no_dead_strip	_wbcir_set_carrier_report
.subsections_via_symbols
