	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meth_tx_1page_prepare
_meth_tx_1page_prepare:                 ## @meth_tx_1page_prepare
	.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	(%rdi), %rax
	movq	8(%rdi), %r12
	movq	8(%rsi), %rcx
	leaq	7(%rcx), %r14
	movl	(%rsi), %r15d
	movq	_METH_TX_CMD_INT_EN@GOTPCREL(%rip), %rdx
	leal	-1(%r15), %edi
	orl	(%rdx), %edi
	andq	$-8, %r14
	movq	%r14, %rbx
	movq	_TX_CATBUF1@GOTPCREL(%rip), %rdx
	orl	(%rdx), %edi
	subq	%rcx, %rbx
	leaq	(%rax,%rax,2), %r13
	movl	%edi, 16(%r12,%r13,8)
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leaq	(%r12,%r13,8), %rax
	addq	$16, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	shlq	$32, %rcx
	movabsq	$515396075520, %rax             ## imm = 0x7800000000
	subq	%rcx, %rax
	sarq	$32, %rax
	addq	8(%r12,%r13,8), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_skb_copy_from_linear_data
	movl	%ebx, %eax
	shll	$16, %eax
	movl	$8388608, %ecx                  ## imm = 0x800000
	subl	%eax, %ecx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orl	%ecx, (%rax)
LBB0_2:
	subl	%ebx, %r15d
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_dma_map_single
	sarl	$3, %eax
	movq	(%r12,%r13,8), %rcx
	movl	%eax, (%rcx)
	decl	%r15d
	movl	%r15d, 4(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_METH_TX_CMD_INT_EN,4,2         ## @METH_TX_CMD_INT_EN
	.comm	_TX_CATBUF1,4,2                 ## @TX_CATBUF1
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_meth_tx_1page_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meth_tx_1page_prepare
_meth_tx_1page_prepare:                 ; @meth_tx_1page_prepare
	.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
	ldp	x22, x21, [x0]
	ldr	x8, [x1, #8]
	add	x9, x8, #7
	and	x19, x9, #0xfffffffffffffff8
	ldr	w23, [x1]
Lloh0:
	adrp	x9, _METH_TX_CMD_INT_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _METH_TX_CMD_INT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TX_CATBUF1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TX_CATBUF1@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	sub	w11, w23, #1
	orr	w9, w11, w9
	orr	w9, w9, w10
	mov	w10, #24
	madd	x24, x22, x10, x21
	str	w9, [x24, #16]!
	sub	x20, x19, x8
	cbz	w20, LBB0_2
; %bb.1:
	mov	w8, #24
	madd	x8, x22, x8, x21
	ldr	x8, [x8, #8]
	mov	x9, #515396075520
	sub	x9, x9, x20, lsl #32
	add	x8, x8, x9, asr #32
	mov	x0, x1
	mov	x1, x8
	mov	x2, x20
	bl	_skb_copy_from_linear_data
	mov	w8, #8388608
	sub	w8, w8, w20, lsl #16
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x24]
LBB0_2:
	sub	w20, w23, w20
Lloh6:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x19
	mov	x2, x20
	bl	_dma_map_single
	asr	w8, w0, #3
	mov	w9, #24
	mul	x9, x22, x9
	ldr	x9, [x21, x9]
	sub	w10, w20, #1
	stp	w8, w10, [x9]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_METH_TX_CMD_INT_EN,4,2         ; @METH_TX_CMD_INT_EN
	.comm	_TX_CATBUF1,4,2                 ; @TX_CATBUF1
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_meth_tx_1page_prepare
.subsections_via_symbols
