	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kalmia_tx_fixup
_kalmia_tx_fixup:                       ## @kalmia_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, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_skb_cloned
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KALMIA_ALIGN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_2:
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%ebx, %ecx
	callq	_skb_copy_expand
	testq	%rax, %rax
	je	LBB0_3
## %bb.8:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_kfree_skb_any
	movq	%rbx, %r15
	jmp	LBB0_9
LBB0_4:
	movq	%r15, %rdi
	callq	_skb_headroom
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_skb_tailroom
	movq	_KALMIA_ALIGN_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	%edx, %eax
	jl	LBB0_6
## %bb.5:
	cmpl	%esi, %r12d
	jge	LBB0_9
LBB0_6:
	addl	%r12d, %eax
	leal	(%rsi,%rdx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_2
## %bb.7:
	movslq	%esi, %rdi
	addq	8(%r15), %rdi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	callq	_memmove
	movl	%eax, 4(%r15)
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	_skb_set_tail_pointer
LBB0_9:
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_skb_push
	movq	%rax, %rbx
	movslq	(%r14), %rax
	movzbl	12(%rax,%rbx), %r12d
	movzbl	13(%rax,%rbx), %r14d
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_netdev_dbg
	movw	$17495, (%rbx)                  ## imm = 0x4457
	movl	(%r15), %r13d
	movq	_KALMIA_HEADER_LENGTH@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	leaq	2(%rbx), %rsi
	movl	%r13d, %edi
	callq	_put_unaligned_le16
	movb	%r12b, 4(%rbx)
	movb	%r14b, 5(%rbx)
	movl	(%r15), %eax
	movq	_KALMIA_ALIGN_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	xorl	%ecx, %ecx
	cltd
	idivl	%r12d
	testl	%edx, %edx
	jle	LBB0_11
## %bb.10:
	subl	%edx, %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_skb_put_zero
	movl	%r12d, %ecx
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_netdev_dbg
	jmp	LBB0_12
LBB0_3:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KALMIA_ALIGN_SIZE,4,2          ## @KALMIA_ALIGN_SIZE
	.comm	_KALMIA_HEADER_LENGTH,4,2       ## @KALMIA_HEADER_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending etherType: %02x%02x"

L_.str.1:                               ## @.str.1
	.asciz	"Sending package with length %i and padding %i. Header: %6phC."

	.no_dead_strip	_kalmia_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kalmia_tx_fixup
_kalmia_tx_fixup:                       ; @kalmia_tx_fixup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_skb_cloned
Lloh0:
	adrp	x26, _KALMIA_HEADER_LENGTH@GOTPAGE
Lloh1:
	ldr	x26, [x26, _KALMIA_HEADER_LENGTH@GOTPAGEOFF]
Lloh2:
	adrp	x25, _KALMIA_ALIGN_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _KALMIA_ALIGN_SIZE@GOTPAGEOFF]
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w1, [x26]
	ldr	w2, [x25]
LBB0_2:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x3, x21
	bl	_skb_copy_expand
	cbz	x0, LBB0_11
; %bb.3:
	mov	x21, x0
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, x21
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_skb_headroom
	mov	x22, x0
	mov	x0, x19
	bl	_skb_tailroom
	ldr	w2, [x25]
	ldr	w1, [x26]
	cmp	w0, w2
	ccmp	w22, w1, #8, ge
	b.ge	LBB0_7
; %bb.5:
	add	w8, w0, w22
	add	w9, w1, w2
	cmp	w8, w9
	b.le	LBB0_2
; %bb.6:
	sxtw	x8, w1
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	ldp	w2, w1, [x19]
	bl	_memmove
	str	w0, [x19, #4]
	ldr	w1, [x19]
	mov	x0, x19
	bl	_skb_set_tail_pointer
LBB0_7:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_skb_push
	mov	x21, x0
	ldrsw	x8, [x26]
	add	x8, x8, x0
	ldrb	w23, [x8, #12]
	ldrb	w24, [x8, #13]
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x24
	bl	_netdev_dbg
	mov	w8, #17495
	strh	w8, [x21]
	ldr	w8, [x19]
	ldr	w9, [x26]
	sub	w22, w8, w9
	add	x1, x21, #2
	mov	x0, x22
	bl	_put_unaligned_le16
	strb	w23, [x21, #4]
	strb	w24, [x21, #5]
	ldr	w9, [x19]
	ldr	w8, [x25]
	sdiv	w10, w9, w8
	msub	w9, w10, w8, w9
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.8:
	sub	w23, w8, w9
	mov	x0, x19
	mov	x1, x23
	bl	_skb_put_zero
	b	LBB0_10
LBB0_9:
	mov	w23, #0
LBB0_10:
	ldr	w0, [x20]
	str	x21, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x3, x23
	bl	_netdev_dbg
	b	LBB0_12
LBB0_11:
	mov	x19, #0
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KALMIA_ALIGN_SIZE,4,2          ; @KALMIA_ALIGN_SIZE
	.comm	_KALMIA_HEADER_LENGTH,4,2       ; @KALMIA_HEADER_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending etherType: %02x%02x"

l_.str.1:                               ; @.str.1
	.asciz	"Sending package with length %i and padding %i. Header: %6phC."

	.no_dead_strip	_kalmia_tx_fixup
.subsections_via_symbols
