	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_flash_read32       ## -- Begin function qlcnic_83xx_flash_read32
	.p2align	4, 0x90
_qlcnic_83xx_flash_read32:              ## @qlcnic_83xx_flash_read32
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	callq	_qlcnic_83xx_lock_flash
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	testb	$3, %bl
	je	LBB0_6
## %bb.2:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	movq	%r14, %rdi
	callq	_qlcnic_83xx_unlock_flash
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
LBB0_4:
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.7:
	movq	_QLC_83XX_FLASH_DIRECT_WINDOW@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_qlcnic_83xx_wrt_reg_indirect
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %edi
	callq	_QLC_83XX_FLASH_DIRECT_DATA
	movq	%r14, %rdi
	movl	%eax, %esi
	leaq	-44(%rbp), %rdx
	callq	_QLCRD32
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	movq	_EIO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addl	%eax, %edx
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%ecx, (%r12)
	addq	$16, %r12
	addl	$4, %ebx
	decl	%r15d
	jne	LBB0_8
LBB0_11:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_unlock_flash
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_12:
	movq	%r14, %rdi
	callq	_qlcnic_83xx_unlock_flash
	xorl	%eax, %eax
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal addr = 0x%x\n"

	.comm	_QLC_83XX_FLASH_DIRECT_WINDOW,4,2 ## @QLC_83XX_FLASH_DIRECT_WINDOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_flash_read32       ; -- Begin function qlcnic_83xx_flash_read32
	.p2align	2
_qlcnic_83xx_flash_read32:              ; @qlcnic_83xx_flash_read32
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_qlcnic_83xx_lock_flash
	cbnz	x0, LBB0_3
; %bb.1:
	tst	w20, #0x3
	b.eq	LBB0_6
; %bb.2:
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_flash
LBB0_3:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
LBB0_4:
	neg	w0, w8
LBB0_5:
	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_6:
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.7:
Lloh5:
	adrp	x24, _QLC_83XX_FLASH_DIRECT_WINDOW@GOTPAGE
Lloh6:
	ldr	x24, [x24, _QLC_83XX_FLASH_DIRECT_WINDOW@GOTPAGEOFF]
Lloh7:
	adrp	x23, _EIO@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EIO@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x20
	bl	_qlcnic_83xx_wrt_reg_indirect
	cbnz	x0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_QLC_83XX_FLASH_DIRECT_DATA
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x19
	bl	_QLCRD32
	mov	x8, x0
	ldr	w0, [sp, #12]
	ldr	w9, [x23]
	cmn	w0, w9
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w8, [x22], #16
	add	w20, w20, #4
	subs	w21, w21, #1
	b.ne	LBB0_8
LBB0_11:
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_flash
	mov	w0, #0
	b	LBB0_5
LBB0_12:
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_flash
	ldr	w8, [x23]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal addr = 0x%x\n"

	.comm	_QLC_83XX_FLASH_DIRECT_WINDOW,4,2 ; @QLC_83XX_FLASH_DIRECT_WINDOW
.subsections_via_symbols
