	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fw_cfg_register_dir_entries
_fw_cfg_register_dir_entries:           ## @fw_cfg_register_dir_entries
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FW_CFG_FILE_DIR@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	-48(%rbp), %rsi
	movl	$4, %ecx
	xorl	%edx, %edx
	callq	_fw_cfg_read_blob
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-48(%rbp), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movslq	%eax, %rbx
	shlq	$2, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movl	(%r13), %edi
	movq	%rax, %rsi
	movl	$4, %edx
	movq	%rbx, %rcx
	callq	_fw_cfg_read_blob
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.6:
	movl	%r15d, %r15d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_fw_cfg_register_file
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %rbx
	decq	%r15
	jne	LBB0_7
## %bb.9:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_1:
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_10:
	movl	%eax, %r12d
LBB0_11:
	movq	%r14, %rdi
	callq	_kfree
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_CFG_FILE_DIR,4,2            ## @FW_CFG_FILE_DIR
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fw_cfg_register_dir_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fw_cfg_register_dir_entries
_fw_cfg_register_dir_entries:           ; @fw_cfg_register_dir_entries
	.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
Lloh0:
	adrp	x22, _FW_CFG_FILE_DIR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FW_CFG_FILE_DIR@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #8
	mov	w2, #0
	mov	w3, #4
	bl	_fw_cfg_read_blob
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	w0, [sp, #8]
	bl	_be32_to_cpu
	mov	x21, x0
	sbfiz	x20, x21, #2, #32
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kmalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	w0, [x22]
	mov	x1, x19
	mov	w2, #4
	mov	x3, x20
	bl	_fw_cfg_read_blob
	mov	x20, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.4:
	mov	w22, w21
	mov	x21, x19
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_fw_cfg_register_file
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #4
	subs	x22, x22, #1
	b.ne	LBB0_5
; %bb.7:
	mov	w20, #0
	b	LBB0_11
LBB0_8:
	mov	x20, x0
	b	LBB0_12
LBB0_9:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_10:
	mov	x20, x0
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_CFG_FILE_DIR,4,2            ; @FW_CFG_FILE_DIR
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fw_cfg_register_dir_entries
.subsections_via_symbols
