	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_partition_get_name        ## -- Begin function grub_partition_get_name
	.p2align	4, 0x90
_grub_partition_get_name:               ## @grub_partition_get_name
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	(%r12,%r14), %esi
	addl	$2, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_grub_realloc
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	movslq	%r12d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r13), %rdi
	incq	%rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_grub_memcpy
	movq	%rbx, %rsi
	leal	(%r12,%r14), %ebx
	incl	%ebx
	movslq	%ebx, %rax
	movb	$0, (%r13,%rax)
	movq	%r13, %rdi
	movl	%r12d, %edx
	callq	_grub_memcpy
	movq	%r13, %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	$44, (%rax,%rcx)
	movl	%ebx, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rsp
	movq	16(%r15), %r15
	movl	%r12d, %r14d
	testq	%r15, %r15
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rax
	movq	(%rax), %rdi
	callq	_grub_strlen
                                        ## kill: def $eax killed $eax def $rax
	movq	%rsp, %r13
	leal	25(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdi
	movq	(%r15), %r8
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	incq	%r8
	movl	%ebx, %esi
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdx
	callq	_grub_snprintf
	movq	%rbx, %rdi
	callq	_grub_strlen
	movl	%eax, %r12d
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_grub_free
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_grub_strdup
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_partition_get_name        ; -- Begin function grub_partition_get_name
	.p2align	2
_grub_partition_get_name:               ; @grub_partition_get_name
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	w22, #0
	mov	w25, #44
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w24, w22
	add	w1, w27, #2
	mov	x0, x20
	bl	_grub_realloc
	mov	x20, x0
	add	x28, x0, w24, sxtw
	add	x0, x28, #1
	mov	x1, x20
	mov	x2, x22
	bl	_grub_memcpy
	add	w22, w27, #1
	strb	wzr, [x20, w22, sxtw]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_grub_memcpy
	strb	w25, [x28]
	mov	x24, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	sp, x26
	ldr	x19, [x19, #16]
	mov	x22, x24
	cbz	x19, LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
	bl	_grub_strlen
	mov	x26, sp
	add	w1, w0, #25
	mov	x9, x1
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	ldp	x9, x8, [x19]
	ldr	x3, [x8]
	add	x4, x9, #1
	mov	x0, x23
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x21
	bl	_grub_snprintf
	mov	x0, x23
	bl	_grub_strlen
	mov	x24, x0
	cbnz	w22, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_grub_free
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_grub_strdup
	mov	x20, x0
	b	LBB0_3
LBB0_8:
	mov	x20, #0
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%d"

.subsections_via_symbols
