	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_fill_sg_desc
_hix5hd2_fill_sg_desc:                  ## @hix5hd2_fill_sg_desc
	.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	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movslq	%edx, %r14
	movl	(%rsi), %edi
	callq	_cpu_to_le32
	shlq	$5, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, 24(%rbx,%r14)
	movl	(%r13), %ebx
	movl	4(%r15), %r12d
	movq	%r15, %rdi
	callq	_skb_headlen
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_dma_map_single
	movl	%eax, %ebx
	movl	(%r13), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, 16(%rbx,%r14)
	movq	%r15, %rdi
	callq	_skb_headlen
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, 8(%rbx,%r14)
	movq	%r15, %rdi
	callq	_skb_shinfo
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.3:
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addq	%r14, %rbx
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_skb_frag_size
	movl	%eax, %r12d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	callq	_skb_frag_dma_map
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_1
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx,%r13,4)
	movl	%r12d, %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r13,4)
	incq	%r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_skb_shinfo
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hix5hd2_fill_sg_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_fill_sg_desc
_hix5hd2_fill_sg_desc:                  ; @hix5hd2_fill_sg_desc
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x1
	mov	x20, x0
	ldr	x27, [x0, #8]
	sxtw	x28, w2
	ldr	w0, [x1]
	bl	_cpu_to_le32
	add	x24, x27, x28, lsl #5
	str	x0, [x24, #24]
	ldr	w21, [x20]
	ldr	w22, [x19, #4]
	mov	x0, x19
	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, x21
	mov	x1, x22
	bl	_dma_map_single
	mov	x21, x0
	ldr	w0, [x20]
	mov	x1, x21
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	mov	x0, x21
	bl	_cpu_to_le32
	str	x0, [x24, #16]
	mov	x0, x19
	bl	_skb_headlen
	bl	_cpu_to_le32
	str	x0, [x24, #8]
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x24, #0
	mov	x25, #0
	mov	x26, #0
	add	x27, x27, x28, lsl #5
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x22, x8, x25
	mov	x0, x22
	bl	_skb_frag_size
	mov	x21, x0
	ldr	w0, [x20]
	ldr	w4, [x23]
	mov	x1, x22
	mov	w2, #0
	mov	x3, x21
	bl	_skb_frag_dma_map
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x22
	bl	_dma_mapping_error
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_cpu_to_le32
	ldr	x8, [x27]
	add	x8, x8, x24
	str	x0, [x8, #8]
	mov	x0, x21
	bl	_cpu_to_le32
	ldr	x8, [x27]
	str	x0, [x8, x24]
	add	x26, x26, #1
	mov	x0, x19
	bl	_skb_shinfo
	ldrsw	x8, [x0]
	add	x25, x25, #4
	add	x24, x24, #16
	cmp	x26, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hix5hd2_fill_sg_desc
.subsections_via_symbols
