	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_dl_unload_all             ## -- Begin function grub_dl_unload_all
	.p2align	4, 0x90
_grub_dl_unload_all:                    ## @grub_dl_unload_all
	.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	_grub_dl_head@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	xorl	%eax, %eax
	callq	_grub_dl_unload_unneeded
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx), %rdx
	decl	(%rdx)
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%rax, %rax
	jne	LBB0_3
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_grub_dl_head,8,3               ## @grub_dl_head
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_dl_unload_all             ; -- Begin function grub_dl_unload_all
	.p2align	2
_grub_dl_unload_all:                    ; @grub_dl_unload_all
	.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
Lloh0:
	adrp	x19, _grub_dl_head@GOTPAGE
Lloh1:
	ldr	x19, [x19, _grub_dl_head@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_5
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	bl	_grub_dl_unload_unneeded
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x9, x8
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x10, [x9]
	ldr	w11, [x10]
	sub	w11, w11, #1
	str	w11, [x10]
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	x8, LBB0_1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_grub_dl_head,8,3               ; @grub_dl_head
.subsections_via_symbols
