	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efi_file_size
_efi_file_size:                         ## @efi_file_size
	.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	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rdx
	movq	%rdi, %r12
	movq	_EFI_FILE_INFO_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_efi_file_handle@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_open@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EFI_FILE_MODE_READ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r9
	movl	$0, (%rsp)
	leaq	-80(%rbp), %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_efi_call_proto
	movq	%rax, %rbx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_1
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rdx
	movq	%rdx, (%r15)
	movq	$0, -64(%rbp)
	movl	(%r13), %edi
	movq	_get_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rcx
	leaq	-64(%rbp), %r8
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	callq	_efi_call_proto
	movq	_EFI_BUFFER_TOO_SMALL@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.4:
	movq	_allocate_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFI_LOADER_DATA@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %r12
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_10
## %bb.5:
	leaq	-64(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	movq	_get_info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rdx
	movq	-72(%rbp), %r9
	leaq	-44(%rbp), %rcx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_efi_call_proto
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_free_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-72(%rbp), %rsi
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	_allocate_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EFI_LOADER_DATA@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	%rax, %rbx
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_6
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_efi_printk
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_efi_char16_printk
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_11
LBB0_3:
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %r12
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_11:
	movq	%r12, %rsi
	callq	_efi_printk
LBB0_12:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rax, %rbx
	movq	-72(%rbp), %rsi
	movl	(%rsi), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_free_pool@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%eax, %eax
	callq	_efi_call_early
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_12
## %bb.9:
	leaq	L_.str.4(%rip), %r12
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EFI_FILE_INFO_ID,4,2           ## @EFI_FILE_INFO_ID
	.comm	_efi_file_handle,4,2            ## @efi_file_handle
	.comm	_open,4,2                       ## @open
	.comm	_EFI_FILE_MODE_READ,4,2         ## @EFI_FILE_MODE_READ
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to open file: "

L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.comm	_get_info,4,2                   ## @get_info
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ## @EFI_BUFFER_TOO_SMALL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get file info size\n"

	.comm	_allocate_pool,4,2              ## @allocate_pool
	.comm	_EFI_LOADER_DATA,4,2            ## @EFI_LOADER_DATA
L_.str.3:                               ## @.str.3
	.asciz	"Failed to alloc mem for file info\n"

	.comm	_free_pool,4,2                  ## @free_pool
L_.str.4:                               ## @.str.4
	.asciz	"Failed to get initrd info\n"

	.no_dead_strip	_efi_file_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efi_file_size
_efi_file_size:                         ; @efi_file_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x27, x4
	mov	x23, x3
	mov	x22, x2
	mov	x2, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _EFI_FILE_INFO_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFI_FILE_INFO_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #44]
Lloh3:
	adrp	x24, _efi_file_handle@GOTPAGE
Lloh4:
	ldr	x24, [x24, _efi_file_handle@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh5:
	adrp	x8, _open@GOTPAGE
Lloh6:
	ldr	x8, [x8, _open@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _EFI_FILE_MODE_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFI_FILE_MODE_READ@GOTPAGEOFF]
Lloh10:
	ldrsw	x5, [x8]
	str	xzr, [sp]
	add	x3, sp, #56
	mov	x4, x22
	bl	_efi_call_proto
Lloh11:
	adrp	x25, _EFI_SUCCESS@GOTPAGE
Lloh12:
	ldr	x25, [x25, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.1:
	ldr	x2, [sp, #56]
	str	x2, [x23]
	str	xzr, [sp, #32]
	ldr	w0, [x24]
Lloh13:
	adrp	x8, _get_info@GOTPAGE
Lloh14:
	ldr	x8, [x8, _get_info@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x3, sp, #44
	add	x4, sp, #32
	mov	x5, #0
	bl	_efi_call_proto
Lloh16:
	adrp	x26, _EFI_BUFFER_TOO_SMALL@GOTPAGE
Lloh17:
	ldr	x26, [x26, _EFI_BUFFER_TOO_SMALL@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
Lloh18:
	adrp	x23, _allocate_pool@GOTPAGE
Lloh19:
	ldr	x23, [x23, _allocate_pool@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh20:
	adrp	x28, _EFI_LOADER_DATA@GOTPAGE
Lloh21:
	ldr	x28, [x28, _EFI_LOADER_DATA@GOTPAGEOFF]
	ldrsw	x1, [x28]
	ldr	x8, [sp, #32]
	add	x20, sp, #48
	stp	x8, x20, [sp]
	bl	_efi_call_early
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.3:
	str	x27, [sp, #24]                  ; 8-byte Folded Spill
Lloh22:
	adrp	x27, _free_pool@GOTPAGE
Lloh23:
	ldr	x27, [x27, _free_pool@GOTPAGEOFF]
Lloh24:
	adrp	x22, l_.str.3@PAGE
Lloh25:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
Lloh26:
	adrp	x8, _get_info@GOTPAGE
Lloh27:
	ldr	x8, [x8, _get_info@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldp	x5, x2, [sp, #48]
	add	x3, sp, #44
	add	x4, sp, #32
	bl	_efi_call_proto
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x27]
	ldr	x1, [sp, #48]
	bl	_efi_call_early
	ldr	w0, [x23]
	ldrsw	x1, [x28]
	ldr	x8, [sp, #32]
	stp	x8, x20, [sp]
	bl	_efi_call_early
	ldr	x8, [x25]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.6:
	mov	x21, x0
	b	LBB0_12
LBB0_7:
	mov	x21, x0
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_efi_printk
	mov	x0, x19
	mov	x1, x22
	bl	_efi_char16_printk
Lloh31:
	adrp	x22, l_.str.1@PAGE
Lloh32:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_8:
	mov	x21, x0
Lloh33:
	adrp	x22, l_.str.2@PAGE
Lloh34:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_9:
	mov	x21, x0
Lloh35:
	adrp	x22, l_.str.3@PAGE
Lloh36:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x21, x0
	ldr	x1, [sp, #48]
	ldr	w8, [x1]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w0, [x27]
	bl	_efi_call_early
	ldr	x8, [x25]
	cmp	x21, x8
	b.eq	LBB0_13
; %bb.11:
Lloh37:
	adrp	x22, l_.str.4@PAGE
Lloh38:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x1, x22
	bl	_efi_printk
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_EFI_FILE_INFO_ID,4,2           ; @EFI_FILE_INFO_ID
	.comm	_efi_file_handle,4,2            ; @efi_file_handle
	.comm	_open,4,2                       ; @open
	.comm	_EFI_FILE_MODE_READ,4,2         ; @EFI_FILE_MODE_READ
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to open file: "

l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.comm	_get_info,4,2                   ; @get_info
	.comm	_EFI_BUFFER_TOO_SMALL,8,3       ; @EFI_BUFFER_TOO_SMALL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get file info size\n"

	.comm	_allocate_pool,4,2              ; @allocate_pool
	.comm	_EFI_LOADER_DATA,4,2            ; @EFI_LOADER_DATA
l_.str.3:                               ; @.str.3
	.asciz	"Failed to alloc mem for file info\n"

	.comm	_free_pool,4,2                  ; @free_pool
l_.str.4:                               ; @.str.4
	.asciz	"Failed to get initrd info\n"

	.no_dead_strip	_efi_file_size
.subsections_via_symbols
