	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __qlcnic_fw_cmd_get_minidump_temp
___qlcnic_fw_cmd_get_minidump_temp:     ## @__qlcnic_fw_cmd_get_minidump_temp
	.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
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	movq	(%rdi), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movl	%r14d, %esi
	callq	_dma_alloc_coherent
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_QLCNIC_CMD_GET_TEMP_HDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%r15, %rsi
	callq	_qlcnic_alloc_mbx_args
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_4:
	movl	-44(%rbp), %edi
	callq	_LSD
	movq	-56(%rbp), %rcx
	movl	%eax, 4(%rcx)
	movl	-44(%rbp), %edi
	callq	_MSD
	movq	-56(%rbp), %rcx
	movl	%eax, 8(%rcx)
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, 12(%rcx)
	leaq	-56(%rbp), %rsi
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_qlcnic_issue_cmd
	movl	%eax, %r13d
	movq	_QLCNIC_RCODE_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_8
## %bb.5:
	cmpl	$4, -48(%rbp)                   ## 4-byte Folded Reload
	jb	LBB0_8
## %bb.6:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	shrq	$2, %rax
	cmpq	$2, %rax
	movl	$1, %r14d
	cmovaeq	%rax, %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r15,4), %edi
	callq	___le32_to_cpu
	movl	%eax, (%r12,%r15,4)
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_7
LBB0_8:
	leaq	-56(%rbp), %rdi
	callq	_qlcnic_free_mbx_args
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_9:
	movq	(%r15), %rdi
	movl	-44(%rbp), %ecx
	movl	%r14d, %esi
	movq	%rbx, %rdx
	callq	_dma_free_coherent
LBB0_10:
	movl	%r13d, %eax
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't get memory for FW dump template\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_QLCNIC_CMD_GET_TEMP_HDR,4,2    ## @QLCNIC_CMD_GET_TEMP_HDR
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ## @QLCNIC_RCODE_SUCCESS
	.no_dead_strip	___qlcnic_fw_cmd_get_minidump_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __qlcnic_fw_cmd_get_minidump_temp
___qlcnic_fw_cmd_get_minidump_temp:     ; @__qlcnic_fw_cmd_get_minidump_temp
	.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, x2
	mov	x22, x1
	mov	x20, x0
	str	wzr, [sp, #4]
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #4
	mov	x1, x19
	bl	_dma_alloc_coherent
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x8, _QLCNIC_CMD_GET_TEMP_HDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_CMD_GET_TEMP_HDR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_qlcnic_alloc_mbx_args
	cbz	x0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_3:
	ldr	x0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_9
LBB0_4:
	ldr	w0, [sp, #4]
	bl	_LSD
	ldr	x8, [sp, #8]
	str	w0, [x8, #4]
	ldr	w0, [sp, #4]
	bl	_MSD
	ldr	x8, [sp, #8]
	stp	w0, w19, [x8, #8]
	add	x1, sp, #8
	mov	x0, x20
	bl	_qlcnic_issue_cmd
	mov	x23, x0
Lloh14:
	adrp	x8, _QLCNIC_RCODE_SUCCESS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QLCNIC_RCODE_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	ccmp	w19, #4, #0, eq
	b.lo	LBB0_7
; %bb.5:
	sxtw	x8, w19
	lsr	x8, x8, #2
	cmp	x8, #1
	csinc	x24, x8, xzr, hi
	mov	x25, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25], #4
	bl	___le32_to_cpu
	str	w0, [x22], #4
	subs	x24, x24, #1
	b.ne	LBB0_6
LBB0_7:
	add	x0, sp, #8
	bl	_qlcnic_free_mbx_args
LBB0_8:
	ldr	x0, [x20]
	ldr	w3, [sp, #4]
	mov	x1, x19
	mov	x2, x21
	bl	_dma_free_coherent
LBB0_9:
	mov	x0, x23
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't get memory for FW dump template\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_QLCNIC_CMD_GET_TEMP_HDR,4,2    ; @QLCNIC_CMD_GET_TEMP_HDR
	.comm	_QLCNIC_RCODE_SUCCESS,4,2       ; @QLCNIC_RCODE_SUCCESS
	.no_dead_strip	___qlcnic_fw_cmd_get_minidump_temp
.subsections_via_symbols
