	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_regs                ## -- Begin function be_cmd_get_regs
	.p2align	4, 0x90
_be_cmd_get_regs:                       ## @be_cmd_get_regs
	.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	$56, %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_9
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$61488, -56(%rbp)               ## imm = 0xF030
	movq	8(%rdi), %rdi
	leaq	-52(%rbp), %rdx
	movl	$61488, %esi                    ## imm = 0xF030
	callq	_pci_alloc_consistent
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movl	$8, %r15d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$61440, %esi                    ## imm = 0xF000
	movq	%r12, %rdi
	callq	_min
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_wrb_from_mccq
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 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_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	subq	%r13, %r12
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rcx,%rbx), %r14
	movq	%r15, %r12
	movl	8(%rax), %r15d
	movq	(%rax), %rdi
	callq	_le32_to_cpu
	movq	%r14, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	%r12, %r15
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	addq	%r13, %rbx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	addq	%r13, %r15
	testq	%r12, %r12
	jne	LBB0_4
	jmp	LBB0_8
LBB0_2:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_7:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_8:
	movq	8(%r14), %rdi
	movq	-48(%rbp), %rdx
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %ecx
	callq	_pci_free_consistent
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_9:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory allocation failure while retrieving FAT data\n"

	.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
L_.str.1:                               ## @.str.1
	.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_regs                ; -- Begin function be_cmd_get_regs
	.p2align	2
_be_cmd_get_regs:                       ; @be_cmd_get_regs
	.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_9
; %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
	mov	w1, #61488
	bl	_pci_alloc_consistent
	str	x0, [sp, #8]
	cbz	x0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x26, #0
	mov	w22, #8
Lloh0:
	adrp	x28, _OPCODE_COMMON_MANAGE_FAT@GOTPAGE
Lloh1:
	ldr	x28, [x28, _OPCODE_COMMON_MANAGE_FAT@GOTPAGEOFF]
Lloh2:
	adrp	x27, _RETRIEVE_FAT@GOTPAGE
Lloh3:
	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_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x4, x0
	ldr	x24, [sp, #8]
	add	x3, x23, #48
	add	x0, x24, #40
Lloh4:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh6:
	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_7
; %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
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	ldr	x0, [x19, #8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_8:
	ldr	x0, [x19, #8]
	ldr	x2, [sp, #8]
	ldp	w1, w3, [sp]
	bl	_pci_free_consistent
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_9:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory allocation failure while retrieving FAT data\n"

	.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
l_.str.1:                               ; @.str.1
	.asciz	"FAT Table Retrieve error\n"

.subsections_via_symbols
