	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geli_read                      ## -- Begin function geli_read
	.p2align	4, 0x90
_geli_read:                             ## @geli_read
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_G_ELI_IVKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	cmpq	%r14, %rcx
	movl	$1, %r13d
	cmovbeq	%rax, %r13
	cmovbq	%rcx, %r14
	testq	%r13, %r13
	je	LBB0_12
## %bb.4:
	decq	%r13
	leaq	(,%r14,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_g_eli_crypto_ivgen
	movq	_G_ELI_KEY_SHIFT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%r15, %rax
	shrq	%cl, %rax
	movq	%rax, %rcx
	orq	%r14, %rcx
	shrq	$32, %rcx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%edx, %edx
	divq	%r14
	movq	%rax, %rdx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_g_eli_key_fill
	movl	8(%r12), %r9d
	movl	12(%r12), %edi
	movl	-56(%rbp), %r8d
	subq	$8, %rsp
	xorl	%esi, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_geliboot_crypt
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	subq	$1, %r13
	jb	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	%r14, %r15
	movq	_G_ELI_IVKEYLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	%rax, -64(%rbp)                 ## 8-byte Folded Spill
	jmp	LBB0_5
LBB0_12:
	leaq	-56(%rbp), %rdi
	movl	$4, %esi
	callq	_explicit_bzero
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	movl	$4, %esi
	callq	_explicit_bzero
	leaq	L_.str(%rip), %rdi
	callq	_printf
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_G_ELI_IVKEYLEN,4,2             ## @G_ELI_IVKEYLEN
	.comm	_G_ELI_KEY_SHIFT,8,3            ## @G_ELI_KEY_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to decrypt in geli_read()!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_geli_read                      ; -- Begin function geli_read
	.p2align	2
_geli_read:                             ; @geli_read
	.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	x8, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-88]
Lloh3:
	adrp	x25, _G_ELI_IVKEYLEN@GOTPAGE
Lloh4:
	ldr	x25, [x25, _G_ELI_IVKEYLEN@GOTPAGEOFF]
	ldr	w3, [x25]
	lsl	x12, x3, #2
	mov	x9, x12
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x22, x9, x10
	mov	sp, x22
	ldr	x9, [x0]
	udiv	x10, x8, x9
	cmp	x9, x8
	csel	x23, x9, x8, lo
	csinc	x8, x10, xzr, ls
	cbz	x8, LBB0_5
; %bb.1:
	sub	x26, x8, #1
	lsl	x27, x23, #2
Lloh7:
	adrp	x28, _G_ELI_KEY_SHIFT@GOTPAGE
Lloh8:
	ldr	x28, [x28, _G_ELI_KEY_SHIFT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_g_eli_crypto_ivgen
	ldr	x8, [x28]
	lsr	x8, x20, x8
	udiv	x2, x8, x23
	sub	x1, x29, #96
	mov	x0, x21
	bl	_g_eli_key_fill
	ldur	w4, [x29, #-96]
	ldp	w5, w0, [x21, #8]
	mov	w1, #0
	mov	x2, x19
	mov	x3, x23
	mov	x6, x22
	bl	_geliboot_crypt
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x26, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, x23
	ldr	w3, [x25]
	sub	x26, x26, #1
	add	x19, x19, x27
	b	LBB0_2
LBB0_5:
	sub	x0, x29, #96
	mov	w1, #4
	bl	_explicit_bzero
	mov	w24, #0
	b	LBB0_7
LBB0_6:
	mov	x24, x0
	sub	x0, x29, #96
	mov	w1, #4
	bl	_explicit_bzero
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x24
	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_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_G_ELI_IVKEYLEN,4,2             ; @G_ELI_IVKEYLEN
	.comm	_G_ELI_KEY_SHIFT,8,3            ; @G_ELI_KEY_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to decrypt in geli_read()!"

.subsections_via_symbols
