	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meth_tx_2page_prepare
_meth_tx_2page_prepare:                 ## @meth_tx_2page_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	movq	8(%rsi), %rdi
	leaq	7(%rdi), %r14
	andq	$-8, %r14
	callq	_PAGE_ALIGN
	movq	%r14, %r15
	subq	8(%r12), %r15
	movl	(%r12), %r13d
	movq	_METH_TX_CMD_INT_EN@GOTPCREL(%rip), %rcx
	movq	_TX_CATBUF1@GOTPCREL(%rip), %rdx
	movq	_TX_CATBUF2@GOTPCREL(%rip), %rsi
	leal	-1(%r13), %edi
	orl	(%rcx), %edi
	orl	(%rdx), %edi
	orl	(%rsi), %edi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, 16(%rbx,%rax,8)
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rcx,%rdx,8), %rbx
	addq	$16, %rbx
	movq	%r15, %rax
	shlq	$32, %rax
	movabsq	$515396075520, %rsi             ## imm = 0x7800000000
	subq	%rax, %rsi
	sarq	$32, %rsi
	addq	8(%rcx,%rdx,8), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_skb_copy_from_linear_data
	movl	%r15d, %eax
	shll	$16, %eax
	movl	$8388608, %ecx                  ## imm = 0x800000
	subl	%eax, %ecx
	orl	%ecx, (%rbx)
LBB0_2:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	subl	%r14d, %ebx
	subl	%r15d, %r13d
	subl	%ebx, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	8(%r12), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_dma_map_single
	sarl	$3, %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	(%r14,%r15,8), %rcx
	movl	%eax, (%rcx)
	decl	%ebx
	movl	%ebx, 4(%rcx)
	movq	8(%r12), %rdi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_dma_map_single
	sarl	$3, %eax
	movq	(%r14,%r15,8), %rcx
	movl	%eax, 8(%rcx)
	decl	%r13d
	movl	%r13d, 12(%rcx)
	addq	$40, %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	_TX_CATBUF2,4,2                 ## @TX_CATBUF2
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.no_dead_strip	_meth_tx_2page_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_2page_prepare
_meth_tx_2page_prepare:                 ; @meth_tx_2page_prepare
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x19, x0
	ldr	x24, [x0, #16]
	ldr	x25, [x0]
	ldr	x0, [x1, #8]
	add	x8, x0, #7
	and	x21, x8, #0xfffffffffffffff8
	bl	_PAGE_ALIGN
	mov	x20, x0
	ldr	x8, [x22, #8]
	ldr	w26, [x22]
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]
Lloh6:
	adrp	x11, _TX_CATBUF2@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TX_CATBUF2@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	sub	w12, w26, #1
	orr	w9, w12, w9
	orr	w9, w9, w10
	orr	w9, w9, w11
	mov	w10, #24
	madd	x27, x25, x10, x24
	str	w9, [x27, #16]!
	sub	x23, x21, x8
	cbz	w23, LBB0_2
; %bb.1:
	mov	w8, #24
	madd	x8, x25, x8, x24
	ldr	x8, [x8, #8]
	mov	x9, #515396075520
	sub	x9, x9, x23, lsl #32
	add	x1, x8, x9, asr #32
	mov	x0, x22
	mov	x2, x23
	bl	_skb_copy_from_linear_data
	mov	w8, #8388608
	sub	w8, w8, w23, lsl #16
	ldr	w9, [x27]
	orr	w8, w9, w8
	str	w8, [x27]
LBB0_2:
	sub	w22, w20, w21
	add	w8, w23, w22
	sub	w23, w26, w8
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x26, _DMA_TO_DEVICE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x26]
	mov	x1, x21
	mov	x2, x22
	bl	_dma_map_single
	mov	w8, #24
	mul	x21, x25, x8
	ldr	x8, [x24, x21]
	asr	w9, w0, #3
	sub	w10, w22, #1
	stp	w9, w10, [x8]
	ldr	x0, [x19, #8]
	ldr	w3, [x26]
	mov	x1, x20
	mov	x2, x23
	bl	_dma_map_single
	asr	w8, w0, #3
	ldr	x9, [x24, x21]
	sub	w10, w23, #1
	stp	w8, w10, [x9, #8]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.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	_TX_CATBUF2,4,2                 ; @TX_CATBUF2
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.no_dead_strip	_meth_tx_2page_prepare
.subsections_via_symbols
