	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	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_24
LBB0_2:
	movq	_QLCNIC_SIGN_CRB_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_QLCWR32
	movq	_QLCNIC_CDRP_MAX_ARGS@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	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	16(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_QLCWR32
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	_QLCNIC_CDRP_CRB_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	16(%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
	xorl	%eax, %eax
	callq	_dev_err
	movq	(%r12), %rax
	movl	$128, (%rax)
	jmp	LBB0_20
LBB0_7:
	movq	_QLCNIC_CDRP_RSP_FAIL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.8:
	movl	$1, %edi
	callq	_QLCNIC_CDRP_ARG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_QLCRD32
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_17
## %bb.9:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_18:
	movq	_QLCNIC_CDRP_RSP_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_20
LBB0_17:
	leaq	L_.str.6(%rip), %rsi
LBB0_12:
	movq	%r15, %rdi
	movl	%eax, %edx
	jmp	LBB0_13
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	$128, %edx
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	$130, %edx
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$132, %edx
	jmp	LBB0_13
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	$133, %edx
LBB0_13:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_20:
	cmpl	$2, 8(%r12)
	jl	LBB0_23
## %bb.21:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_QLCNIC_CDRP_ARG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_QLCRD32
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	8(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_22
LBB0_23:
	movq	%r14, %rdi
	callq	_qlcnic_api_unlock
	movq	(%r12), %rax
	movl	(%rax), %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_QLCNIC_SIGN_CRB_OFFSET,4,2     ## @QLCNIC_SIGN_CRB_OFFSET
	.comm	_QLCNIC_CDRP_MAX_ARGS,4,2       ## @QLCNIC_CDRP_MAX_ARGS
	.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	"card response timeout.\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"CDRP command not supported: 0x%x.\n"

L_.str.3:                               ## @.str.3
	.asciz	"CDRP requested action not permitted: 0x%x.\n"

L_.str.4:                               ## @.str.4
	.asciz	"CDRP invalid or unknown cmd received: 0x%x.\n"

L_.str.5:                               ## @.str.5
	.asciz	"CDRP command timeout: 0x%x.\n"

L_.str.6:                               ## @.str.6
	.asciz	"CDRP command failed: 0x%x.\n"

	.comm	_QLCNIC_CDRP_RSP_OK,8,3         ## @QLCNIC_CDRP_RSP_OK
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	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_23
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
Lloh3:
	adrp	x23, _QLCNIC_CDRP_MAX_ARGS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _QLCNIC_CDRP_MAX_ARGS@GOTPAGEOFF]
	ldr	w8, [x23]
	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, #16]
	ldr	x2, [x8, x22, lsl #3]
	mov	x0, x20
	bl	_QLCWR32
	add	x22, x22, #1
	ldrsw	x8, [x23]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
Lloh5:
	adrp	x8, _QLCNIC_CDRP_CRB_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_CDRP_CRB_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	ldr	x8, [x19, #16]
	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
Lloh8:
	adrp	x8, _QLCNIC_CDRP_RSP_TIMEOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_CDRP_RSP_TIMEOUT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x8, [x19]
	mov	w9, #128
	str	w9, [x8]
	b	LBB0_19
LBB0_7:
Lloh13:
	adrp	x8, _QLCNIC_CDRP_RSP_FAIL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QLCNIC_CDRP_RSP_FAIL@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:
	mov	w0, #1
	bl	_QLCNIC_CDRP_ARG
	mov	x1, x0
	mov	x0, x20
	bl	_QLCRD32
	ldr	x8, [x19]
	str	w0, [x8]
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_13
; %bb.9:
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_11:
Lloh20:
	adrp	x8, _QLCNIC_CDRP_RSP_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _QLCNIC_CDRP_RSP_OK@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.12:
Lloh23:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	b	LBB0_19
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_18
LBB0_14:
	mov	w8, #128
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_15:
	mov	w8, #130
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_18
LBB0_16:
	mov	w8, #132
	str	x8, [sp]
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:
	mov	w8, #133
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_18:
	mov	x0, x21
	bl	_dev_err
LBB0_19:
	ldr	w8, [x19, #8]
	cmp	w8, #2
	b.lt	LBB0_22
; %bb.20:
	mov	w21, #1
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_QLCNIC_CDRP_ARG
	mov	x1, x0
	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_21
LBB0_22:
	mov	x0, x20
	bl	_qlcnic_api_unlock
	ldr	x8, [x19]
	ldr	w0, [x8]
LBB0_23:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
                                        ; -- End function
	.comm	_QLCNIC_SIGN_CRB_OFFSET,4,2     ; @QLCNIC_SIGN_CRB_OFFSET
	.comm	_QLCNIC_CDRP_MAX_ARGS,4,2       ; @QLCNIC_CDRP_MAX_ARGS
	.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	"card response timeout.\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"CDRP command not supported: 0x%x.\n"

l_.str.3:                               ; @.str.3
	.asciz	"CDRP requested action not permitted: 0x%x.\n"

l_.str.4:                               ; @.str.4
	.asciz	"CDRP invalid or unknown cmd received: 0x%x.\n"

l_.str.5:                               ; @.str.5
	.asciz	"CDRP command timeout: 0x%x.\n"

l_.str.6:                               ; @.str.6
	.asciz	"CDRP command failed: 0x%x.\n"

	.comm	_QLCNIC_CDRP_RSP_OK,8,3         ; @QLCNIC_CDRP_RSP_OK
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
.subsections_via_symbols
