	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geli_probe
_geli_probe:                            ## @geli_probe
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_G_ELI_USERKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	(,%r14,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_G_ELI_DATAIVKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	testq	%rbx, %rbx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	_G_ELI_DATAIVKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_explicit_bzero
	movq	%r12, %rbx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	movl	28(%r14), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_bcopy
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_bcopy
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	addq	$16, %rdi
	movq	_G_ELI_FLAG_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_14
## %bb.15:
	movq	_G_ELI_MAXKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r14), %r8d
	leaq	L_.str.3(%rip), %rdx
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_g_eli_crypto_hmac
	jmp	LBB0_16
LBB0_2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_geli_findkey
	testq	%rax, %rax
	movq	%r12, %rbx
	je	LBB0_13
## %bb.3:
	leaq	-56(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_g_eli_crypto_hmac_init
	leaq	32(%r14), %r13
	movq	32(%r14), %rdx
	testq	%rdx, %rdx
	js	LBB0_4
## %bb.5:
	je	LBB0_6
## %bb.7:
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	_G_ELI_USERKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%r13, %r12
	movq	%rsp, %r13
	leal	(,%r15,4), %r15d
	movq	40(%r14), %rdx
	movl	32(%r14), %r9d
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	$8, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_pkcs5v2_genkey
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_g_eli_crypto_hmac_update
	movq	%r13, %rdi
	movq	%r12, %r13
	movl	%r15d, %esi
	callq	_explicit_bzero
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_14:
	movl	24(%r14), %esi
	movq	_G_ELI_DATAKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bcopy
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_explicit_bzero
	xorl	%r13d, %r13d
	cmpl	$128, 12(%r14)
	je	LBB0_18
## %bb.17:
	leaq	20(%r14), %rbx
	movq	%rbx, %rdi
	callq	_SHA256_Init
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_SHA256_Update
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$1, %r13d
	jmp	LBB0_18
LBB0_6:
	movq	40(%r14), %rsi
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_g_eli_crypto_hmac_update
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_strlen
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_g_eli_crypto_hmac_update
LBB0_8:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	leaq	-56(%rbp), %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_g_eli_crypto_hmac_final
	leaq	-116(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_g_eli_mkey_decrypt_any
	testl	%eax, %eax
	movq	-104(%rbp), %r15                ## 8-byte Reload
	je	LBB0_12
## %bb.9:
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_explicit_bzero
	shll	$2, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_explicit_bzero
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$-1, %r13d
	jmp	LBB0_18
LBB0_12:
	movq	%r12, %rdi
	callq	_geli_add_key
	shll	$2, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_explicit_bzero
	jmp	LBB0_13
LBB0_11:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_explicit_bzero
	shll	$2, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_explicit_bzero
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_18
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_G_ELI_USERKEYLEN,4,2           ## @G_ELI_USERKEYLEN
	.comm	_G_ELI_DATAIVKEYLEN,4,2         ## @G_ELI_DATAIVKEYLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Calculating GELI Decryption Key for %s %d iterations...\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to decrypt GELI master key: %d\n"

	.comm	_G_ELI_FLAG_AUTH,4,2            ## @G_ELI_FLAG_AUTH
	.comm	_G_ELI_DATAKEYLEN,4,2           ## @G_ELI_DATAKEYLEN
	.comm	_G_ELI_MAXKEYLEN,4,2            ## @G_ELI_MAXKEYLEN
L_.str.3:                               ## @.str.3
	.asciz	"\020"

L_str:                                  ## @str
	.asciz	"Bad GELI key: bad password?"

	.no_dead_strip	_geli_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geli_probe
_geli_probe:                            ; @geli_probe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x24, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _G_ELI_USERKEYLEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _G_ELI_USERKEYLEN@GOTPAGEOFF]
	ldr	w27, [x25]
	lsl	x8, x27, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x26, _G_ELI_DATAIVKEYLEN@GOTPAGE
Lloh8:
	ldr	x26, [x26, _G_ELI_DATAIVKEYLEN@GOTPAGEOFF]
	ldr	w20, [x26]
	lsl	x8, x20, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cbz	x2, LBB0_5
; %bb.1:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	bl	_memcpy
	ldr	w1, [x26]
	mov	x0, x24
LBB0_2:
	bl	_explicit_bzero
LBB0_3:
	ldr	w1, [x19, #28]
	mov	x0, x21
	mov	w2, #4
	bl	_bcopy
	ldr	w1, [x19, #16]
	mov	x0, x21
	mov	w2, #4
	bl	_bcopy
	add	x0, x21, #16
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _G_ELI_FLAG_AUTH@GOTPAGE
Lloh12:
	ldr	x9, [x9, _G_ELI_FLAG_AUTH@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.4:
Lloh14:
	adrp	x8, _G_ELI_MAXKEYLEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _G_ELI_MAXKEYLEN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w4, [x19, #24]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w3, #1
	mov	w5, #0
	bl	_g_eli_crypto_hmac
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	bl	_geli_findkey
	cbz	x0, LBB0_3
; %bb.6:
	sub	x0, x29, #96
	mov	x1, #0
	mov	w2, #0
	bl	_g_eli_crypto_hmac_init
	mov	x24, x19
	ldr	x8, [x24, #32]!
	tbnz	x8, #63, LBB0_15
; %bb.7:
	cbz	x8, LBB0_16
; %bb.8:
	ldr	x9, [x19]
	stp	x9, x8, [sp, #-16]!
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	x28, sp
	ldr	w12, [x25]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	lsl	w26, w12, #2
	ldr	x2, [x19, #40]
	ldr	w5, [x19, #32]
	mov	x0, x25
	mov	x1, x26
	mov	w3, #8
	mov	x4, x23
	bl	_pkcs5v2_genkey
	sub	x0, x29, #96
	mov	x1, x25
	mov	x2, x26
	bl	_g_eli_crypto_hmac_update
	mov	x0, x25
	mov	x1, x26
	bl	_explicit_bzero
	mov	sp, x28
	b	LBB0_17
LBB0_9:
	ldr	w1, [x19, #24]
Lloh23:
	adrp	x8, _G_ELI_DATAKEYLEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _G_ELI_DATAKEYLEN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	bl	_bcopy
LBB0_10:
	lsl	w1, w20, #2
	mov	x0, x21
	bl	_explicit_bzero
	ldr	w8, [x19, #12]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.11:
	add	x20, x19, #20
	mov	x0, x20
	bl	_SHA256_Init
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	w2, #4
	bl	_SHA256_Update
LBB0_12:
	mov	w23, #0
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.14:
	mov	x0, x23
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	w23, #1
	b	LBB0_13
LBB0_16:
	ldr	x1, [x19, #40]
	sub	x0, x29, #96
	mov	w2, #8
	bl	_g_eli_crypto_hmac_update
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	sub	x0, x29, #96
	mov	x1, x23
	bl	_g_eli_crypto_hmac_update
LBB0_17:
	sub	x0, x29, #96
	mov	x1, x22
	mov	w2, #0
	bl	_g_eli_crypto_hmac_final
	sub	x3, x29, #92
	mov	x0, x24
	mov	x1, x22
	mov	x2, x21
	bl	_g_eli_mkey_decrypt_any
	cbz	w0, LBB0_20
; %bb.18:
	mov	x23, x0
	lsl	w1, w20, #2
	mov	x0, x21
	cmn	w23, #1
	b.ne	LBB0_21
; %bb.19:
	bl	_explicit_bzero
	lsl	w1, w27, #2
	mov	x0, x22
	bl	_explicit_bzero
Lloh29:
	adrp	x0, l_str@PAGE
Lloh30:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w23, #-1
	b	LBB0_13
LBB0_20:
	mov	x0, x22
	bl	_geli_add_key
	lsl	w1, w27, #2
	mov	x0, x22
	b	LBB0_2
LBB0_21:
	bl	_explicit_bzero
	lsl	w1, w27, #2
	mov	x0, x22
	bl	_explicit_bzero
	str	x23, [sp, #-16]!
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	b	LBB0_13
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_G_ELI_USERKEYLEN,4,2           ; @G_ELI_USERKEYLEN
	.comm	_G_ELI_DATAIVKEYLEN,4,2         ; @G_ELI_DATAIVKEYLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Calculating GELI Decryption Key for %s %d iterations...\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to decrypt GELI master key: %d\n"

	.comm	_G_ELI_FLAG_AUTH,4,2            ; @G_ELI_FLAG_AUTH
	.comm	_G_ELI_DATAKEYLEN,4,2           ; @G_ELI_DATAKEYLEN
	.comm	_G_ELI_MAXKEYLEN,4,2            ; @G_ELI_MAXKEYLEN
l_.str.3:                               ; @.str.3
	.asciz	"\020"

l_str:                                  ; @str
	.asciz	"Bad GELI key: bad password?"

	.no_dead_strip	_geli_probe
.subsections_via_symbols
