	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_aeqs_init                ## -- Begin function hinic_aeqs_init
	.p2align	4, 0x90
_hinic_aeqs_init:                       ## @hinic_aeqs_init
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rsi), %r15
	movq	_HINIC_EQS_WQ_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_create_singlethread_workqueue
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r13, 16(%r14)
	movl	%ebx, (%r14)
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%rbx,4), %rdi
	addq	8(%r14), %rdi
	movq	_HINIC_AEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rsi
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_init_eq
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%r12, %rbx
	jne	LBB0_4
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_5:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_dev_err
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.6:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%r12, %rdi
	callq	_remove_eq
	addq	$4, %r12
	decq	%rbx
	jne	LBB0_7
LBB0_8:
	movl	4(%r14), %edi
	callq	_destroy_workqueue
LBB0_11:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HINIC_EQS_WQ_NAME,4,2          ## @HINIC_EQS_WQ_NAME
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HINIC_AEQ,4,2                  ## @HINIC_AEQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init aeq %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hinic_aeqs_init                ; -- Begin function hinic_aeqs_init
	.p2align	2
_hinic_aeqs_init:                       ; @hinic_aeqs_init
	.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
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x19, x0
	ldr	x23, [x1]
Lloh0:
	adrp	x8, _HINIC_EQS_WQ_NAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HINIC_EQS_WQ_NAME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_create_singlethread_workqueue
	str	w0, [x19, #4]
	cbz	w0, LBB0_6
; %bb.1:
	str	x26, [x19, #16]
	str	w25, [x19]
	cmp	w25, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x20, #0
	mov	w27, w25
Lloh3:
	adrp	x28, _HINIC_AEQ@GOTPAGE
Lloh4:
	ldr	x28, [x28, _HINIC_AEQ@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	lsl	x9, x20, #2
	add	x0, x8, x9
	ldr	w2, [x28]
	ldr	w6, [x21, x9]
	mov	x1, x26
	mov	x3, x20
	mov	x4, x24
	mov	x5, x22
	bl	_init_eq
	cbnz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, x27
	b.ne	LBB0_3
LBB0_5:
	mov	w25, #0
	b	LBB0_11
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_11
LBB0_7:
	mov	x25, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x20
	bl	_dev_err
	cbz	w20, LBB0_10
; %bb.8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x21
	bl	_remove_eq
	add	x21, x21, #4
	subs	x20, x20, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	w0, [x19, #4]
	bl	_destroy_workqueue
LBB0_11:
	mov	x0, x25
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HINIC_EQS_WQ_NAME,4,2          ; @HINIC_EQS_WQ_NAME
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HINIC_AEQ,4,2                  ; @HINIC_AEQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init aeq %d\n"

.subsections_via_symbols
