	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hifn_setup_dma
_hifn_setup_dma:                        ## @hifn_setup_dma
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	je	LBB0_10
## %bb.1:
	movq	%rcx, %r14
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_sg_page
	movq	%rax, %r15
	movl	(%r14), %r12d
	movl	4(%r14), %edi
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %r13d
	xorl	%r8d, %r8d
	cmpl	%eax, %ebx
	sete	%r8b
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_hifn_setup_src_desc
	addq	$8, %r14
	subl	%r13d, %ebx
	jne	LBB0_2
## %bb.3:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_10
## %bb.4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %r12
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_sg_page
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%r13, %rdi
	callq	_sg_page
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r15d
	leaq	4(%r13), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_min
	movl	%eax, %ebx
	xorl	%r8d, %r8d
	cmpl	%eax, %r14d
	sete	%r8b
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_hifn_setup_dst_desc
	addq	$8, %r13
	addq	$8, %r12
	subl	%ebx, %r14d
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%r12)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ASYNC_FLAGS_MISALIGNED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	4(%r12), %r15
	movq	%r12, %rdi
	callq	_sg_page
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_sg_page
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rax
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_10:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_hifn_setup_cmd_desc
	movq	%rbx, %rdi
	callq	_hifn_setup_res_desc
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASYNC_FLAGS_MISALIGNED,4,2     ## @ASYNC_FLAGS_MISALIGNED
	.no_dead_strip	_hifn_setup_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hifn_setup_dma
_hifn_setup_dma:                        ; @hifn_setup_dma
	.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
	stp	x1, x6, [sp]                    ; 16-byte Folded Spill
	mov	x19, x5
	mov	x22, x2
	mov	x21, x0
	cbz	w5, LBB0_10
; %bb.1:
	mov	x24, x4
	mov	x25, x3
	mov	x26, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	_sg_page
	mov	x27, x0
	ldp	w28, w0, [x25], #8
	mov	x1, x26
	bl	_min
	mov	x3, x0
	subs	w26, w26, w0
	cset	w4, eq
	mov	x0, x21
	mov	x1, x27
	mov	x2, x28
	bl	_hifn_setup_src_desc
	cbnz	w26, LBB0_2
; %bb.3:
	cbz	w19, LBB0_10
; %bb.4:
	ldr	x23, [x22, #8]
Lloh0:
	adrp	x20, _ASYNC_FLAGS_MISALIGNED@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ASYNC_FLAGS_MISALIGNED@GOTPAGEOFF]
	mov	x26, x19
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x24
	bl	_sg_page
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x24
	bl	_sg_page
	mov	x27, x0
	mov	x25, x24
	ldr	w28, [x25], #4
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [x25]
	mov	x1, x26
	bl	_min
	mov	x3, x0
	subs	w26, w26, w0
	cset	w4, eq
	mov	x0, x21
	mov	x1, x27
	mov	x2, x28
	bl	_hifn_setup_dst_desc
	add	x24, x24, #8
	add	x23, x23, #8
	cbz	w26, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x23
	ldr	w8, [x25, #4]!
	cbz	w8, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_sg_page
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x23
	bl	_sg_page
	mov	x27, x0
	mov	w28, #0
	b	LBB0_6
LBB0_10:
	mov	x0, x21
	ldp	x1, x3, [sp]                    ; 16-byte Folded Reload
	mov	x2, x22
	mov	x4, x19
	bl	_hifn_setup_cmd_desc
	mov	x0, x21
	bl	_hifn_setup_res_desc
	mov	w0, #0
	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	_ASYNC_FLAGS_MISALIGNED,4,2     ; @ASYNC_FLAGS_MISALIGNED
	.no_dead_strip	_hifn_setup_dma
.subsections_via_symbols
