	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_create_tx_ctx      ## -- Begin function qlcnic_83xx_create_tx_ctx
	.p2align	4, 0x90
_qlcnic_83xx_create_tx_ctx:             ## @qlcnic_83xx_create_tx_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	$0, -64(%rbp)
	movq	16(%rdi), %r12
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rsi)
	movq	32(%rsi), %rax
	movq	$0, (%rax)
	leaq	-120(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	28(%r13), %edi
	callq	_LSD
	movq	%rax, -72(%rbp)
	movl	28(%r13), %edi
	callq	_MSD
	movq	%rax, -80(%rbp)
	movl	24(%r13), %edi
	callq	_LSD
	movq	%rax, -88(%rbp)
	movl	24(%r13), %edi
	callq	_MSD
	movq	%rax, -96(%rbp)
	movl	20(%r13), %eax
	movl	%eax, -104(%rbp)
	movl	(%r14), %eax
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_QLCNIC_TX_INTR_SHARED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movslq	4(%r14), %rcx
	negl	%eax
	sbbl	%ebx, %ebx
	orl	%r15d, %ebx
	movslq	%ebx, %rax
	addq	%rcx, %rax
	movq	16(%r12), %rcx
	shlq	$4, %rax
	movl	(%rcx,%rax), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_QLCNIC_DEF_INT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_QLCRDX
LBB0_3:
	movq	16(%r14), %rcx
	movq	(%rcx), %rcx
	movq	_QLCNIC_LOOPBACK_TEST@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	$65535, %ecx                    ## imm = 0xFFFF
	cmovnel	%eax, %ecx
	movl	%ecx, -120(%rbp)
	movq	$0, -112(%rbp)
	movq	_QLCNIC_CMD_CREATE_TX_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	callq	_qlcnic_alloc_mbx_args
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r14, %rdi
	callq	_qlcnic_sriov_pf_check
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_qlcnic_sriov_vf_check
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	-48(%rbp), %rax
	orl	$1610612736, (%rax)             ## imm = 0x60000000
LBB0_7:
	movq	%r14, %rdi
	callq	_qlcnic_sriov_pf_check
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_pf_set_interface_id_create_tx_ctx
LBB0_9:
	movq	_QLCNIC_CAP0_LEGACY_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rdi
	movl	%eax, 4(%rdi)
	movq	_QLCNIC_SINGLE_RING@GOTPCREL(%rip), %rax
	movl	-64(%rbp), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 20(%rdi)
	addq	$24, %rdi
	leaq	-120(%rbp), %rsi
	movl	$56, %edx
	callq	_memcpy
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_err
	jmp	LBB0_15
LBB0_11:
	movq	-56(%rbp), %rax
	movq	8(%r12), %rcx
	movq	8(%rax), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%r13)
	movl	20(%rax), %edx
	movl	%edx, 16(%r13)
	movl	(%r14), %esi
	movq	_QLCNIC_MSIX_ENABLED@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_14
## %bb.12:
	movq	_QLCNIC_TX_INTR_SHARED@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	jne	LBB0_14
## %bb.13:
	movq	16(%r12), %r8
	movslq	4(%r14), %rdi
	movslq	%r15d, %rsi
	addq	%rdi, %rsi
	shlq	$4, %rsi
	addq	8(%r8,%rsi), %rcx
	movq	%rcx, 8(%r13)
