	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_dl_resolve_symbols
_grub_dl_resolve_symbols:               ## @grub_dl_resolve_symbols
	.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	%rsi, %r15
	movl	%edi, %r14d
	movslq	(%rsi), %r12
	addq	%rsi, %r12
	movslq	4(%rsi), %rax
	movq	(%rsi,%rax), %rsi
	movq	_GRUB_OBJ_SEGMENT_END@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rsi
	je	LBB0_5
## %bb.1:
	leaq	(%r15,%rax), %rbx
	addq	$16, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_grub_dl_get_section_addr
	movslq	-4(%rbx), %rsi
	addq	%rax, %rsi
	movslq	-8(%rbx), %rdi
	addq	%r12, %rdi
	movl	%r14d, %edx
	callq	_grub_dl_register_symbol
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rsi
	addq	$16, %rbx
	cmpq	(%r13), %rsi
	jne	LBB0_3
LBB0_5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movslq	8(%r15), %rcx
	movq	(%r15,%rcx), %rax
	cmpq	%rsi, %rax
	je	LBB0_13
## %bb.6:
	addq	%rcx, %r15
	movq	_GRUB_OBJ_REL_TYPE_MASK@GOTPCREL(%rip), %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%rax, %rsi
	callq	_grub_dl_get_section_addr
	movq	%rax, %r12
	movslq	28(%r15), %rcx
	movq	%r13, %rax
	movl	8(%r15), %r13d
	movl	%r14d, %edi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	(%r12,%rcx), %r14d
	movq	16(%r15), %rsi
	cmpq	(%rax), %rsi
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movslq	24(%r15), %rbx
	addq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, %rdi
	callq	_grub_dl_resolve_symbol
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$32, %r15
	movq	_GRUB_OBJ_REL_TYPE_MASK@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	callq	_grub_dl_get_section_addr
	addq	$4, %r15
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rbx), %edx
	andl	%r13d, %edx
	cmpl	$133, %edx
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	addq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	_GRUB_OBJ_REL_FLAG_REL@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r13d
	addl	%eax, %r14d
	testl	%r13d, %r13d
	cmovnel	%r12d, %r13d
	subl	%r13d, %r14d
	movl	%r14d, (%r12)
	movq	(%r15), %rax
	movq	_GRUB_OBJ_SEGMENT_END@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_7
LBB0_13:
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	movq	_grub_errno@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_GRUB_ERR_BAD_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grub_error                     ## TAILCALL
LBB0_15:
	movq	_GRUB_ERR_BAD_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grub_error                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_OBJ_SEGMENT_END,8,3       ## @GRUB_OBJ_SEGMENT_END
	.comm	_grub_errno,4,2                 ## @grub_errno
	.comm	_GRUB_ERR_BAD_MODULE,4,2        ## @GRUB_ERR_BAD_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"symbol not found: `%s'"

	.comm	_GRUB_OBJ_REL_FLAG_REL,4,2      ## @GRUB_OBJ_REL_FLAG_REL
	.comm	_GRUB_OBJ_REL_TYPE_MASK,4,2     ## @GRUB_OBJ_REL_TYPE_MASK
L_.str.1:                               ## @.str.1
	.asciz	"unknown reloc type %d"

	.comm	_GRUB_ERR_NONE,4,2              ## @GRUB_ERR_NONE
	.no_dead_strip	_grub_dl_resolve_symbols
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_dl_resolve_symbols
_grub_dl_resolve_symbols:               ; @grub_dl_resolve_symbols
	.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
	mov	x20, x1
	mov	x19, x0
	ldpsw	x9, x8, [x1]
	add	x21, x1, x9
	ldr	x1, [x1, x8]
Lloh0:
	adrp	x22, _GRUB_OBJ_SEGMENT_END@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GRUB_OBJ_SEGMENT_END@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x1, x9
	b.eq	LBB0_4
; %bb.1:
	add	x8, x20, x8
	add	x23, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_grub_dl_get_section_addr
	ldpsw	x9, x8, [x23, #-8]
	add	x1, x0, x8
	add	x0, x21, x9
	mov	x2, x19
	bl	_grub_dl_register_symbol
	cbnz	x0, LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x23], #16
	ldr	x8, [x22]
	cmp	x1, x8
	b.ne	LBB0_2
LBB0_4:
	ldrsw	x8, [x20, #8]
	add	x23, x20, x8
	ldr	x8, [x23]
	cmp	x8, x1
	b.eq	LBB0_12
; %bb.5:
Lloh2:
	adrp	x24, _GRUB_OBJ_REL_TYPE_MASK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GRUB_OBJ_REL_TYPE_MASK@GOTPAGEOFF]
Lloh4:
	adrp	x25, _GRUB_OBJ_REL_FLAG_REL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _GRUB_OBJ_REL_FLAG_REL@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x8
	bl	_grub_dl_get_section_addr
	ldrsw	x8, [x23, #28]
	add	x26, x0, x8
	ldr	w28, [x23, #8]
	ldr	w27, [x26]
	ldr	x1, [x23, #16]
	ldr	x8, [x22]
	cmp	x1, x8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x23, #24]
	add	x20, x21, x8
	mov	x0, x20
	bl	_grub_dl_resolve_symbol
	cbz	x0, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #32
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	_grub_dl_get_section_addr
	add	x23, x23, #4
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	and	w8, w8, w28
	cmp	w8, #133
	b.ne	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	tst	w8, w28
	csel	w8, wzr, w26, eq
	add	w9, w27, w0
	sub	w8, w9, w8
	str	w8, [x26]
	ldr	x8, [x23]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_6
LBB0_12:
Lloh6:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh8:
	adrp	x8, _grub_errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	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
LBB0_16:
Lloh10:
	adrp	x9, _GRUB_ERR_BAD_MODULE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GRUB_ERR_BAD_MODULE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_grub_error
	b	LBB0_15
LBB0_17:
Lloh15:
	adrp	x8, _GRUB_ERR_BAD_MODULE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GRUB_ERR_BAD_MODULE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_grub_error
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_OBJ_SEGMENT_END,8,3       ; @GRUB_OBJ_SEGMENT_END
	.comm	_grub_errno,4,2                 ; @grub_errno
	.comm	_GRUB_ERR_BAD_MODULE,4,2        ; @GRUB_ERR_BAD_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"symbol not found: `%s'"

	.comm	_GRUB_OBJ_REL_FLAG_REL,4,2      ; @GRUB_OBJ_REL_FLAG_REL
	.comm	_GRUB_OBJ_REL_TYPE_MASK,4,2     ; @GRUB_OBJ_REL_TYPE_MASK
l_.str.1:                               ; @.str.1
	.asciz	"unknown reloc type %d"

	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
	.no_dead_strip	_grub_dl_resolve_symbols
.subsections_via_symbols
