	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_fw_get_minidump_temp_size
_qlcnic_fw_get_minidump_temp_size:      ## @qlcnic_fw_get_minidump_temp_size
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_QLCNIC_CMD_TEMP_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_qlcnic_alloc_mbx_args
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_issue_cmd
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.3:
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_qlcnic_fw_flash_get_minidump_temp_size
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	jmp	LBB0_7
LBB0_5:
	movl	$1, (%r15)
LBB0_6:
	movq	-40(%rbp), %rax
	movl	8(%rax), %ecx
	movl	%ecx, (%r12)
	movl	12(%rax), %eax
	movl	%eax, (%r14)
	leaq	-40(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	xorl	%eax, %eax
	cmpl	$0, (%r12)
	jne	LBB0_9
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_CMD_TEMP_SIZE,4,2       ## @QLCNIC_CMD_TEMP_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_fw_get_minidump_temp_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_fw_get_minidump_temp_size
_qlcnic_fw_get_minidump_temp_size:      ; @qlcnic_fw_get_minidump_temp_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _QLCNIC_CMD_TEMP_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLCNIC_CMD_TEMP_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x22
	bl	_qlcnic_alloc_mbx_args
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	add	x1, sp, #8
	mov	x0, x22
	bl	_qlcnic_issue_cmd
Lloh5:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.3:
	add	x1, sp, #8
	mov	x0, x22
	bl	_qlcnic_fw_flash_get_minidump_temp_size
	cbz	x0, LBB0_5
; %bb.4:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
	b	LBB0_8
LBB0_5:
	mov	w8, #1
	str	w8, [x21]
LBB0_6:
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #8]
	str	w9, [x19]
	ldr	w8, [x8, #12]
	str	w8, [x20]
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_CMD_TEMP_SIZE,4,2       ; @QLCNIC_CMD_TEMP_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_fw_get_minidump_temp_size
.subsections_via_symbols
