	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_txqs
_create_txqs:                           ## @create_txqs
	.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	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_hinic_hwdev_num_qps
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %ebx
	movq	16(%r15), %r14
	movslq	%eax, %rsi
	shlq	$2, %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_devm_kzalloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.5:
	movl	%ebx, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movl	%ebx, %esi
	callq	_hinic_hwdev_get_sq
	leaq	(,%rbx,4), %rdi
	addq	(%r15), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_hinic_init_txq
	testl	%eax, %eax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	%r13, %rbx
	jne	LBB0_6
LBB0_12:
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movl	%eax, %r12d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_netif_err
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.8:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%r13, %rdi
	callq	_hinic_clean_txq
	addq	$4, %r13
	decq	%rbx
	jne	LBB0_9
LBB0_10:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_devm_kfree
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to init Txq\n"

	.no_dead_strip	_create_txqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_txqs
_create_txqs:                           ; @create_txqs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_hinic_hwdev_num_qps
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x22, x0
	ldr	x20, [x19, #16]
	sbfiz	x1, x22, #2, #32
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_devm_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.5:
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x21, #0
	mov	w23, w22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #8]
	mov	x1, x21
	bl	_hinic_hwdev_get_sq
	mov	x1, x0
	ldr	x8, [x19]
	add	x0, x8, x21, lsl #2
	mov	x2, x20
	bl	_hinic_init_txq
	cbnz	w0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x21, x21, #1
	cmp	x21, x23
	b.ne	LBB0_7
LBB0_9:
	mov	w22, #0
	b	LBB0_3
LBB0_10:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	mov	x22, x0
Lloh7:
	adrp	x8, _drv@GOTPAGE
Lloh8:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_netif_err
	cbz	w21, LBB0_14
; %bb.12:
	mov	x23, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x0, x8, x23
	bl	_hinic_clean_txq
	add	x23, x23, #4
	subs	x21, x21, #1
	b.ne	LBB0_13
LBB0_14:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_devm_kfree
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to init Txq\n"

	.no_dead_strip	_create_txqs
.subsections_via_symbols
