	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_83xx_sysfs_flash_write
_qlcnic_83xx_sysfs_flash_write:         ## @qlcnic_83xx_sysfs_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %rdi
	movl	$1, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %r13
	shrq	$2, %r13
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_qlcnic_swap32_buffer
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_qlcnic_83xx_lock_flash
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	jmp	LBB0_16
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_4:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_enable_flash_write
	testl	%eax, %eax
	jne	LBB0_15
LBB0_6:
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.7:
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_qlcnic_83xx_flash_write32
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %rbx
	addl	$4, %r12d
	decl	%r13d
	jne	LBB0_8
LBB0_10:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_disable_flash_write
	testl	%eax, %eax
	jne	LBB0_15
LBB0_12:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_qlcnic_83xx_unlock_flash
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_13:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_qlcnic_83xx_disable_flash_write
	testl	%eax, %eax
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_qlcnic_83xx_unlock_flash
LBB0_16:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_17:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_83xx_sysfs_flash_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_83xx_sysfs_flash_write
_qlcnic_83xx_sysfs_flash_write:         ; @qlcnic_83xx_sysfs_flash_write
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x3
	mov	w1, #1
	bl	_kcalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	lsr	x21, x23, #2
	mov	x0, x24
	mov	x1, x21
	bl	_qlcnic_swap32_buffer
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_memcpy
	mov	x0, x19
	bl	_qlcnic_83xx_lock_flash
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_kfree
	b	LBB0_16
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_qlcnic_83xx_enable_flash_write
	cbnz	w0, LBB0_15
LBB0_6:
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x23, #0
	mov	w22, w22
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w1, w22, w23
	add	x2, x20, x23
	mov	x0, x19
	bl	_qlcnic_83xx_flash_write32
	cbnz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #4
	subs	w21, w21, #1
	b.ne	LBB0_8
LBB0_10:
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_qlcnic_83xx_disable_flash_write
	cbnz	w0, LBB0_15
LBB0_12:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_flash
	mov	w0, #0
	b	LBB0_18
LBB0_13:
	ldp	x9, x8, [x19]
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_qlcnic_83xx_disable_flash_write
LBB0_15:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_qlcnic_83xx_unlock_flash
LBB0_16:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_83xx_sysfs_flash_write
.subsections_via_symbols
