	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_set_coalesce
_bdx_set_coalesce:                      ## @bdx_set_coalesce
	.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
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_INT_COAL_MULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	cltd
	idivl	%esi
	movl	%eax, %r15d
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %edi
	movslq	8(%rbx), %rax
	movl	12(%rbx), %esi
	movq	_PCK_TH_MULT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rax,4), %rax
	decq	%rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r12
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r12d
LBB0_3:
	movq	_BDX_TXF_DESC_SZ@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	leal	(%rcx,%rsi), %eax
	decl	%eax
	cltd
	idivl	%ecx
	cmpl	$32767, %r15d                   ## imm = 0x7FFF
	jg	LBB0_7
## %bb.4:
	cmpl	$32767, %edi                    ## imm = 0x7FFF
	jg	LBB0_7
## %bb.5:
	cmpl	$15, %r12d
	jg	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	cmpl	$16, %eax
	jge	LBB0_7
## %bb.8:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r14), %rdi
	callq	_GET_INT_COAL_RC
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	callq	_GET_RXF_TH
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_INT_REG_VAL
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_GET_INT_COAL_RC
	xorl	%ebx, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_INT_REG_VAL
	movq	%rax, %r12
	movq	%r15, 8(%r14)
	movq	%rax, (%r14)
	movq	_regRDINTCM0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_WRITE_REG
	movq	_regTDINTCM0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_WRITE_REG
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_COAL_MULT,4,2              ## @INT_COAL_MULT
	.comm	_PCK_TH_MULT,4,2                ## @PCK_TH_MULT
	.comm	_BDX_TXF_DESC_SZ,4,2            ## @BDX_TXF_DESC_SZ
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_regRDINTCM0,4,2                ## @regRDINTCM0
	.comm	_regTDINTCM0,4,2                ## @regTDINTCM0
	.no_dead_strip	_bdx_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_set_coalesce
_bdx_set_coalesce:                      ; @bdx_set_coalesce
	.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	x22, x1
	bl	_netdev_priv
	ldr	w9, [x22]
Lloh0:
	adrp	x8, _INT_COAL_MULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_COAL_MULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w21, w9, w8
	cmp	w21, #8, lsl #12                ; =32768
	b.ge	LBB0_5
; %bb.1:
	ldr	w9, [x22, #4]
	sdiv	w20, w9, w8
	cmp	w20, #8, lsl #12                ; =32768
	b.ge	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PCK_TH_MULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCK_TH_MULT@GOTPAGEOFF]
	ldrsw	x9, [x22, #8]
Lloh5:
	ldrsw	x8, [x8]
	add	x9, x8, x9, lsl #2
	sub	x9, x9, #1
	udiv	x23, x9, x8
	cmp	w23, #15
	b.gt	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, _BDX_TXF_DESC_SZ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BDX_TXF_DESC_SZ@GOTPAGEOFF]
	ldr	w10, [x22, #12]
Lloh8:
	ldr	w9, [x9]
	madd	w9, w9, w10, w8
	sub	w9, w9, #1
	sdiv	w22, w9, w8
	cmp	w22, #16
	b.ge	LBB0_5
; %bb.4:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_GET_INT_COAL_RC
	mov	x24, x0
	ldr	x0, [x19, #8]
	bl	_GET_RXF_TH
	mov	x2, x0
	mov	x0, x21
	mov	x1, x24
	mov	x3, x23
	bl	_INT_REG_VAL
	mov	x21, x0
	ldr	x0, [x19]
	bl	_GET_INT_COAL_RC
	mov	x1, x0
	mov	x0, x20
	mov	w2, #0
	mov	x3, x22
	bl	_INT_REG_VAL
	mov	x20, x0
	stp	x0, x21, [x19]
Lloh9:
	adrp	x8, _regRDINTCM0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _regRDINTCM0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_WRITE_REG
Lloh12:
	adrp	x8, _regTDINTCM0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _regTDINTCM0@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_WRITE_REG
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_COAL_MULT,4,2              ; @INT_COAL_MULT
	.comm	_PCK_TH_MULT,4,2                ; @PCK_TH_MULT
	.comm	_BDX_TXF_DESC_SZ,4,2            ; @BDX_TXF_DESC_SZ
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_regRDINTCM0,4,2                ; @regRDINTCM0
	.comm	_regTDINTCM0,4,2                ; @regTDINTCM0
	.no_dead_strip	_bdx_set_coalesce
.subsections_via_symbols
