	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function probe_handle
_probe_handle:                          ## @probe_handle
	.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, %ebx
	movq	_DevicePathGUID@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_OpenProtocolByHandle
	movq	_EFI_UNSUPPORTED@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	cmpq	(%r12), %rax
	je	LBB0_15
## %bb.1:
	movq	_EFI_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.2:
	movq	_BlockIoProtocolGUID@GOTPCREL(%rip), %rsi
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	callq	_OpenProtocolByHandle
	cmpq	(%r12), %rax
	je	LBB0_15
## %bb.3:
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.4:
	movq	-64(%rbp), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_15
## %bb.5:
	movq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_efi_devpath_same_disk
	movl	%eax, %r15d
	movl	$48, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %r12
	movq	-64(%rbp), %rax
	movq	%rax, 40(%r12)
	movq	-56(%rbp), %rax
	movq	%rax, 32(%r12)
	movl	%ebx, 24(%r12)
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, (%r12)
	movq	$0, 16(%r12)
	movq	_num_boot_modules@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.7:
	xorl	%r15d, %r15d
	movq	_boot_modules@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, 8(%r12)
	movq	(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	cmpq	(%r13), %rax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	movq	_num_boot_modules@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jb	LBB0_8
LBB0_10:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_11:
	movq	%rax, %rdi
	callq	_EFI_ERROR_CODE
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_12:
	movq	%rax, %rdi
	callq	_EFI_ERROR_CODE
	leaq	L_.str.1(%rip), %rdi
LBB0_13:
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DPRINTF
LBB0_14:
	movl	$-1, %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	jmp	LBB0_14
LBB0_17:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_DevicePathGUID,4,2             ## @DevicePathGUID
	.comm	_EFI_UNSUPPORTED,8,3            ## @EFI_UNSUPPORTED
	.comm	_EFI_SUCCESS,8,3                ## @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nFailed to query DevicePath (%lu)\n"

	.comm	_BlockIoProtocolGUID,4,2        ## @BlockIoProtocolGUID
L_.str.1:                               ## @.str.1
	.asciz	"\nFailed to query BlockIoProtocol (%lu)\n"

L_.str.2:                               ## @.str.2
	.asciz	"\nFailed to allocate devinfo\n"

	.comm	_num_boot_modules,8,3           ## @num_boot_modules
	.comm	_boot_modules,8,3               ## @boot_modules
	.no_dead_strip	_probe_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function probe_handle
_probe_handle:                          ; @probe_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x1, _DevicePathGUID@GOTPAGE
Lloh1:
	ldr	x1, [x1, _DevicePathGUID@GOTPAGEOFF]
	add	x2, sp, #16
	bl	_OpenProtocolByHandle
Lloh2:
	adrp	x21, _EFI_UNSUPPORTED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EFI_UNSUPPORTED@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x22, _EFI_SUCCESS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EFI_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh6:
	adrp	x1, _BlockIoProtocolGUID@GOTPAGE
Lloh7:
	ldr	x1, [x1, _BlockIoProtocolGUID@GOTPAGEOFF]
	add	x2, sp, #24
	mov	x0, x19
	bl	_OpenProtocolByHandle
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_15
LBB0_4:
	bl	_EFI_ERROR_CODE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_5:
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [sp, #24]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.7:
	ldr	x1, [sp, #16]
	mov	x0, x20
	bl	_efi_devpath_same_disk
	mov	x20, x0
	mov	w0, #48
	bl	_malloc
	cbz	x0, LBB0_16
; %bb.8:
	mov	x21, x0
	ldp	x9, x8, [sp, #16]
	stp	x9, x8, [x0, #32]
	str	w19, [x0, #24]
	str	w20, [x0]
	str	xzr, [x0, #16]
Lloh10:
	adrp	x19, _num_boot_modules@GOTPAGE
Lloh11:
	ldr	x19, [x19, _num_boot_modules@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.9:
	mov	x23, #0
Lloh12:
	adrp	x24, _boot_modules@GOTPAGE
Lloh13:
	ldr	x24, [x24, _boot_modules@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	str	xzr, [x21, #8]
	ldr	x8, [x24]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	ldr	x8, [x19]
	cmp	x23, x8
	b.lo	LBB0_10
LBB0_12:
	mov	x0, x21
	bl	_free
	b	LBB0_3
LBB0_13:
	bl	_EFI_ERROR_CODE
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	bl	_DPRINTF
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_16:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_17:
	add	w0, w20, #1
	b	LBB0_15
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_DevicePathGUID,4,2             ; @DevicePathGUID
	.comm	_EFI_UNSUPPORTED,8,3            ; @EFI_UNSUPPORTED
	.comm	_EFI_SUCCESS,8,3                ; @EFI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nFailed to query DevicePath (%lu)\n"

	.comm	_BlockIoProtocolGUID,4,2        ; @BlockIoProtocolGUID
l_.str.1:                               ; @.str.1
	.asciz	"\nFailed to query BlockIoProtocol (%lu)\n"

l_.str.2:                               ; @.str.2
	.asciz	"\nFailed to allocate devinfo\n"

	.comm	_num_boot_modules,8,3           ; @num_boot_modules
	.comm	_boot_modules,8,3               ; @boot_modules
	.no_dead_strip	_probe_handle
.subsections_via_symbols
