	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_dl_register_symbol        ## -- Begin function grub_dl_register_symbol
	.p2align	4, 0x90
_grub_dl_register_symbol:               ## @grub_dl_register_symbol
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$32, %edi
	callq	_grub_malloc
	movq	_grub_errno@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_grub_strdup
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_grub_free
	jmp	LBB0_6
LBB0_4:
	movq	%r14, (%rbx)
LBB0_5:
	movq	%r12, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	%r14, %rdi
	callq	_grub_symbol_hash
	movq	_grub_symtab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, %eax
	movq	(%rcx,%rax,8), %rdx
	movq	%rdx, 8(%rbx)
	movq	%rbx, (%rcx,%rax,8)
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %r13
LBB0_6:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_errno,4,2                 ## @grub_errno
	.comm	_grub_symtab,8,3                ## @grub_symtab
	.comm	_GRUB_ERR_NONE,4,2              ## @GRUB_ERR_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_dl_register_symbol        ; -- Begin function grub_dl_register_symbol
	.p2align	2
_grub_dl_register_symbol:               ; @grub_dl_register_symbol
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	mov	w0, #32
	bl	_grub_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	cbz	x21, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_grub_strdup
	str	x0, [x19]
	cbnz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_grub_free
LBB0_4:
Lloh0:
	adrp	x8, _grub_errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	str	x20, [x19]
LBB0_6:
	stp	x21, x22, [x19, #16]
	mov	x0, x20
	bl	_grub_symbol_hash
Lloh2:
	adrp	x8, _grub_symtab@GOTPAGE
Lloh3:
	ldr	x8, [x8, _grub_symtab@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	mov	w9, w0
	lsl	x9, x9, #3
	ldr	x10, [x8, x9]
	str	x10, [x19, #8]
	str	x19, [x8, x9]
Lloh5:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_errno,4,2                 ; @grub_errno
	.comm	_grub_symtab,8,3                ; @grub_symtab
	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
.subsections_via_symbols
