	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_run_post
_qlcnic_83xx_run_post:                  ## @qlcnic_83xx_run_post
	.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	%rdi, %r12
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movq	8(%rax), %rbx
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$132, %eax
	je	LBB0_2
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_5
## %bb.4:
	movq	_QLC_83XX_POST_MED_MODE_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_QLC_83XX_POST_SLOW_MODE_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_QLC_83XX_POST_FAST_MODE_TIMEOUT@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r13d
	movl	(%rbx), %edi
	movq	_QLC_83XX_POST_FW_FILE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLC_FW_FILE_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	movl	(%rbx), %esi
	addq	$4, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
LBB0_9:
	movq	%r12, %rdi
	callq	_qlcnic_83xx_copy_fw_file
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_26
## %bb.10:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	_QLC_83XX_POST_SIGNATURE_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_qlcnic_ind_wr
	movq	_QLC_83XX_POST_MODE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_qlcnic_ind_wr
	movq	_QLCNIC_FW_IMG_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLC_83XX_BOOT_FROM_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_QLC_SHARED_REG_WR32
	movq	%r12, %rdi
	callq	_qlcnic_83xx_start_hw
	addl	$1900, %r13d                    ## imm = 0x76C
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r14d
	movl	$100, %edi
	callq	_msleep
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_qlcnic_ind_rd
	cmpl	$129, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	100(%r14), %ebx
	cmpl	%r14d, %r13d
	jg	LBB0_11
LBB0_13:
	cmpl	%r14d, %r13d
	jle	LBB0_14
## %bb.15:
	movl	%eax, %ecx
	addl	$-129, %ecx
	cmpl	$6, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	ja	LBB0_22
## %bb.16:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_17:
	leaq	L_.str.2(%rip), %rsi
	movl	$129, %edx
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_26
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_25
LBB0_14:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_23:
	movl	%eax, %edx
LBB0_24:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_25:
	subl	(%rax), %r15d
LBB0_26:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	leaq	L_.str.7(%rip), %rsi
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$131, %edx
	jmp	LBB0_24
LBB0_19:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$133, %edx
	jmp	LBB0_24
LBB0_18:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$134, %edx
	jmp	LBB0_24
LBB0_20:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$135, %edx
	jmp	LBB0_24
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_22
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_19
	.long	L0_0_set_18
	.long	L0_0_set_20
	.end_data_region
                                        ## -- End function
	.comm	_QLC_83XX_POST_FAST_MODE_TIMEOUT,4,2 ## @QLC_83XX_POST_FAST_MODE_TIMEOUT
	.comm	_QLC_83XX_POST_MED_MODE_TIMEOUT,4,2 ## @QLC_83XX_POST_MED_MODE_TIMEOUT
	.comm	_QLC_83XX_POST_SLOW_MODE_TIMEOUT,4,2 ## @QLC_83XX_POST_SLOW_MODE_TIMEOUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QLC_83XX_POST_FW_FILE_NAME,4,2 ## @QLC_83XX_POST_FW_FILE_NAME
	.comm	_QLC_FW_FILE_NAME_LEN,4,2       ## @QLC_FW_FILE_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"POST firmware can not be loaded, skipping POST\n"

	.comm	_QLC_83XX_POST_SIGNATURE_REG,4,2 ## @QLC_83XX_POST_SIGNATURE_REG
	.comm	_QLC_83XX_POST_MODE_REG,4,2     ## @QLC_83XX_POST_MODE_REG
	.comm	_QLCNIC_FW_IMG_VALID,4,2        ## @QLCNIC_FW_IMG_VALID
	.comm	_QLC_83XX_BOOT_FROM_FILE,4,2    ## @QLC_83XX_BOOT_FROM_FILE
L_.str.1:                               ## @.str.1
	.asciz	"POST timed out, signature = 0x%08x\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.2:                               ## @.str.2
	.asciz	"POST passed, Signature = 0x%08x\n"

L_.str.3:                               ## @.str.3
	.asciz	"POST failed, Test case : ASIC STRESS TEST, Signature = 0x%08x\n"

L_.str.4:                               ## @.str.4
	.asciz	"POST failed, Test case : DDT TEST, Signature = 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"POST failed, Test case : ASIC MEMORY TEST, Signature = 0x%08x\n"

L_.str.6:                               ## @.str.6
	.asciz	"POST failed, Test case : FLASH TEST, Signature = 0x%08x\n"

L_.str.7:                               ## @.str.7
	.asciz	"POST failed, Test case : INVALID, Signature = 0x%08x\n"

	.no_dead_strip	_qlcnic_83xx_run_post
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_run_post
_qlcnic_83xx_run_post:                  ; @qlcnic_83xx_run_post
	.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	x20, x0
	ldp	x8, x19, [x0]
	ldr	x21, [x8, #8]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #132
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_15
; %bb.3:
Lloh0:
	adrp	x8, _QLC_83XX_POST_MED_MODE_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_POST_MED_MODE_TIMEOUT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _QLC_83XX_POST_SLOW_MODE_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QLC_83XX_POST_SLOW_MODE_TIMEOUT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _QLC_83XX_POST_FAST_MODE_TIMEOUT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _QLC_83XX_POST_FAST_MODE_TIMEOUT@GOTPAGEOFF]
