	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_lockless_flash_read32 ## -- Begin function qlcnic_83xx_lockless_flash_read32
	.p2align	4, 0x90
_qlcnic_83xx_lockless_flash_read32:     ## @qlcnic_83xx_lockless_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	%esi, %r14d
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	testb	$3, %r14b
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_2:
	movl	%ecx, %r15d
	movq	%rdx, %rbx
	movq	_QLCNIC_FLASH_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	decl	%r13d
	andl	%r14d, %r13d
	movq	_QLC_83XX_FLASH_DIRECT_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	andl	$-65536, %edx                   ## imm = 0xFFFF0000
	movq	%r12, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	leal	(%r13,%r15,4), %eax
	movq	_QLCNIC_FLASH_SECTOR_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_3
## %bb.8:
	testl	%r15d, %r15d
	jle	LBB0_12
## %bb.9:
	movq	_EIO@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_QLC_83XX_FLASH_DIRECT_DATA
	movq	%r12, %rdi
	movl	%eax, %esi
	leaq	-44(%rbp), %rdx
	callq	_QLCRD32
	movl	%eax, %ecx
	movl	-44(%rbp), %eax
	movl	(%r13), %edx
	addl	%eax, %edx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%ecx, (%rbx)
	addq	$16, %rbx
	addl	$4, %r14d
	decl	%r15d
	jne	LBB0_10
	jmp	LBB0_12
LBB0_3:
	testl	%r15d, %r15d
	jg	LBB0_4
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$16, %rbx
	decl	%r15d
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_QLC_83XX_FLASH_DIRECT_DATA
	movq	%r12, %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_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, (%rbx)
	addl	$4, %r14d
	addl	$4, %r13d
	movq	_QLCNIC_FLASH_SECTOR_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_QLC_83XX_FLASH_DIRECT_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_qlcnic_83xx_wrt_reg_indirect
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_FLASH_SECTOR_SIZE,4,2   ## @QLCNIC_FLASH_SECTOR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Illegal addr = 0x%x\n"

	.comm	_EIO,4,2                        ## @EIO
	.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_lockless_flash_read32 ; -- Begin function qlcnic_83xx_lockless_flash_read32
	.p2align	2
_qlcnic_83xx_lockless_flash_read32:     ; @qlcnic_83xx_lockless_flash_read32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x22, x0
	str	wzr, [sp, #12]
	tst	w1, #0x3
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_2:
	mov	x20, x3
	mov	x21, x2
Lloh5:
	adrp	x23, _QLCNIC_FLASH_SECTOR_SIZE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _QLCNIC_FLASH_SECTOR_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w8, w8, #1
	and	w25, w8, w19
Lloh7:
	adrp	x24, _QLC_83XX_FLASH_DIRECT_WINDOW@GOTPAGE
Lloh8:
	ldr	x24, [x24, _QLC_83XX_FLASH_DIRECT_WINDOW@GOTPAGEOFF]
	ldr	w1, [x24]
	and	w2, w19, #0xffff0000
	mov	x0, x22
	bl	_qlcnic_83xx_wrt_reg_indirect
	add	w8, w25, w20, lsl #2
	ldr	w9, [x23]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.3:
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.4:
Lloh9:
	adrp	x23, _EIO@GOTPAGE
Lloh10:
	ldr	x23, [x23, _EIO@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_QLC_83XX_FLASH_DIRECT_DATA
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x22
	bl	_QLCRD32
	mov	x8, x0
	ldr	w0, [sp, #12]
	ldr	w9, [x23]
	cmn	w0, w9
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w8, [x21], #16
	add	w19, w19, #4
	subs	w20, w20, #1
	b.ne	LBB0_5
	b	LBB0_13
LBB0_7:
	cmp	w20, #1
	b.lt	LBB0_13
; %bb.8:
Lloh11:
	adrp	x26, _EIO@GOTPAGE
Lloh12:
	ldr	x26, [x26, _EIO@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	subs	w20, w20, #1
	b.eq	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_QLC_83XX_FLASH_DIRECT_DATA
	mov	x1, x0
	add	x2, sp, #12
	mov	x0, x22
	bl	_QLCRD32
	mov	x8, x0
	ldr	w0, [sp, #12]
	ldr	w9, [x26]
	cmn	w0, w9
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	w8, [x21], #16
	add	w19, w19, #4
	add	w25, w25, #4
	ldr	w8, [x23]
	cmp	w25, w8
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w1, [x24]
	mov	x0, x22
	mov	x2, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
	mov	w25, #0
	b	LBB0_9
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_FLASH_SECTOR_SIZE,4,2   ; @QLCNIC_FLASH_SECTOR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Illegal addr = 0x%x\n"

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