	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fw_create_ctx           ## -- Begin function qlcnic_fw_create_ctx
	.p2align	4, 0x90
_qlcnic_fw_create_ctx:                  ## @qlcnic_fw_create_ctx
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_QLCNIC_NEED_FLR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	32(%r14), %edi
	callq	_pci_reset_function
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r14)
LBB0_2:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.4:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_LOOPBACK_TEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_qlcnic_83xx_config_intrpt
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_29
LBB0_6:
	movq	%r14, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_qlcnic_check_multi_tx
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_qlcnic_82xx_mq_intrpt
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_29
LBB0_11:
	movq	%r14, %rdi
	callq	_qlcnic_fw_cmd_create_rx_ctx
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_12
LBB0_18:
	movq	%r14, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_23
## %bb.19:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_23
## %bb.20:
	movq	%r14, %rdi
	callq	_qlcnic_check_multi_tx
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_82xx_config_intrpt
LBB0_23:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	je	LBB0_29
## %bb.24:
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_29
## %bb.25:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_LOOPBACK_TEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.26:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_83xx_config_intrpt
	jmp	LBB0_29
LBB0_12:
	cmpl	$0, 4(%r14)
	jle	LBB0_28
## %bb.13:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_qlcnic_fw_cmd_create_tx_ctx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.27:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	4(%r14), %rax
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_28:
	movq	___QLCNIC_FW_ATTACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %r14
	movq	%r14, %rsi
	callq	_set_bit
	xorl	%r15d, %r15d
LBB0_29:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_qlcnic_fw_cmd_del_rx_ctx
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.16:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rsi
	addq	%r12, %rsi
	movq	%r14, %rdi
	callq	_qlcnic_fw_cmd_del_tx_ctx
	addq	$4, %r12
	decq	%rbx
	jne	LBB0_17
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_NEED_FLR,4,2            ## @QLCNIC_NEED_FLR
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_LOOPBACK_TEST,8,3       ## @QLCNIC_LOOPBACK_TEST
	.comm	___QLCNIC_FW_ATTACHED,4,2       ## @__QLCNIC_FW_ATTACHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fw_create_ctx           ; -- Begin function qlcnic_fw_create_ctx
	.p2align	2
_qlcnic_fw_create_ctx:                  ; @qlcnic_fw_create_ctx
	.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	w8, [x0]
Lloh0:
	adrp	x20, _QLCNIC_NEED_FLR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _QLCNIC_NEED_FLR@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #32]
	bl	_pci_reset_function
	ldr	w8, [x20]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	mov	x0, x19
	bl	_qlcnic_83xx_check
Lloh2:
	adrp	x22, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _QLCNIC_LOOPBACK_TEST@GOTPAGE
Lloh5:
	ldr	x9, [x9, _QLCNIC_LOOPBACK_TEST@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_83xx_config_intrpt
	mov	x20, x0
	cbnz	w0, LBB0_26
LBB0_6:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_11
; %bb.7:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_qlcnic_check_multi_tx
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #1
	bl	_qlcnic_82xx_mq_intrpt
	mov	x20, x0
	cbnz	w0, LBB0_26
LBB0_11:
	mov	x0, x19
	bl	_qlcnic_fw_cmd_create_rx_ctx
	mov	x20, x0
	cbz	w0, LBB0_21
LBB0_12:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_17
; %bb.13:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.14:
	mov	x0, x19
	bl	_qlcnic_check_multi_tx
	cbz	x0, LBB0_17
; %bb.15:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w1, #0
	bl	_qlcnic_82xx_config_intrpt
LBB0_17:
	mov	x0, x19
	bl	_qlcnic_83xx_check
	cbz	x0, LBB0_26
; %bb.18:
	ldr	w8, [x19]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.19:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _QLCNIC_LOOPBACK_TEST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QLCNIC_LOOPBACK_TEST@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_26
; %bb.20:
	mov	x0, x19
	mov	w1, #0
	bl	_qlcnic_83xx_config_intrpt
	b	LBB0_26
LBB0_21:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.22:
	mov	x23, #0
	mov	x21, #0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x23
	mov	x0, x19
	mov	x2, x21
	bl	_qlcnic_fw_cmd_create_tx_ctx
	cbnz	w0, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x23, x23, #4
	cmp	x21, x8
	b.lt	LBB0_23
LBB0_25:
Lloh10:
	adrp	x8, ___QLCNIC_FW_ATTACHED@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___QLCNIC_FW_ATTACHED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, x19, #16
	bl	_set_bit
	mov	w20, #0
LBB0_26:
	mov	x0, x20
	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_27:
	mov	x20, x0
	mov	x0, x19
	bl	_qlcnic_fw_cmd_del_rx_ctx
	cbz	w21, LBB0_12
; %bb.28:
	mov	x23, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x1, x8, x23
	mov	x0, x19
	bl	_qlcnic_fw_cmd_del_tx_ctx
	add	x23, x23, #4
	subs	x21, x21, #1
	b.ne	LBB0_29
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_NEED_FLR,4,2            ; @QLCNIC_NEED_FLR
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_LOOPBACK_TEST,8,3       ; @QLCNIC_LOOPBACK_TEST
	.comm	___QLCNIC_FW_ATTACHED,4,2       ; @__QLCNIC_FW_ATTACHED
.subsections_via_symbols
