	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_dma_sg
_build_dma_sg:                          ## @build_dma_sg
	.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, %r15
	movq	%rdi, %r13
	callq	_skb_shinfo
	movl	(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	leal	2(%rbx), %r14d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	incl	%ebx
	movl	%ebx, (%r15)
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_sg_init_table
	movq	8(%r15), %rbx
	movl	(%r13), %r12d
	movq	%r13, %rdi
	callq	_skb_headlen
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%rax, %rdx
	callq	_sg_set_buf
	movq	%r13, %rdi
	callq	_skb_headlen
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%r12d, %r12d
	addq	%rax, %r12
	movq	8(%r15), %rax
	incq	%r14
	addq	%r13, %rax
	addq	$4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_frag_page
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_skb_frag_off
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_sg_set_page
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jl	LBB0_6
LBB0_7:
	movl	%r12d, 4(%r15)
	movl	$1, %eax
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_build_dma_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_dma_sg
_build_dma_sg:                          ; @build_dma_sg
	.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	x19, x1
	mov	x20, x0
	bl	_skb_shinfo
	ldr	w22, [x0]
	cbz	w22, LBB0_6
; %bb.1:
	add	w21, w22, #2
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.2:
	add	w8, w22, #1
	str	w8, [x19]
	mov	x1, x21
	bl	_sg_init_table
	ldr	x21, [x19, #8]
	ldr	w22, [x20]
	mov	x0, x20
	bl	_skb_headlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_sg_set_buf
	mov	x0, x20
	bl	_skb_headlen
	mov	x21, x0
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x26, #0
	mov	x27, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x22, x8, x26
	mov	x0, x22
	bl	_skb_frag_size
	add	x21, x0, w21, uxtw
	ldr	x8, [x19, #8]
	add	x27, x27, #1
	add	x8, x8, x26
	add	x23, x8, #4
	mov	x0, x22
	bl	_skb_frag_page
	mov	x24, x0
	mov	x0, x22
	bl	_skb_frag_size
	mov	x25, x0
	mov	x0, x22
	bl	_skb_frag_off
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_sg_set_page
	mov	x0, x20
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x26, x26, #4
	cmp	x27, x8
	b.lt	LBB0_4
LBB0_5:
	str	w21, [x19, #4]
	mov	w0, #1
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_build_dma_sg
.subsections_via_symbols
