	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_set_rate
_tx_set_rate:                           ## @tx_set_rate
	.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	%edx, %ecx
	movq	%rdi, %rbx
	movslq	%esi, %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	shrq	$38, %rax
	addl	%edx, %eax
	shll	$6, %eax
	movslq	(%rdi), %rdx
	imulq	$274877907, %rdx, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdx
	shrq	$63, %rdx
	sarq	$38, %rsi
	addl	%edx, %esi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	cmpl	$1023, %eax                     ## imm = 0x3FF
	movl	$1023, %edx                     ## imm = 0x3FF
	cmovll	%eax, %edx
	movq	8(%rdi), %rax
	movq	16(%rdi), %rsi
	movl	$255, %edi
	addl	(%rsi), %edi
	sarl	$8, %edi
	cmpl	$63, %edi
	movl	$63, %r14d
	cmovll	%edi, %r14d
	addl	$255, %ecx
	sarl	$8, %ecx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$65535, %r15d                   ## imm = 0xFFFF
	cmovll	%ecx, %r15d
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_5
## %bb.3:
	movq	_TX_BW_BURST_MOVED@GOTPCREL(%rip), %r12
	movq	_TX_BW_MTU_MOVED@GOTPCREL(%rip), %r13
	movq	_TX_BW_RATE_MOVED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_TX_BW_BURST@GOTPCREL(%rip), %r12
	movq	_TX_BW_MTU@GOTPCREL(%rip), %r13
	movq	_TX_BW_RATE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wrlp
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_wrlp
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrlp                           ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BW_RATE,4,2                 ## @TX_BW_RATE
	.comm	_TX_BW_MTU,4,2                  ## @TX_BW_MTU
	.comm	_TX_BW_BURST,4,2                ## @TX_BW_BURST
	.comm	_TX_BW_RATE_MOVED,4,2           ## @TX_BW_RATE_MOVED
	.comm	_TX_BW_MTU_MOVED,4,2            ## @TX_BW_MTU_MOVED
	.comm	_TX_BW_BURST_MOVED,4,2          ## @TX_BW_BURST_MOVED
	.no_dead_strip	_tx_set_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_set_rate
_tx_set_rate:                           ; @tx_set_rate
	.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	x8, x2
	mov	x19, x0
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x10, w1, w9
	lsr	x11, x10, #63
	lsr	x10, x10, #38
	add	w10, w10, w11
	lsl	w10, w10, #6
	ldrsw	x11, [x0]
	mul	x9, x11, x9
	lsr	x11, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w11
	sdiv	w9, w10, w9
	mov	w10, #1023
	cmp	w9, #1023
	csel	w2, w9, w10, lt
	ldp	x10, x9, [x0, #8]
	ldr	w9, [x9]
	add	w9, w9, #255
	asr	w9, w9, #8
	mov	w11, #63
	cmp	w9, #63
	csel	w21, w9, w11, lt
	add	w8, w8, #255
	asr	w8, w8, #8
	mov	w9, #65535
	cmp	w8, w9
	csel	w20, w8, w9, lt
	ldr	w8, [x10]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x22, _TX_BW_BURST_MOVED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TX_BW_BURST_MOVED@GOTPAGEOFF]
Lloh2:
	adrp	x23, _TX_BW_MTU_MOVED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TX_BW_MTU_MOVED@GOTPAGEOFF]
Lloh4:
	adrp	x8, _TX_BW_RATE_MOVED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TX_BW_RATE_MOVED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x22, _TX_BW_BURST@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TX_BW_BURST@GOTPAGEOFF]
Lloh8:
	adrp	x23, _TX_BW_MTU@GOTPAGE
Lloh9:
	ldr	x23, [x23, _TX_BW_MTU@GOTPAGEOFF]
Lloh10:
	adrp	x8, _TX_BW_RATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TX_BW_RATE@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wrlp
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_wrlp
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	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
	b	_wrlp
LBB0_5:
	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 AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BW_RATE,4,2                 ; @TX_BW_RATE
	.comm	_TX_BW_MTU,4,2                  ; @TX_BW_MTU
	.comm	_TX_BW_BURST,4,2                ; @TX_BW_BURST
	.comm	_TX_BW_RATE_MOVED,4,2           ; @TX_BW_RATE_MOVED
	.comm	_TX_BW_MTU_MOVED,4,2            ; @TX_BW_MTU_MOVED
	.comm	_TX_BW_BURST_MOVED,4,2          ; @TX_BW_BURST_MOVED
	.no_dead_strip	_tx_set_rate
.subsections_via_symbols
