	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_issue_cmd          ## -- Begin function qlcnic_82xx_issue_cmd
	.p2align	4, 0x90
_qlcnic_82xx_issue_cmd:                 ## @qlcnic_82xx_issue_cmd
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	movq	(%rdi), %rdi
	movq	8(%r14), %r15
	callq	_qlcnic_get_cmd_signature
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_qlcnic_api_lock
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movl	$128, (%rax)
	movl	$128, %eax
	jmp	LBB0_18
LBB0_2:
	movq	_QLCNIC_SIGN_CRB_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_QLCWR32
	cmpl	$2, 16(%r12)
	jl	LBB0_5
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_QLCNIC_CDRP_ARG
	movq	24(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_QLCWR32
	incq	%rbx
	movslq	16(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_QLCNIC_CDRP_CRB_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	24(%r12), %rax
	movq	(%rax), %rdi
	callq	_QLCNIC_CDRP_FORM_CMD
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_QLCWR32
	movq	%r14, %rdi
	callq	_qlcnic_poll_rsp
	movq	_QLCNIC_CDRP_RSP_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rax, %rdx
	callq	_dev_err
	movq	(%r12), %rax
	movl	$128, (%rax)
	jmp	LBB0_14
LBB0_7:
	movq	_QLCNIC_CDRP_RSP_FAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.8:
	movl	$1, %edi
	callq	_QLCNIC_CDRP_ARG
	leaq	-36(%rbp), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_QLCRD32
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %ecx
	addl	$-128, %ecx
	cmpl	$5, %ecx
	ja	LBB0_9
## %bb.10:
	movslq	%ecx, %rcx
	leaq	l_reltable.qlcnic_82xx_issue_cmd(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rsi
	addq	%rdx, %rsi
	jmp	LBB0_11
LBB0_12:
	movq	_QLCNIC_CDRP_RSP_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.6(%rip), %rsi
LBB0_11:
	movslq	%eax, %rdx
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_qlcnic_dump_mbx
LBB0_14:
	cmpl	$2, 8(%r12)
	jl	LBB0_17
## %bb.15:
	movl	$1, %ebx
	leaq	-36(%rbp), %r15
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_QLCNIC_CDRP_ARG
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_QLCRD32
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	callq	_qlcnic_api_unlock
	movq	(%r12), %rax
	movl	(%rax), %eax
LBB0_18:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_SIGN_CRB_OFFSET,4,2     ## @QLCNIC_SIGN_CRB_OFFSET
	.comm	_QLCNIC_CDRP_CRB_OFFSET,4,2     ## @QLCNIC_CDRP_CRB_OFFSET
	.comm	_QLCNIC_CDRP_RSP_TIMEOUT,8,3    ## @QLCNIC_CDRP_RSP_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command timeout, response = 0x%x\n"

	.comm	_QLCNIC_CDRP_RSP_FAIL,8,3       ## @QLCNIC_CDRP_RSP_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"CDRP invalid args: [%d]\n"

L_.str.2:                               ## @.str.2
	.asciz	"CDRP command not supported: [%d]\n"

L_.str.3:                               ## @.str.3
	.asciz	"CDRP requested action not permitted: [%d]\n"

L_.str.4:                               ## @.str.4
	.asciz	"CDRP invalid or unknown cmd received: [%d]\n"

L_.str.5:                               ## @.str.5
	.asciz	"CDRP command timeout: [%d]\n"

L_.str.6:                               ## @.str.6
	.asciz	"CDRP command failed: [%d]\n"

	.comm	_QLCNIC_CDRP_RSP_OK,8,3         ## @QLCNIC_CDRP_RSP_OK
	.comm	_QLCNIC_RCODE_SUCCESS,8,3       ## @QLCNIC_RCODE_SUCCESS
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.qlcnic_82xx_issue_cmd
l_reltable.qlcnic_82xx_issue_cmd:
	.long	L_.str.5-l_reltable.qlcnic_82xx_issue_cmd
	.long	L_.str.2-l_reltable.qlcnic_82xx_issue_cmd
	.long	L_.str.3-l_reltable.qlcnic_82xx_issue_cmd
	.long	L_.str.2-l_reltable.qlcnic_82xx_issue_cmd
	.long	L_.str.1-l_reltable.qlcnic_82xx_issue_cmd
	.long	L_.str.4-l_reltable.qlcnic_82xx_issue_cmd

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_issue_cmd          ; -- Begin function qlcnic_82xx_issue_cmd
	.p2align	2
_qlcnic_82xx_issue_cmd:                 ; @qlcnic_82xx_issue_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	ldp	x0, x21, [x0]
	bl	_qlcnic_get_cmd_signature
	mov	x22, x0
	mov	x0, x20
	bl	_qlcnic_api_lock
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	mov	w0, #128
	str	w0, [x8]
	b	LBB0_18
LBB0_2:
Lloh0:
	adrp	x8, _QLCNIC_SIGN_CRB_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_SIGN_CRB_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_QLCWR32
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_QLCNIC_CDRP_ARG
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	x2, [x8, x22, lsl #3]
	mov	x0, x20
	bl	_QLCWR32
	add	x22, x22, #1
	ldrsw	x8, [x19, #16]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
Lloh3:
	adrp	x8, _QLCNIC_CDRP_CRB_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_CDRP_CRB_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	bl	_QLCNIC_CDRP_FORM_CMD
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_QLCWR32
	mov	x0, x20
	bl	_qlcnic_poll_rsp
	mov	x2, x0
Lloh6:
	adrp	x8, _QLCNIC_CDRP_RSP_TIMEOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_CDRP_RSP_TIMEOUT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x8, [x19]
	mov	w9, #128
	str	w9, [x8]
	b	LBB0_14
LBB0_7:
Lloh11:
	adrp	x8, _QLCNIC_CDRP_RSP_FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _QLCNIC_CDRP_RSP_FAIL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_10
; %bb.8:
	mov	w0, #1
	bl	_QLCNIC_CDRP_ARG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	ldr	x8, [x19]
	str	w0, [x8]
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_12
; %bb.9:
Lloh14:
	adrp	x9, l_switch.table.qlcnic_82xx_issue_cmd@PAGE
Lloh15:
	add	x9, x9, l_switch.table.qlcnic_82xx_issue_cmd@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	b	LBB0_13
LBB0_10:
Lloh16:
	adrp	x8, _QLCNIC_CDRP_RSP_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _QLCNIC_CDRP_RSP_OK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_14
; %bb.11:
Lloh19:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_14
LBB0_12:
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_13:
	sxtw	x2, w0
	mov	x0, x21
	bl	_dev_err
	mov	x0, x20
	mov	x1, x19
	bl	_qlcnic_dump_mbx
LBB0_14:
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_17
; %bb.15:
	mov	w21, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_QLCNIC_CDRP_ARG
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x20
	bl	_QLCRD32
	ldr	x8, [x19]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	cmp	x21, x8
	b.lt	LBB0_16
LBB0_17:
	mov	x0, x20
	bl	_qlcnic_api_unlock
	ldr	x8, [x19]
	ldr	w0, [x8]
LBB0_18:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_SIGN_CRB_OFFSET,4,2     ; @QLCNIC_SIGN_CRB_OFFSET
	.comm	_QLCNIC_CDRP_CRB_OFFSET,4,2     ; @QLCNIC_CDRP_CRB_OFFSET
	.comm	_QLCNIC_CDRP_RSP_TIMEOUT,8,3    ; @QLCNIC_CDRP_RSP_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command timeout, response = 0x%x\n"

	.comm	_QLCNIC_CDRP_RSP_FAIL,8,3       ; @QLCNIC_CDRP_RSP_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"CDRP invalid args: [%d]\n"

l_.str.2:                               ; @.str.2
	.asciz	"CDRP command not supported: [%d]\n"

l_.str.3:                               ; @.str.3
	.asciz	"CDRP requested action not permitted: [%d]\n"

l_.str.4:                               ; @.str.4
	.asciz	"CDRP invalid or unknown cmd received: [%d]\n"

l_.str.5:                               ; @.str.5
	.asciz	"CDRP command timeout: [%d]\n"

l_.str.6:                               ; @.str.6
	.asciz	"CDRP command failed: [%d]\n"

	.comm	_QLCNIC_CDRP_RSP_OK,8,3         ; @QLCNIC_CDRP_RSP_OK
	.comm	_QLCNIC_RCODE_SUCCESS,8,3       ; @QLCNIC_RCODE_SUCCESS
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qlcnic_82xx_issue_cmd
l_switch.table.qlcnic_82xx_issue_cmd:
	.quad	l_.str.5
	.quad	l_.str.2
	.quad	l_.str.3
	.quad	l_.str.2
	.quad	l_.str.1
	.quad	l_.str.4

.subsections_via_symbols
