	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_sriov_alloc_bc_mbx_args
_qlcnic_sriov_alloc_bc_mbx_args:        ## @qlcnic_sriov_alloc_bc_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	%rsi, %r15
	movq	%rdi, %r14
	movq	_qlcnic_sriov_bc_mbx_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movl	%eax, %ecx
	shlq	$4, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r15, (%rbx,%rax)
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rax
	cmpq	%rax, %rcx
	jne	LBB0_2
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_QLC_BC_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r14)
	movl	8(%rbx,%rax), %edi
	movl	%edi, 16(%r14)
	movl	12(%rbx,%rax), %eax
	movl	%eax, (%r14)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	16(%r14), %ecx
	shll	$16, %ecx
	movslq	%ecx, %rcx
	orq	%r15, %rcx
	orq	$1610612736, %rcx               ## imm = 0x60000000
	movq	24(%r14), %rdx
	movq	%rcx, (%rdx)
	movzwl	%r15w, %ecx
	movl	(%r14), %edx
	shll	$16, %edx
	movslq	%edx, %rdx
	orq	%rcx, %rdx
	movq	%rdx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	24(%r14), %rdi
	callq	_kfree
	movq	$0, 24(%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_qlcnic_sriov_bc_mbx_tbl,8,3    ## @qlcnic_sriov_bc_mbx_tbl
	.comm	_QLC_BC_CMD,4,2                 ## @QLC_BC_CMD
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qlcnic_sriov_alloc_bc_mbx_args
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_sriov_alloc_bc_mbx_args
_qlcnic_sriov_alloc_bc_mbx_args:        ; @qlcnic_sriov_alloc_bc_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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _qlcnic_sriov_bc_mbx_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qlcnic_sriov_bc_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, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x10, [x8, #-8]
	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:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x9, _QLC_BC_CMD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QLC_BC_CMD@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x19, #32]
	ldp	w0, w8, [x8]
	str	w0, [x19, #16]
	str	w8, [x19]
Lloh8:
	adrp	x21, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x21, [x21, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [x19]
	ldr	w2, [x21]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19, #16]
	lsl	w9, w9, #16
	sxtw	x9, w9
	orr	x9, x9, x20
	orr	x9, x9, #0x60000000
	ldr	x10, [x19, #24]
	str	x9, [x10]
	ldr	w9, [x19]
	lsl	w9, w9, #16
	sxtw	x9, w9
	bfxil	x9, x20, #0, #16
	str	x9, [x8]
	b	LBB0_11
LBB0_8:
	ldr	x0, [x19, #24]
	bl	_kfree
	str	xzr, [x19, #24]
LBB0_9:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_qlcnic_sriov_bc_mbx_tbl,8,3    ; @qlcnic_sriov_bc_mbx_tbl
	.comm	_QLC_BC_CMD,4,2                 ; @QLC_BC_CMD
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qlcnic_sriov_alloc_bc_mbx_args
.subsections_via_symbols
