	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function map_skb
_map_skb:                               ## @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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %r12d
	movq	%rsi, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_1
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	(%rax), %rcx
	xorl	%r13d, %r13d
	testq	%rcx, %rcx
	jle	LBB0_9
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r14
	leaq	(%rcx,%rcx,2), %rax
	leaq	(%r14,%rax,4), %r12
	addq	$4, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	callq	_dma_map_page
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	testq	%rax, %rax
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	$12, %r14
	addq	$4, %rbx
	cmpq	%r12, %r14
	jb	LBB0_3
	jmp	LBB0_9
LBB0_4:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	8(%r13), %r14
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r12
	jbe	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx), %esi
	addq	$-4, %rbx
	movl	-12(%r14), %edx
	addq	$-12, %r14
	movl	(%r12), %ecx
	movq	%r15, %rdi
	callq	_dma_unmap_page
	cmpq	8(%r13), %r14
	ja	LBB0_5
LBB0_6:
	movl	-4(%rbx), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_headlen
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_map_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function map_skb
_map_skb:                               ; @map_skb
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x1]
	mov	x0, x1
	bl	_skb_headlen
	mov	x2, x0
Lloh0:
	adrp	x23, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_dma_map_single
	mov	x1, x0
	str	w0, [x22]
	mov	x0, x19
	bl	_dma_mapping_error
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	x24, [x0, #8]
	mov	w9, #12
	madd	x25, x8, x9, x24
	add	x22, x22, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w2, w1, [x24, #4]
	ldr	w3, [x24]
	ldr	w4, [x23]
	mov	x0, x19
	bl	_dma_map_page
	mov	x1, x0
	str	w0, [x22]
	mov	x0, x19
	bl	_dma_mapping_error
	cbnz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #12
	add	x22, x22, #4
	cmp	x24, x25
	b.lo	LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x24, #-12]!
	ldr	w1, [x22, #-4]!
	ldr	w3, [x23]
	mov	x0, x19
	bl	_dma_unmap_page
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	cmp	x24, x8
	b.hi	LBB0_8
; %bb.10:
	ldur	w21, [x22, #-4]
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_dma_unmap_single
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_map_skb
.subsections_via_symbols
