	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_init_hw_desc_queue
_hix5hd2_init_hw_desc_queue:            ## @hix5hd2_init_hw_desc_queue
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %r14
	movq	_RX_DESC_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rdi)
	movq	%rax, 24(%rdi)
	movq	_TX_DESC_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	movq	%rax, 8(%rdi)
	movq	_QUEUE_NUMS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rcx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%r13), %ebx
	shll	$2, %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rcx
	movl	%ebx, 4(%rcx,%r13)
	movq	%rax, 16(%rcx,%r13)
	movl	-44(%rbp), %eax
	movl	%eax, 8(%rcx,%r13)
	incq	%r15
	movq	_QUEUE_NUMS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r13
	cmpq	%rax, %r15
	jl	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_6:
	movq	%r12, %rdi
	callq	_hix5hd2_destroy_hw_desc_queue
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_DESC_NUM,8,3                ## @RX_DESC_NUM
	.comm	_TX_DESC_NUM,8,3                ## @TX_DESC_NUM
	.comm	_QUEUE_NUMS,4,2                 ## @QUEUE_NUMS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hix5hd2_init_hw_desc_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_init_hw_desc_queue
_hix5hd2_init_hw_desc_queue:            ; @hix5hd2_init_hw_desc_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	ldr	x20, [x0, #40]
Lloh0:
	adrp	x8, _RX_DESC_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_DESC_NUM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #24]
Lloh3:
	adrp	x8, _TX_DESC_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_DESC_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x0, #8]
Lloh6:
	adrp	x22, _QUEUE_NUMS@GOTPAGE
Lloh7:
	ldr	x22, [x22, _QUEUE_NUMS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x23, #0
	mov	x24, #0
	ldr	x8, [x0]
Lloh8:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x8, x23]
	lsl	w21, w8, #2
	ldr	w3, [x25]
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x21
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x9, x8, x23
	str	w21, [x9, #4]
	str	x0, [x9, #16]
	ldr	w10, [sp, #12]
	str	w10, [x9, #8]
	add	x24, x24, #1
	ldrsw	x9, [x22]
	add	x23, x23, #24
	cmp	x24, x9
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_hix5hd2_destroy_hw_desc_queue
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_DESC_NUM,8,3                ; @RX_DESC_NUM
	.comm	_TX_DESC_NUM,8,3                ; @TX_DESC_NUM
	.comm	_QUEUE_NUMS,4,2                 ; @QUEUE_NUMS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hix5hd2_init_hw_desc_queue
.subsections_via_symbols
