	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm9601_tx_fixup
_dm9601_tx_fixup:                       ## @dm9601_tx_fixup
	.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, %r15d
	movq	%rsi, %r12
	movl	(%rsi), %r13d
	movq	_DM_TX_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	incl	%ecx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rcx,%r13), %eax
	testb	$1, %al
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cltd
	idivl	(%rdi)
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	movl	%ebx, %r14d
	negl	%r14d
	movq	%r12, %rdi
	callq	_skb_headroom
	movq	_DM_TX_OVERHEAD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%esi, %eax
	jl	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_skb_tailroom
	cmpl	%r14d, %eax
	jge	LBB0_9
## %bb.6:
	movq	_DM_TX_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_7:
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_skb_copy_expand
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_dev_kfree_skb_any
	movq	%r15, %r12
	testq	%r15, %r15
	je	LBB0_8
LBB0_9:
	subl	%ebx, %r13d
	movq	_DM_TX_OVERHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	___skb_push
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movslq	(%r12), %rdi
	shlq	$2, %rdi
	addq	8(%r12), %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	___skb_put
LBB0_11:
	movq	8(%r12), %rax
	movl	%r13d, (%rax)
	sarl	$8, %r13d
	movl	%r13d, 4(%rax)
	jmp	LBB0_12
LBB0_8:
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_TX_OVERHEAD,4,2             ## @DM_TX_OVERHEAD
	.no_dead_strip	_dm9601_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm9601_tx_fixup
_dm9601_tx_fixup:                       ; @dm9601_tx_fixup
	.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	x21, x2
	mov	x19, x1
	mov	w20, #0
	ldr	w23, [x1]
Lloh0:
	adrp	x22, _DM_TX_OVERHEAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DM_TX_OVERHEAD@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w23, w8
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w9, w8, w20
	tbnz	w9, #0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x0]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	cbz	w9, LBB0_1
; %bb.4:
	mov	x0, x19
	bl	_skb_headroom
	ldr	w1, [x22]
	cmp	w0, w1
	b.lt	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_skb_tailroom
	cmp	w0, w20
	b.ge	LBB0_8
; %bb.6:
	ldr	w1, [x22]
LBB0_7:
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_skb_copy_expand
	mov	x21, x0
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, x21
	cbz	x21, LBB0_11
LBB0_8:
	add	w21, w23, w20
	ldr	w1, [x22]
	mov	x0, x19
	bl	___skb_push
	cbz	w20, LBB0_10
; %bb.9:
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x0, x8, x9, lsl #2
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	mov	x0, x19
	mov	x1, x20
	bl	___skb_put
LBB0_10:
	ldr	x8, [x19, #8]
	asr	w9, w21, #8
	stp	w21, w9, [x8]
LBB0_11:
	mov	x0, x19
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_TX_OVERHEAD,4,2             ; @DM_TX_OVERHEAD
	.no_dead_strip	_dm9601_tx_fixup
.subsections_via_symbols
