	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_dl_add                    ## -- Begin function grub_dl_add
	.p2align	4, 0x90
_grub_dl_add:                           ## @grub_dl_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_grub_dl_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_GRUB_ERR_BAD_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_grub_error                     ## TAILCALL
LBB0_1:
	movl	$16, %edi
	callq	_grub_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, 8(%rax)
	movq	_grub_dl_head@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, (%rax)
	movq	%rax, (%rcx)
	movq	_GRUB_ERR_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_grub_errno@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_ERR_BAD_MODULE,4,2        ## @GRUB_ERR_BAD_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"`%s' is already loaded"

	.comm	_grub_errno,4,2                 ## @grub_errno
	.comm	_grub_dl_head,8,3               ## @grub_dl_head
	.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_add                    ; -- Begin function grub_dl_add
	.p2align	2
_grub_dl_add:                           ; @grub_dl_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
	bl	_grub_dl_get
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GRUB_ERR_BAD_MODULE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRUB_ERR_BAD_MODULE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_grub_error
LBB0_2:
	mov	w0, #16
	bl	_grub_malloc
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _grub_dl_head@GOTPAGE
Lloh6:
	ldr	x8, [x8, _grub_dl_head@GOTPAGEOFF]
	ldr	x9, [x8]
	stp	x9, x19, [x0]
	str	x0, [x8]
Lloh7:
	adrp	x8, _GRUB_ERR_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GRUB_ERR_NONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _grub_errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _grub_errno@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_ERR_BAD_MODULE,4,2        ; @GRUB_ERR_BAD_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"`%s' is already loaded"

	.comm	_grub_errno,4,2                 ; @grub_errno
	.comm	_grub_dl_head,8,3               ; @grub_dl_head
	.comm	_GRUB_ERR_NONE,4,2              ; @GRUB_ERR_NONE
.subsections_via_symbols
