	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ima_calc_hash                  ## -- Begin function ima_calc_hash
	.p2align	4, 0x90
_ima_calc_hash:                         ## @ima_calc_hash
	.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	%rsi, %r14
	movq	%rdi, %r13
	leaq	-48(%rbp), %rdi
	callq	_init_desc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_i_size_read
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jge	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_kernel_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	addq	%rax, %r14
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_sg_init_one
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_crypto_hash_update
	testl	%eax, %eax
	je	LBB0_4
## %bb.8:
	movl	%eax, %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_kfree
	leaq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_crypto_hash_final
	movl	%eax, %ebx
LBB0_11:
	movl	-48(%rbp), %edi
	callq	_crypto_free_hash
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ima_calc_hash                  ; -- Begin function ima_calc_hash
	.p2align	2
_ima_calc_hash:                         ; @ima_calc_hash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_init_desc
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.1:
Lloh0:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x21, x0
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_i_size_read
	mov	x23, x0
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x24, x23
	b.ge	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_kernel_read
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w22, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, w22, uxtw
	mov	x0, sp
	mov	x1, x21
	mov	x2, x22
	bl	_sg_init_one
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x22
	bl	_crypto_hash_update
	cbz	w0, LBB0_3
; %bb.7:
	mov	x22, x0
LBB0_8:
	mov	x0, x21
	bl	_kfree
	b	LBB0_11
LBB0_9:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_10:
	mov	x0, x21
	bl	_kfree
	add	x0, sp, #8
	mov	x1, x19
	bl	_crypto_hash_final
	mov	x22, x0
LBB0_11:
	ldr	w0, [sp, #8]
	bl	_crypto_free_hash
LBB0_12:
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
