	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbcir_txcarrier
_wbcir_txcarrier:                       ## @wbcir_txcarrier
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movl	%esi, %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	movl	%eax, %ebx
	leal	-61(%rbx), %eax
	cmpl	$-32, %eax
	ja	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	leal	-57(%rbx), %eax
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.5:
	cltq
	leaq	L_switch.table.wbcir_txcarrier(%rip), %rcx
	movl	(%rcx,%rax,4), %ebx
	leaq	L_switch.table.wbcir_txcarrier.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r12d
	jmp	LBB0_6
LBB0_4:
	imull	$1000, %ebx, %r12d              ## imm = 0x3E8
	addl	$-27, %ebx
LBB0_6:
	leaq	12(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r14), %rax
	movq	_WBCIR_TXSTATE_INACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	cmpl	%r12d, 8(%r14)
	je	LBB0_10
## %bb.9:
	movq	_WBCIR_BANK_7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wbcir_select_bank
	movq	_WBCIR_REG_SP3_IRTXMC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r14), %rdi
	movl	%ebx, %esi
	movl	$31, %edx
	callq	_wbcir_set_bits
	movl	%r12d, 8(%r14)
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WBCIR_TXSTATE_INACTIVE,8,3     ## @WBCIR_TXSTATE_INACTIVE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_WBCIR_BANK_7,4,2               ## @WBCIR_BANK_7
	.comm	_WBCIR_REG_SP3_IRTXMC,8,3       ## @WBCIR_REG_SP3_IRTXMC
	.no_dead_strip	_wbcir_txcarrier
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.wbcir_txcarrier
L_switch.table.wbcir_txcarrier:
	.long	30                              ## 0x1e
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2

	.p2align	2                               ## @switch.table.wbcir_txcarrier.1
L_switch.table.wbcir_txcarrier.1:
	.long	56900                           ## 0xde44
	.long	58000                           ## 0xe290
	.long	59000                           ## 0xe678
	.long	60000                           ## 0xea60

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbcir_txcarrier
_wbcir_txcarrier:                       ; @wbcir_txcarrier
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
	mov	x0, x1
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	sub	w8, w0, #61
	cmn	w8, #32
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	sub	w8, w0, #57
	cmp	w8, #4
	b.hs	LBB0_4
; %bb.3:
	sbfiz	x8, x8, #2, #32
Lloh2:
	adrp	x9, l_switch.table.wbcir_txcarrier@PAGE
Lloh3:
	add	x9, x9, l_switch.table.wbcir_txcarrier@PAGEOFF
	ldr	w20, [x9, x8]
Lloh4:
	adrp	x9, l_switch.table.wbcir_txcarrier.1@PAGE
Lloh5:
	add	x9, x9, l_switch.table.wbcir_txcarrier.1@PAGEOFF
	ldr	w22, [x9, x8]
	b	LBB0_5
LBB0_4:
	sub	w20, w0, #27
	mov	w8, #1000
	mul	w22, w0, w8
LBB0_5:
	add	x21, x19, #12
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _WBCIR_TXSTATE_INACTIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WBCIR_TXSTATE_INACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	ldr	w8, [x19, #8]
	cmp	w8, w22
	b.eq	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _WBCIR_BANK_7@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WBCIR_BANK_7@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wbcir_select_bank
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _WBCIR_REG_SP3_IRTXMC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WBCIR_REG_SP3_IRTXMC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	mov	x1, x20
	mov	w2, #31
	bl	_wbcir_set_bits
	str	w22, [x19, #8]
LBB0_8:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WBCIR_TXSTATE_INACTIVE,8,3     ; @WBCIR_TXSTATE_INACTIVE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_WBCIR_BANK_7,4,2               ; @WBCIR_BANK_7
	.comm	_WBCIR_REG_SP3_IRTXMC,8,3       ; @WBCIR_REG_SP3_IRTXMC
	.no_dead_strip	_wbcir_txcarrier
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.wbcir_txcarrier
l_switch.table.wbcir_txcarrier:
	.long	30                              ; 0x1e
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2

	.p2align	2                               ; @switch.table.wbcir_txcarrier.1
l_switch.table.wbcir_txcarrier.1:
	.long	56900                           ; 0xde44
	.long	58000                           ; 0xe290
	.long	59000                           ; 0xe678
	.long	60000                           ; 0xea60

.subsections_via_symbols
