	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_affs_label
_grub_affs_label:                       ## @grub_affs_label
	.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), %rbx
	movq	_my_mod@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_grub_dl_ref
	movq	%rbx, %rdi
	callq	_grub_affs_mount
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%r15), %edi
	movl	(%rbx), %esi
	sarl	%esi
	movq	_GRUB_DISK_SECTOR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GRUB_AFFS_FILE_LOCATION@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	imull	(%r15), %edx
	leaq	-48(%rbp), %r8
	movl	$16, %ecx
	callq	_grub_disk_read
	movq	_grub_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	-40(%rbp), %rdi
	movl	-48(%rbp), %esi
	callq	_grub_strndup
LBB0_5:
	movq	%rax, (%r14)
	movl	(%r12), %edi
	callq	_grub_dl_unref
	movq	%r15, %rdi
	callq	_grub_free
	movq	_grub_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_my_mod,4,2                     ## @my_mod
	.comm	_GRUB_DISK_SECTOR_SIZE,4,2      ## @GRUB_DISK_SECTOR_SIZE
	.comm	_GRUB_AFFS_FILE_LOCATION,4,2    ## @GRUB_AFFS_FILE_LOCATION
	.comm	_grub_errno,8,3                 ## @grub_errno
	.no_dead_strip	_grub_affs_label
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_affs_label
_grub_affs_label:                       ; @grub_affs_label
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x22, _my_mod@GOTPAGE
Lloh1:
	ldr	x22, [x22, _my_mod@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_grub_dl_ref
	mov	x0, x21
	bl	_grub_affs_mount
	mov	x20, x0
Lloh2:
	adrp	x23, _grub_errno@GOTPAGE
Lloh3:
	ldr	x23, [x23, _grub_errno@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	asr	w1, w8, #1
	ldp	w8, w0, [x20]
Lloh4:
	adrp	x9, _GRUB_DISK_SECTOR_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GRUB_DISK_SECTOR_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _GRUB_AFFS_FILE_LOCATION@GOTPAGE
Lloh8:
	ldr	x10, [x10, _GRUB_AFFS_FILE_LOCATION@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	sub	w9, w9, w10
	mul	w2, w9, w8
	mov	x4, sp
	mov	w3, #16
	bl	_grub_disk_read
	ldr	x8, [x23]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, #0
	b	LBB0_5
LBB0_3:
	ldr	x0, [sp, #8]
	ldr	w1, [sp]
	bl	_grub_strndup
LBB0_4:
	str	x0, [x19]
	ldr	w0, [x22]
	bl	_grub_dl_unref
	mov	x0, x20
	bl	_grub_free
	ldr	x0, [x23]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_my_mod,4,2                     ; @my_mod
	.comm	_GRUB_DISK_SECTOR_SIZE,4,2      ; @GRUB_DISK_SECTOR_SIZE
	.comm	_GRUB_AFFS_FILE_LOCATION,4,2    ; @GRUB_AFFS_FILE_LOCATION
	.comm	_grub_errno,8,3                 ; @grub_errno
	.no_dead_strip	_grub_affs_label
.subsections_via_symbols
