	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_eq_pages
_alloc_eq_pages:                        ## @alloc_eq_pages
	.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	%rdi, %r12
	movq	40(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movslq	(%rdi), %rsi
	shlq	$2, %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r13, %rdi
	callq	_devm_kzalloc
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%r12), %rsi
	shlq	$2, %rsi
	movl	(%r15), %edx
	movq	%r13, %rdi
	callq	_devm_kzalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	cmpl	$0, (%r12)
	jle	LBB0_12
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %esi
	movq	16(%r12), %rdx
	addq	%r14, %rdx
	movl	(%r15), %ecx
	movq	%r13, %rdi
	callq	_dma_alloc_coherent
	movq	24(%r12), %rsi
	movl	%eax, (%rsi,%rbx,4)
	testl	%eax, %eax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_EQ_HI_PHYS_ADDR_REG
	movl	%eax, %r13d
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_upper_32_bits
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_hinic_hwif_write_reg
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_EQ_LO_PHYS_ADDR_REG
	movl	%eax, %r13d
	movq	16(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_lower_32_bits
	movq	%r15, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	%r13d, %esi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_hinic_hwif_write_reg
	incq	%rbx
	movslq	(%r12), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_12:
	movl	36(%r12), %edi
	movq	_WRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_HINIC_EQ_ELEM_DESC_SET
	movq	8(%r12), %rcx
	movq	_HINIC_AEQ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_aeq_elements_init
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_16
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_10
LBB0_14:
	movq	_HINIC_CEQ@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.15:
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ceq_elements_init
	jmp	LBB0_16
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.7:
	incq	%rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	32(%r12), %eax
	movl	-8(%rsi,%rbx,4), %edx
	movq	16(%r12), %rcx
	movl	-8(%rcx,%rbx,4), %ecx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dma_free_coherent
	movq	24(%r12), %rsi
	decq	%rbx
	cmpq	$1, %rbx
	jg	LBB0_8
LBB0_9:
	movq	%r13, %rdi
	callq	_devm_kfree
LBB0_10:
	negl	%r15d
	movq	16(%r12), %rsi
	movq	%r13, %rdi
	callq	_devm_kfree
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WRAPPED,4,2                    ## @WRAPPED
	.comm	_HINIC_AEQ,8,3                  ## @HINIC_AEQ
	.comm	_HINIC_CEQ,8,3                  ## @HINIC_CEQ
	.no_dead_strip	_alloc_eq_pages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_eq_pages
_alloc_eq_pages:                        ; @alloc_eq_pages
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldr	x20, [x21]
	ldrsw	x8, [x0]
	lsl	x1, x8, #2
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_devm_kzalloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_8
; %bb.1:
	ldrsw	x8, [x19]
	lsl	x1, x8, #2
	ldr	w2, [x24]
	mov	x0, x20
	bl	_devm_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x25, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #32]
	ldr	x8, [x19, #16]
	add	x2, x8, x25
	ldr	w3, [x24]
	mov	x0, x20
	bl	_dma_alloc_coherent
	ldr	x1, [x19, #24]
	str	w0, [x1, x22, lsl #2]
	cbz	w0, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_EQ_HI_PHYS_ADDR_REG
	mov	x23, x0
	ldr	x8, [x19, #16]
	lsl	x26, x22, #2
	ldr	w0, [x8, x26]
	bl	_upper_32_bits
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_hinic_hwif_write_reg
	mov	x0, x19
	mov	x1, x22
	bl	_EQ_LO_PHYS_ADDR_REG
	mov	x23, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x26]
	bl	_lower_32_bits
	mov	x2, x0
	mov	x0, x21
	mov	x1, x23
	bl	_hinic_hwif_write_reg
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x25, x25, #4
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_6:
	ldr	w0, [x19, #36]
Lloh2:
	adrp	x8, _WRAPPED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WRAPPED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_HINIC_EQ_ELEM_DESC_SET
	mov	x1, x0
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _HINIC_AEQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HINIC_AEQ@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_aeq_elements_init
	b	LBB0_12
LBB0_8:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_17
LBB0_10:
Lloh14:
	adrp	x9, _HINIC_CEQ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HINIC_CEQ@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_ceq_elements_init
LBB0_12:
	mov	w21, #0
	b	LBB0_18
LBB0_13:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
	cbz	w22, LBB0_16
; %bb.14:
	sub	x22, x22, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #32]
	lsl	x9, x22, #2
	ldr	w2, [x1, x9]
	ldr	x10, [x19, #16]
	ldr	w3, [x10, x9]
	mov	x0, x20
	mov	x1, x8
	bl	_dma_free_coherent
	ldr	x1, [x19, #24]
	add	x8, x22, #1
	sub	x22, x22, #1
	cmp	x8, #1
	b.gt	LBB0_15
LBB0_16:
	mov	x0, x20
	bl	_devm_kfree
LBB0_17:
	neg	w21, w21
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_devm_kfree
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WRAPPED,4,2                    ; @WRAPPED
	.comm	_HINIC_AEQ,8,3                  ; @HINIC_AEQ
	.comm	_HINIC_CEQ,8,3                  ; @HINIC_CEQ
	.no_dead_strip	_alloc_eq_pages
.subsections_via_symbols
