	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx_map_skb
_tx_map_skb:                            ## @tx_map_skb
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movl	(%rsi), %r12d
	movq	%rsi, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, %r12d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
LBB0_9:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	movq	%r14, %rdi
	callq	_skb_headlen
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_hinic_set_sge
	movq	%r14, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r12, %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	(%r13), %r8d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12), %r14
	addq	$4, %r14
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_hinic_set_sge
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, %r12
	cmpq	%rax, %r15
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	movq	%rbx, %rdi
	jl	LBB0_4
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	testl	%r15d, %r15d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r13
	je	LBB0_8
## %bb.6:
	leaq	4(%r12), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_hinic_sge_to_dma
	movl	(%rbx), %edx
	movl	(%r13), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_page
	addq	$4, %rbx
	decq	%r15
	jne	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_hinic_sge_to_dma
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_dma_unmap_single
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to map Tx skb data\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to map Tx skb frag\n"

	.no_dead_strip	_tx_map_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx_map_skb
_tx_map_skb:                            ; @tx_map_skb
	.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	x20, x2
	mov	x21, x1
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	ldr	w22, [x1]
	mov	x0, x1
	bl	_skb_headlen
	mov	x2, x0
Lloh0:
	adrp	x25, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	_dma_map_single
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_dma_mapping_error
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_2:
Lloh4:
	adrp	x8, _EFAULT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_3:
	mov	x0, x21
	bl	_skb_headlen
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_hinic_set_sge
	mov	x0, x21
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x27, #0
	mov	x26, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x22, x8, x27
	mov	x0, x22
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x25]
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x23, x0
	mov	x0, x19
	mov	x1, x23
	bl	_dma_mapping_error
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	add	x8, x20, x27
	add	x24, x8, #4
	mov	x0, x22
	bl	_skb_frag_size
	mov	x2, x0
	mov	x0, x24
	mov	x1, x23
	bl	_hinic_set_sge
	mov	x0, x21
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x27, x27, #4
	cmp	x26, x8
	b.lt	LBB0_5
LBB0_7:
	mov	w0, #0
LBB0_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
LBB0_9:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	cbz	w26, LBB0_12
; %bb.10:
	add	x21, x20, #4
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_hinic_sge_to_dma
	mov	x1, x0
	ldr	w2, [x21], #4
	ldr	w3, [x25]
	mov	x0, x19
	bl	_dma_unmap_page
	subs	x26, x26, #1
	b.ne	LBB0_11
LBB0_12:
	mov	x0, x20
	bl	_hinic_sge_to_dma
	mov	x1, x0
	ldr	w2, [x20]
	ldr	w3, [x25]
	mov	x0, x19
	bl	_dma_unmap_single
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to map Tx skb data\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to map Tx skb frag\n"

	.no_dead_strip	_tx_map_skb
.subsections_via_symbols
