	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_read_flash_mfg_id  ## -- Begin function qlcnic_83xx_read_flash_mfg_id
	.p2align	4, 0x90
_qlcnic_83xx_read_flash_mfg_id:         ## @qlcnic_83xx_read_flash_mfg_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	callq	_qlcnic_83xx_lock_flash
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_QLC_83XX_FLASH_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLC_83XX_FLASH_FDT_READ_MFG_ID_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	_QLC_83XX_FLASH_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLC_83XX_FLASH_READ_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_poll_flash_status_reg
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_unlock_flash
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_QLC_83XX_FLASH_RDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_QLCRD32
	movl	-12(%rbp), %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_unlock_flash
	movl	-12(%rbp), %eax
	jmp	LBB0_7
LBB0_6:
	movzbl	%al, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_qlcnic_83xx_unlock_flash
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_QLC_83XX_FLASH_ADDR,4,2        ## @QLC_83XX_FLASH_ADDR
	.comm	_QLC_83XX_FLASH_FDT_READ_MFG_ID_VAL,4,2 ## @QLC_83XX_FLASH_FDT_READ_MFG_ID_VAL
	.comm	_QLC_83XX_FLASH_CONTROL,4,2     ## @QLC_83XX_FLASH_CONTROL
	.comm	_QLC_83XX_FLASH_READ_CTRL,4,2   ## @QLC_83XX_FLASH_READ_CTRL
	.comm	_QLC_83XX_FLASH_RDDATA,4,2      ## @QLC_83XX_FLASH_RDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_read_flash_mfg_id  ; -- Begin function qlcnic_83xx_read_flash_mfg_id
	.p2align	2
_qlcnic_83xx_read_flash_mfg_id:         ; @qlcnic_83xx_read_flash_mfg_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	wzr, [sp, #12]
	bl	_qlcnic_83xx_lock_flash
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _QLC_83XX_FLASH_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLC_83XX_FLASH_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _QLC_83XX_FLASH_FDT_READ_MFG_ID_VAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_FLASH_FDT_READ_MFG_ID_VAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
Lloh6:
	adrp	x8, _QLC_83XX_FLASH_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_83XX_FLASH_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _QLC_83XX_FLASH_READ_CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLC_83XX_FLASH_READ_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
	mov	x0, x19
	bl	_qlcnic_83xx_poll_flash_status_reg
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_flash
LBB0_3:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh15:
	adrp	x8, _QLC_83XX_FLASH_RDDATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLC_83XX_FLASH_RDDATA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_QLCRD32
	ldr	w8, [sp, #12]
Lloh18:
	adrp	x9, _EIO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EIO@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_flash
	ldr	w0, [sp, #12]
	b	LBB0_4
LBB0_7:
	and	w8, w0, #0xff
	str	w8, [x19]
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_flash
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_QLC_83XX_FLASH_ADDR,4,2        ; @QLC_83XX_FLASH_ADDR
	.comm	_QLC_83XX_FLASH_FDT_READ_MFG_ID_VAL,4,2 ; @QLC_83XX_FLASH_FDT_READ_MFG_ID_VAL
	.comm	_QLC_83XX_FLASH_CONTROL,4,2     ; @QLC_83XX_FLASH_CONTROL
	.comm	_QLC_83XX_FLASH_READ_CTRL,4,2   ; @QLC_83XX_FLASH_READ_CTRL
	.comm	_QLC_83XX_FLASH_RDDATA,4,2      ; @QLC_83XX_FLASH_RDDATA
.subsections_via_symbols
