	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_sgl
_make_sgl:                              ## @make_sgl
	.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	%r8, %r14
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movl	%ebx, %edx
	callq	_pci_map_single
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movl	%r13d, %edi
	callq	_cpu_to_be64
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movl	$1, %r13d
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_skb_shinfo
	movl	(%rax), %eax
	testq	%rax, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.4:
	leaq	(,%rax,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_skb_shinfo
	movq	8(%rax), %r14
	addq	%r12, %r14
	movq	%r14, %rdi
	callq	_skb_frag_size
	movq	_PCI_DMA_TODEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_skb_frag_size
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	(%r15), %rcx
	movl	%r13d, %ebx
	movq	%rax, (%rcx,%rbx,8)
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_be64
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	xorl	%eax, %eax
	xorl	$1, %r13d
	sete	%al
	shlq	$4, %rax
	addq	%rax, %r15
	addq	$4, %r12
	cmpq	%r12, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_6:
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.7:
	movq	(%r15), %rax
	movl	%r13d, %ecx
	movq	$0, (%rax,%rcx,8)
LBB0_8:
	cmpl	$1, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	sbbl	$-1, %eax
	leal	(%rax,%rax,2), %eax
	shrl	%eax
	addl	%eax, %r13d
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ## @PCI_DMA_TODEVICE
	.no_dead_strip	_make_sgl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_sgl
_make_sgl:                              ; @make_sgl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x4
	mov	x19, x3
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _PCI_DMA_TODEVICE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PCI_DMA_TODEVICE@GOTPAGEOFF]
	cbz	w3, LBB0_2
; %bb.1:
	ldr	w3, [x25]
	mov	x0, x21
	mov	x1, x2
	mov	x2, x19
	bl	_pci_map_single
	mov	x23, x0
	mov	x0, x19
	bl	_cpu_to_be32
	ldr	x8, [x20]
	str	x0, [x8]
	mov	x0, x23
	bl	_cpu_to_be64
	ldr	x8, [x20, #8]
	str	x0, [x8]
	mov	w26, #1
	b	LBB0_3
LBB0_2:
	mov	w26, #0
LBB0_3:
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
	mov	x0, x22
	bl	_skb_shinfo
	ldr	w27, [x0]
	cbz	w27, LBB0_6
; %bb.4:
	mov	x28, #0
	lsl	x19, x27, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x23, x8, x28
	mov	x0, x23
	bl	_skb_frag_size
	mov	x3, x0
	ldr	w4, [x25]
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	bl	_skb_frag_dma_map
	mov	x24, x0
	mov	x0, x23
	bl	_skb_frag_size
	bl	_cpu_to_be32
	ldr	x8, [x20]
	mov	w9, w26
	lsl	x23, x9, #3
	str	x0, [x8, x23]
	mov	x0, x24
	bl	_cpu_to_be64
	ldr	x8, [x20, #8]
	str	x0, [x8, x23]
	eor	w26, w26, #0x1
	cmp	w26, #0
	cset	w8, eq
	add	x20, x20, w8, uxtw #4
	add	x28, x28, #4
	cmp	x19, x28
	b.ne	LBB0_5
LBB0_6:
	cbz	w26, LBB0_8
; %bb.7:
	ldr	x8, [x20]
	str	xzr, [x8, w26, uxtw #3]
LBB0_8:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w8, #0
	cinc	w8, w27, ne
	add	w8, w8, w8, lsl #1
	add	w0, w26, w8, lsr #1
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_TODEVICE,4,2           ; @PCI_DMA_TODEVICE
	.no_dead_strip	_make_sgl
.subsections_via_symbols