LBB0_6:
	ldr	w22, [x8]
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _QLC_83XX_POST_FW_FILE_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_83XX_POST_FW_FILE_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _QLC_FW_FILE_NAME_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLC_FW_FILE_NAME_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_strncpy
	ldr	w1, [x21], #4
	mov	x0, x21
	mov	x2, x19
	bl	_request_firmware
	cbz	w0, LBB0_8
; %bb.7:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	w0, #0
	b	LBB0_19
LBB0_8:
	mov	x0, x20
	bl	_qlcnic_83xx_copy_fw_file
	cbnz	w0, LBB0_19
; %bb.9:
Lloh14:
	adrp	x21, _QLC_83XX_POST_SIGNATURE_REG@GOTPAGE
Lloh15:
	ldr	x21, [x21, _QLC_83XX_POST_SIGNATURE_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	mov	w2, #0
	bl	_qlcnic_ind_wr
Lloh16:
	adrp	x8, _QLC_83XX_POST_MODE_REG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _QLC_83XX_POST_MODE_REG@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_qlcnic_ind_wr
Lloh19:
	adrp	x8, _QLCNIC_FW_IMG_VALID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _QLCNIC_FW_IMG_VALID@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _QLC_83XX_BOOT_FROM_FILE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _QLC_83XX_BOOT_FROM_FILE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_QLC_SHARED_REG_WR32
	mov	x0, x20
	bl	_qlcnic_83xx_start_hw
	mov	w24, #0
	add	w22, w22, #1900
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x23, x24
	mov	w0, #100
	bl	_msleep
	add	w24, w24, #100
	ldr	w1, [x21]
	mov	x0, x20
	bl	_qlcnic_ind_rd
                                        ; kill: def $w0 killed $w0 def $x0
	subs	w8, w0, #129
	ccmp	w22, w23, #4, ne
	b.gt	LBB0_10
; %bb.11:
	cmp	w22, w23
	b.le	LBB0_16
; %bb.12:
	cmp	w8, #6
	b.hi	LBB0_20
; %bb.13:
Lloh25:
	adrp	x9, lJTI0_0@PAGE
Lloh26:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w2, #129
	bl	_dev_info
	mov	w0, #0
	b	LBB0_19
LBB0_15:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_err
Lloh33:
	adrp	x8, _EIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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
LBB0_20:
	str	x0, [sp]
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_21:
	mov	w8, #131
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.6@PAGE
Lloh38:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_17
LBB0_22:
	mov	w8, #133
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.4@PAGE
Lloh40:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_23:
	mov	w8, #134
	str	x8, [sp]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_24:
	mov	w8, #135
	str	x8, [sp]
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_20-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_20-LBB0_14)>>2
	.byte	(LBB0_22-LBB0_14)>>2
	.byte	(LBB0_23-LBB0_14)>>2
	.byte	(LBB0_24-LBB0_14)>>2
                                        ; -- End function
	.comm	_QLC_83XX_POST_FAST_MODE_TIMEOUT,4,2 ; @QLC_83XX_POST_FAST_MODE_TIMEOUT
	.comm	_QLC_83XX_POST_MED_MODE_TIMEOUT,4,2 ; @QLC_83XX_POST_MED_MODE_TIMEOUT
	.comm	_QLC_83XX_POST_SLOW_MODE_TIMEOUT,4,2 ; @QLC_83XX_POST_SLOW_MODE_TIMEOUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QLC_83XX_POST_FW_FILE_NAME,4,2 ; @QLC_83XX_POST_FW_FILE_NAME
	.comm	_QLC_FW_FILE_NAME_LEN,4,2       ; @QLC_FW_FILE_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"POST firmware can not be loaded, skipping POST\n"

	.comm	_QLC_83XX_POST_SIGNATURE_REG,4,2 ; @QLC_83XX_POST_SIGNATURE_REG
	.comm	_QLC_83XX_POST_MODE_REG,4,2     ; @QLC_83XX_POST_MODE_REG
	.comm	_QLCNIC_FW_IMG_VALID,4,2        ; @QLCNIC_FW_IMG_VALID
	.comm	_QLC_83XX_BOOT_FROM_FILE,4,2    ; @QLC_83XX_BOOT_FROM_FILE
l_.str.1:                               ; @.str.1
	.asciz	"POST timed out, signature = 0x%08x\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.2:                               ; @.str.2
	.asciz	"POST passed, Signature = 0x%08x\n"

l_.str.3:                               ; @.str.3
	.asciz	"POST failed, Test case : ASIC STRESS TEST, Signature = 0x%08x\n"

l_.str.4:                               ; @.str.4
	.asciz	"POST failed, Test case : DDT TEST, Signature = 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"POST failed, Test case : ASIC MEMORY TEST, Signature = 0x%08x\n"

l_.str.6:                               ; @.str.6
	.asciz	"POST failed, Test case : FLASH TEST, Signature = 0x%08x\n"

l_.str.7:                               ; @.str.7
	.asciz	"POST failed, Test case : INVALID, Signature = 0x%08x\n"

	.no_dead_strip	_qlcnic_83xx_run_post
.subsections_via_symbols
