	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_disable_flash_write ## -- Begin function qlcnic_83xx_disable_flash_write
	.p2align	4, 0x90
_qlcnic_83xx_disable_flash_write:       ## @qlcnic_83xx_disable_flash_write
	.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
	movq	_QLC_83XX_FLASH_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_QLC_83XX_FLASH_FDT_WRITE_DEF_SIG@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_qlcnic_83xx_wrt_reg_indirect
	movq	_QLC_83XX_FLASH_WRDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	4(%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_SECOND_ERASE_MS_VAL@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
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%eax, %eax
	cmovnel	%edx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLC_83XX_FLASH_ADDR,4,2        ## @QLC_83XX_FLASH_ADDR
	.comm	_QLC_83XX_FLASH_FDT_WRITE_DEF_SIG,4,2 ## @QLC_83XX_FLASH_FDT_WRITE_DEF_SIG
	.comm	_QLC_83XX_FLASH_WRDATA,4,2      ## @QLC_83XX_FLASH_WRDATA
	.comm	_QLC_83XX_FLASH_CONTROL,4,2     ## @QLC_83XX_FLASH_CONTROL
	.comm	_QLC_83XX_FLASH_SECOND_ERASE_MS_VAL,4,2 ## @QLC_83XX_FLASH_SECOND_ERASE_MS_VAL
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_disable_flash_write ; -- Begin function qlcnic_83xx_disable_flash_write
	.p2align	2
_qlcnic_83xx_disable_flash_write:       ; @qlcnic_83xx_disable_flash_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
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_WRITE_DEF_SIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLC_83XX_FLASH_FDT_WRITE_DEF_SIG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0]
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_qlcnic_83xx_wrt_reg_indirect
Lloh6:
	adrp	x8, _QLC_83XX_FLASH_WRDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLC_83XX_FLASH_WRDATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	w2, [x8, #4]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
Lloh9:
	adrp	x8, _QLC_83XX_FLASH_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLC_83XX_FLASH_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _QLC_83XX_FLASH_SECOND_ERASE_MS_VAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QLC_83XX_FLASH_SECOND_ERASE_MS_VAL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_qlcnic_83xx_wrt_reg_indirect
	mov	x0, x19
	bl	_qlcnic_83xx_poll_flash_status_reg
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QLC_83XX_FLASH_ADDR,4,2        ; @QLC_83XX_FLASH_ADDR
	.comm	_QLC_83XX_FLASH_FDT_WRITE_DEF_SIG,4,2 ; @QLC_83XX_FLASH_FDT_WRITE_DEF_SIG
	.comm	_QLC_83XX_FLASH_WRDATA,4,2      ; @QLC_83XX_FLASH_WRDATA
	.comm	_QLC_83XX_FLASH_CONTROL,4,2     ; @QLC_83XX_FLASH_CONTROL
	.comm	_QLC_83XX_FLASH_SECOND_ERASE_MS_VAL,4,2 ; @QLC_83XX_FLASH_SECOND_ERASE_MS_VAL
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