LBB0_14:
	movl	8(%r14), %edi
	movl	16(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_info
LBB0_15:
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
LBB0_16:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ## @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_TX_INTR_SHARED,4,2      ## @QLCNIC_TX_INTR_SHARED
	.comm	_QLCNIC_DEF_INT_ID,4,2          ## @QLCNIC_DEF_INT_ID
	.comm	_QLCNIC_LOOPBACK_TEST,8,3       ## @QLCNIC_LOOPBACK_TEST
	.comm	_QLCNIC_CMD_CREATE_TX_CTX,4,2   ## @QLCNIC_CMD_CREATE_TX_CTX
	.comm	_QLCNIC_CAP0_LEGACY_CONTEXT,4,2 ## @QLCNIC_CAP0_LEGACY_CONTEXT
	.comm	_QLCNIC_SINGLE_RING,8,3         ## @QLCNIC_SINGLE_RING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create Tx ctx in firmware 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Tx Context[0x%x] Created, state:0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_create_tx_ctx      ; -- Begin function qlcnic_83xx_create_tx_ctx
	.p2align	2
_qlcnic_83xx_create_tx_ctx:             ; @qlcnic_83xx_create_tx_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	stur	xzr, [x29, #-56]
	ldr	x22, [x0, #16]
	stp	xzr, xzr, [x1, #40]
	ldr	x8, [x1, #32]
	str	xzr, [x8]
	mov	x0, sp
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	w0, [x20, #28]
	bl	_LSD
	str	x0, [sp, #48]
	ldr	w0, [x20, #28]
	bl	_MSD
	str	x0, [sp, #40]
	ldr	w0, [x20, #24]
	bl	_LSD
	str	x0, [sp, #32]
	ldr	w0, [x20, #24]
	bl	_MSD
	str	x0, [sp, #24]
	ldr	w8, [x20, #20]
	str	w8, [sp, #16]
	ldr	w8, [x19]
Lloh0:
	adrp	x24, _QLCNIC_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _QLCNIC_MSIX_ENABLED@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _QLCNIC_TX_INTR_SHARED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QLCNIC_TX_INTR_SHARED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	tst	w9, w8
	csinv	w8, w21, wzr, eq
	add	w8, w10, w8
	ldr	x9, [x22, #16]
	sbfiz	x8, x8, #4, #32
	ldr	w0, [x9, x8]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _QLCNIC_DEF_INT_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_DEF_INT_ID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_QLCRDX
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _QLCNIC_LOOPBACK_TEST@GOTPAGE
Lloh9:
	ldr	x9, [x9, _QLCNIC_LOOPBACK_TEST@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #65535
	csel	w8, w8, w0, eq
	str	w8, [sp]
	str	xzr, [sp, #8]
Lloh11:
	adrp	x8, _QLCNIC_CMD_CREATE_TX_CTX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLCNIC_CMD_CREATE_TX_CTX@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	add	x0, sp, #56
	mov	x1, x19
	bl	_qlcnic_alloc_mbx_args
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.4:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_check
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_qlcnic_sriov_vf_check
	cbz	x0, LBB0_7
LBB0_6:
	ldr	x8, [sp, #64]
	ldr	w9, [x8]
	orr	w9, w9, #0x60000000
	str	w9, [x8]
LBB0_7:
	mov	x0, x19
	bl	_qlcnic_sriov_pf_check
	cbz	x0, LBB0_9
; %bb.8:
	sub	x1, x29, #56
	mov	x0, x19
	bl	_qlcnic_pf_set_interface_id_create_tx_ctx
LBB0_9:
Lloh14:
	adrp	x8, _QLCNIC_CAP0_LEGACY_CONTEXT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLCNIC_CAP0_LEGACY_CONTEXT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [sp, #64]
Lloh17:
	adrp	x10, _QLCNIC_SINGLE_RING@GOTPAGE
Lloh18:
	ldr	x10, [x10, _QLCNIC_SINGLE_RING@GOTPAGEOFF]
	str	w8, [x9, #4]
Lloh19:
	ldr	w8, [x10]
	ldur	w10, [x29, #-56]
	orr	w8, w10, w8
	str	w8, [x9, #20]
	add	x0, x9, #24
	mov	x1, sp
	mov	w2, #56
	bl	_memcpy
	add	x1, sp, #56
	mov	x0, x19
	bl	_qlcnic_issue_cmd
	mov	x23, x0
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_netdev_err
	b	LBB0_15
LBB0_11:
	ldr	x8, [sp, #56]
	ldr	x9, [x22, #8]
	ldr	x10, [x8, #8]
	add	x10, x10, x9
	str	x10, [x20]
	ldr	w2, [x8, #20]
	str	w2, [x20, #16]
	ldr	w10, [x19]
	ldr	w11, [x24]
	tst	w11, w10
	b.eq	LBB0_14
; %bb.12:
Lloh22:
	adrp	x11, _QLCNIC_TX_INTR_SHARED@GOTPAGE
Lloh23:
	ldr	x11, [x11, _QLCNIC_TX_INTR_SHARED@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_14
; %bb.13:
	ldr	x10, [x22, #16]
	ldr	w11, [x19, #4]
	add	w11, w11, w21
	add	x10, x10, w11, sxtw #4
	ldr	x10, [x10, #8]
	add	x9, x10, x9
	str	x9, [x20, #8]
LBB0_14:
	ldr	w0, [x19, #8]
	ldr	w3, [x8, #16]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_info
LBB0_15:
	add	x0, sp, #56
	bl	_qlcnic_free_mbx_args
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_MSIX_ENABLED,4,2        ; @QLCNIC_MSIX_ENABLED
	.comm	_QLCNIC_TX_INTR_SHARED,4,2      ; @QLCNIC_TX_INTR_SHARED
	.comm	_QLCNIC_DEF_INT_ID,4,2          ; @QLCNIC_DEF_INT_ID
	.comm	_QLCNIC_LOOPBACK_TEST,8,3       ; @QLCNIC_LOOPBACK_TEST
	.comm	_QLCNIC_CMD_CREATE_TX_CTX,4,2   ; @QLCNIC_CMD_CREATE_TX_CTX
	.comm	_QLCNIC_CAP0_LEGACY_CONTEXT,4,2 ; @QLCNIC_CAP0_LEGACY_CONTEXT
	.comm	_QLCNIC_SINGLE_RING,8,3         ; @QLCNIC_SINGLE_RING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create Tx ctx in firmware 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Tx Context[0x%x] Created, state:0x%x\n"

.subsections_via_symbols
