	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_fat_dump_len        ## -- Begin function be_cmd_get_fat_dump_len
	.p2align	4, 0x90
_be_cmd_get_fat_dump_len:               ## @be_cmd_get_fat_dump_len
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -40(%rbp)
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	callq	_embedded_payload
	movq	%rax, %rbx
	leaq	4(%rax), %rdi
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPCODE_COMMON_MANAGE_FAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$8, %ecx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movq	_QUERY_FAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, (%rbx)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_be_cmd_notify_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	-40(%rbp), %rdi
	callq	_embedded_payload
	testq	%r14, %r14
	je	LBB0_4
## %bb.2:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_le32_to_cpu
	addq	$-8, %rax
	movq	%rax, (%r14)
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_MANAGE_FAT,4,2   ## @OPCODE_COMMON_MANAGE_FAT
	.comm	_QUERY_FAT,4,2                  ## @QUERY_FAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_fat_dump_len        ; -- Begin function be_cmd_get_fat_dump_len
	.p2align	2
_be_cmd_get_fat_dump_len:               ; @be_cmd_get_fat_dump_len
	.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	x19, x1
	mov	x20, x0
	str	wzr, [sp, #8]
	add	x0, sp, #8
	bl	_embedded_payload
	mov	x21, x0
	add	x0, x0, #4
Lloh0:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OPCODE_COMMON_MANAGE_FAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_COMMON_MANAGE_FAT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	w3, #8
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
Lloh6:
	adrp	x8, _QUERY_FAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QUERY_FAT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [x21]
	add	x1, sp, #8
	mov	x0, x20
	bl	_be_cmd_notify_wait
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
	add	x0, sp, #8
	bl	_embedded_payload
	cbz	x19, LBB0_4
; %bb.2:
	ldr	x0, [x0]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_le32_to_cpu
	sub	x8, x0, #8
	str	x8, [x19]
LBB0_4:
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_MANAGE_FAT,4,2   ; @OPCODE_COMMON_MANAGE_FAT
	.comm	_QUERY_FAT,4,2                  ; @QUERY_FAT
.subsections_via_symbols
