	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_fat_dump            ## -- Begin function be_cmd_get_fat_dump
	.p2align	4, 0x90
_be_cmd_get_fat_dump:                   ## @be_cmd_get_fat_dump
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$61488, -56(%rbp)               ## imm = 0xF030
	movq	8(%rdi), %rdi
	leaq	-52(%rbp), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$61488, %esi                    ## imm = 0xF030
	callq	_dma_alloc_coherent
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$8, %r15d
	xorl	%r12d, %r12d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$61440, %esi                    ## imm = 0xF000
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_min
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rbx
	leaq	48(%r13), %rcx
	leaq	40(%rbx), %rdi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	_OPCODE_COMMON_MANAGE_FAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%rax, %r8
	leaq	-56(%rbp), %r9
	callq	_be_wrb_cmd_hdr_prepare
	movq	_RETRIEVE_FAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_cpu_to_le32
	movq	%rax, 32(%rbx)
	movq	%r15, %rdi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movq	%r13, %rdi
	callq	_cpu_to_le32
	movq	%rax, (%rbx)
	movq	%r13, %rdi
	callq	_cpu_to_le32
	movq	%rax, 16(%rbx)
	movq	%r14, %rdi
	callq	_be_mcc_notify_wait
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	subq	%r13, %rbx
	movq	-48(%rbp), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r12), %r15
	movl	8(%rax), %r14d
	movq	(%rax), %rdi
	callq	_le32_to_cpu
	movq	%r15, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_memcpy
	addq	%r13, %r12
	addq	%r13, %r15
	testq	%rbx, %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_5
## %bb.9:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_11:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	-48(%rbp), %rdx
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %ecx
	callq	_dma_free_coherent
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_MANAGE_FAT,4,2   ## @OPCODE_COMMON_MANAGE_FAT
	.comm	_RETRIEVE_FAT,8,3               ## @RETRIEVE_FAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAT Table Retrieve error\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_fat_dump            ; -- Begin function be_cmd_get_fat_dump
	.p2align	2
_be_cmd_get_fat_dump:                   ; @be_cmd_get_fat_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x1, LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w8, #61488
	str	w8, [sp]
	ldr	x0, [x0, #8]
	mov	x8, sp
	orr	x2, x8, #0x4
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w1, #61488
	bl	_dma_alloc_coherent
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_mutex_lock
	mov	x26, #0
	mov	w22, #8
Lloh3:
	adrp	x28, _OPCODE_COMMON_MANAGE_FAT@GOTPAGE
Lloh4:
	ldr	x28, [x28, _OPCODE_COMMON_MANAGE_FAT@GOTPAGEOFF]
Lloh5:
	adrp	x27, _RETRIEVE_FAT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _RETRIEVE_FAT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	w1, #61440
	bl	_min
	mov	x23, x0
	mov	x0, x19
	bl	_wrb_from_mccq
	cbz	x0, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, x0
	ldr	x24, [sp, #8]
	add	x3, x23, #48
	add	x0, x24, #40
Lloh7:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x28]
	mov	x5, sp
	bl	_be_wrb_cmd_hdr_prepare
	ldr	x0, [x27]
	bl	_cpu_to_le32
	str	x0, [x24, #32]
	mov	x0, x22
	bl	_cpu_to_le32
	str	x0, [x24, #24]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x24]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x24, #16]
	mov	x0, x19
	bl	_be_mcc_notify_wait
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x21, x21, x23
	ldr	x8, [sp, #8]
	add	x24, x20, x26
	ldr	w25, [x8, #8]
	ldr	x0, [x8]
	bl	_le32_to_cpu
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_memcpy
	add	x26, x23, x26
	add	x22, x23, x22
	cbnz	x21, LBB0_3
; %bb.6:
	mov	w24, #0
	b	LBB0_11
LBB0_7:
	mov	w24, #0
	b	LBB0_12
LBB0_8:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_9:
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_11
LBB0_10:
	mov	x24, x0
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_11:
	ldr	x0, [x19, #8]
	ldr	x2, [sp, #8]
	ldp	w1, w3, [sp]
	bl	_dma_free_coherent
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_MANAGE_FAT,4,2   ; @OPCODE_COMMON_MANAGE_FAT
	.comm	_RETRIEVE_FAT,8,3               ; @RETRIEVE_FAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAT Table Retrieve error\n"

.subsections_via_symbols
