	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_alloc_mbx_args     ## -- Begin function qlcnic_82xx_alloc_mbx_args
	.p2align	4, 0x90
_qlcnic_82xx_alloc_mbx_args:            ## @qlcnic_82xx_alloc_mbx_args
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	_qlcnic_mbx_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movl	%eax, %eax
	shlq	$4, %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rbx,%rcx)
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
	jmp	LBB0_9
LBB0_3:
	movl	12(%rbx,%rcx), %edi
	movl	%edi, 8(%r14)
	movl	8(%rbx,%rcx), %eax
	movl	%eax, 24(%r14)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	24(%r14), %edi
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 16(%r14)
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, (%rdi)
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_kfree
	movq	$0, (%r14)
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_qlcnic_mbx_tbl,8,3             ## @qlcnic_mbx_tbl
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_alloc_mbx_args     ; -- Begin function qlcnic_82xx_alloc_mbx_args
	.p2align	2
_qlcnic_82xx_alloc_mbx_args:            ; @qlcnic_82xx_alloc_mbx_args
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _qlcnic_mbx_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qlcnic_mbx_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w9, w0
	add	x8, x21, #12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-12]
	cmp	x10, x20
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #16
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
	ldr	w0, [x8]
	str	w0, [x19, #8]
	ldur	w8, [x8, #-4]
	str	w8, [x19, #24]
Lloh3:
	adrp	x21, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [x19, #24]
	ldr	w2, [x21]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #16]
	ldr	x8, [x19]
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #0
	str	x20, [x8]
	b	LBB0_10
LBB0_8:
	mov	x0, x8
	bl	_kfree
	str	xzr, [x19]
LBB0_9:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_qlcnic_mbx_tbl,8,3             ; @qlcnic_mbx_tbl
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
