	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_hash_start
_img_hash_start:                        ## @img_hash_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_ahash_request_ctx
	movq	_IMG_HASH_BYTE_ORDER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_CR_CONTROL_BYTE_ORDER_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	(%rax), %eax
	movq	_DRIVER_FLAGS_MD5@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_CR_CONTROL_ALGO_MD5@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_DRIVER_FLAGS_SHA1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_CR_CONTROL_ALGO_SHA1@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_DRIVER_FLAGS_SHA224@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_CR_CONTROL_ALGO_SHA224@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_DRIVER_FLAGS_SHA256@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movq	_CR_CONTROL_ALGO_SHA256@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %ebx
LBB0_9:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_CR_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_img_hash_write
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r12), %esi
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_img_hash_read                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMG_HASH_BYTE_ORDER,4,2        ## @IMG_HASH_BYTE_ORDER
	.comm	_CR_CONTROL_BYTE_ORDER_SHIFT,4,2 ## @CR_CONTROL_BYTE_ORDER_SHIFT
	.comm	_DRIVER_FLAGS_MD5,4,2           ## @DRIVER_FLAGS_MD5
	.comm	_CR_CONTROL_ALGO_MD5,4,2        ## @CR_CONTROL_ALGO_MD5
	.comm	_DRIVER_FLAGS_SHA1,4,2          ## @DRIVER_FLAGS_SHA1
	.comm	_CR_CONTROL_ALGO_SHA1,4,2       ## @CR_CONTROL_ALGO_SHA1
	.comm	_DRIVER_FLAGS_SHA224,4,2        ## @DRIVER_FLAGS_SHA224
	.comm	_CR_CONTROL_ALGO_SHA224,4,2     ## @CR_CONTROL_ALGO_SHA224
	.comm	_DRIVER_FLAGS_SHA256,4,2        ## @DRIVER_FLAGS_SHA256
	.comm	_CR_CONTROL_ALGO_SHA256,4,2     ## @CR_CONTROL_ALGO_SHA256
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Starting hash process\n"

	.comm	_CR_CONTROL,4,2                 ## @CR_CONTROL
	.no_dead_strip	_img_hash_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_hash_start
_img_hash_start:                        ; @img_hash_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_ahash_request_ctx
Lloh0:
	adrp	x8, _IMG_HASH_BYTE_ORDER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMG_HASH_BYTE_ORDER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CR_CONTROL_BYTE_ORDER_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CR_CONTROL_BYTE_ORDER_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w21, w8, w9
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _DRIVER_FLAGS_MD5@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRIVER_FLAGS_MD5@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _CR_CONTROL_ALGO_MD5@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CR_CONTROL_ALGO_MD5@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
Lloh11:
	adrp	x9, _DRIVER_FLAGS_SHA1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DRIVER_FLAGS_SHA1@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _CR_CONTROL_ALGO_SHA1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CR_CONTROL_ALGO_SHA1@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh16:
	adrp	x9, _DRIVER_FLAGS_SHA224@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DRIVER_FLAGS_SHA224@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh19:
	adrp	x8, _CR_CONTROL_ALGO_SHA224@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CR_CONTROL_ALGO_SHA224@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh21:
	adrp	x9, _DRIVER_FLAGS_SHA256@GOTPAGE
Lloh22:
	ldr	x9, [x9, _DRIVER_FLAGS_SHA256@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.7:
Lloh24:
	adrp	x8, _CR_CONTROL_ALGO_SHA256@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CR_CONTROL_ALGO_SHA256@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	orr	w21, w8, w21
LBB0_9:
	ldr	w0, [x19]
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh28:
	adrp	x22, _CR_CONTROL@GOTPAGE
Lloh29:
	ldr	x22, [x22, _CR_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_img_hash_write
	cbz	w20, LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	w1, [x22]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_img_hash_read
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IMG_HASH_BYTE_ORDER,4,2        ; @IMG_HASH_BYTE_ORDER
	.comm	_CR_CONTROL_BYTE_ORDER_SHIFT,4,2 ; @CR_CONTROL_BYTE_ORDER_SHIFT
	.comm	_DRIVER_FLAGS_MD5,4,2           ; @DRIVER_FLAGS_MD5
	.comm	_CR_CONTROL_ALGO_MD5,4,2        ; @CR_CONTROL_ALGO_MD5
	.comm	_DRIVER_FLAGS_SHA1,4,2          ; @DRIVER_FLAGS_SHA1
	.comm	_CR_CONTROL_ALGO_SHA1,4,2       ; @CR_CONTROL_ALGO_SHA1
	.comm	_DRIVER_FLAGS_SHA224,4,2        ; @DRIVER_FLAGS_SHA224
	.comm	_CR_CONTROL_ALGO_SHA224,4,2     ; @CR_CONTROL_ALGO_SHA224
	.comm	_DRIVER_FLAGS_SHA256,4,2        ; @DRIVER_FLAGS_SHA256
	.comm	_CR_CONTROL_ALGO_SHA256,4,2     ; @CR_CONTROL_ALGO_SHA256
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Starting hash process\n"

	.comm	_CR_CONTROL,4,2                 ; @CR_CONTROL
	.no_dead_strip	_img_hash_start
.subsections_via_symbols
