	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_rx_coal
_set_rx_coal:                           ## @set_rx_coal
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	imull	(%rdi), %ebx
	addl	$31999999, %ebx                 ## imm = 0x1E847FF
	movl	%ebx, %edi
	movl	$64000000, %esi                 ## imm = 0x3D09000
	callq	_do_div
	movq	_SDMA_CONFIG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_rdlp
	movq	8(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_2
## %bb.1:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	movl	$65535, %edx                    ## imm = 0xFFFF
	cmovll	%ebx, %edx
	andl	$-37748609, %eax                ## imm = 0xFDC0007F
	movl	%edx, %ecx
	shll	$10, %ecx
	andl	$33554432, %ecx                 ## imm = 0x2000000
	orl	%eax, %ecx
	shll	$7, %edx
	andl	$4194176, %edx                  ## imm = 0x3FFF80
	orl	%ecx, %edx
	jmp	LBB0_3
LBB0_2:
	cmpl	$16383, %ebx                    ## imm = 0x3FFF
	movl	$16383, %edx                    ## imm = 0x3FFF
	cmovll	%ebx, %edx
	andl	$-4194049, %eax                 ## imm = 0xFFC000FF
	shll	$8, %edx
	andl	$4194048, %edx                  ## imm = 0x3FFF00
	orl	%eax, %edx
LBB0_3:
	movl	(%r15), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrlp                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA_CONFIG,4,2                ## @SDMA_CONFIG
	.no_dead_strip	_set_rx_coal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_rx_coal
_set_rx_coal:                           ; @set_rx_coal
	.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
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #18431
	movk	w9, #488, lsl #16
	madd	w20, w8, w1, w9
	mov	x0, x20
	mov	w1, #36864
	movk	w1, #976, lsl #16
	bl	_do_div
Lloh0:
	adrp	x21, _SDMA_CONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SDMA_CONFIG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_rdlp
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	w9, #16383
	cmp	w20, w9
	csel	w9, w20, w9, lt
	mov	w10, #65535
	cmp	w20, w10
	csel	w10, w20, w10, lt
	lsr	w11, w10, #15
	mov	w12, #127
	movk	w12, #64960, lsl #16
	and	w12, w0, w12
	bfi	w0, w9, #8, #14
	bfi	w12, w11, #25, #1
	bfi	w12, w10, #7, #15
	cmp	x8, #0
	csel	w2, w0, w12, eq
	ldr	w1, [x21]
	mov	x0, x19
	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
	b	_wrlp
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_CONFIG,4,2                ; @SDMA_CONFIG
	.no_dead_strip	_set_rx_coal
.subsections_via_symbols
