	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ax88179_tx_fixup
_ax88179_tx_fixup:                      ## @ax88179_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
	movq	%rsi, %r13
	movl	(%rdi), %ebx
	movq	%rsi, %rdi
	callq	_skb_shinfo
	movl	(%rax), %ecx
	movl	(%r13), %r15d
	leal	8(%r15), %eax
	cltd
	idivl	%ebx
	movl	%ecx, %r14d
	orl	$-2147450880, %r14d             ## imm = 0x80008000
	testl	%edx, %edx
	cmovnel	%ecx, %r14d
	movq	%r13, %rdi
	callq	_skb_headroom
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_skb_header_cloned
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$7, %r12d
	jg	LBB0_4
LBB0_2:
	xorl	%esi, %esi
	cmpl	$8, %r12d
	setl	%sil
	shll	$3, %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_pskb_expand_head
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_dev_kfree_skb_any
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_4:
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_skb_push
	movq	%rax, %rbx
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_put_unaligned_le32
	addq	$4, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_put_unaligned_le32
LBB0_5:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_ax88179_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ax88179_tx_fixup
_ax88179_tx_fixup:                      ; @ax88179_tx_fixup
	.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, x1
	ldr	w21, [x0]
	mov	x0, x1
	bl	_skb_shinfo
	ldr	w8, [x0]
	ldr	w20, [x19]
	add	w9, w20, #8
	sdiv	w10, w9, w21
	msub	w9, w10, w21, w9
	orr	w10, w8, #0x80008000
	cmp	w9, #0
	csel	w21, w10, w8, eq
	mov	x0, x19
	bl	_skb_headroom
	mov	x22, x0
	mov	x0, x19
	bl	_skb_header_cloned
	cbnz	x0, LBB0_2
; %bb.1:
	cmp	w22, #7
	b.gt	LBB0_4
LBB0_2:
	cmp	w22, #8
	cset	w8, lt
	lsl	w1, w8, #3
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_pskb_expand_head
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #8
	bl	_skb_push
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_put_unaligned_le32
	add	x1, x22, #4
	mov	x0, x21
	bl	_put_unaligned_le32
LBB0_5:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_ax88179_tx_fixup
.subsections_via_symbols
