	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function img_hash_hw_init
_img_hash_hw_init:                      ## @img_hash_hw_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_CR_RESET@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CR_RESET_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_img_hash_write
	movl	(%r14), %esi
	movq	_CR_RESET_UNSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_img_hash_write
	movq	_CR_INTENAB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CR_INT_NEW_RESULTS_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	callq	_img_hash_write
	movq	16(%rbx), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	movslq	%eax, %r14
	movq	%r14, %rdx
	shrq	$32, %rdx
	movq	_CR_MESSAGE_LENGTH_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_img_hash_write
	movq	_CR_MESSAGE_LENGTH_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_img_hash_write
	movq	_DRIVER_FLAGS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rbx), %ecx
	testl	%eax, %ecx
	jne	LBB0_2
## %bb.1:
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	movq	$0, 8(%rbx)
LBB0_2:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CR_RESET,4,2                   ## @CR_RESET
	.comm	_CR_RESET_SET,8,3               ## @CR_RESET_SET
	.comm	_CR_RESET_UNSET,8,3             ## @CR_RESET_UNSET
	.comm	_CR_INTENAB,4,2                 ## @CR_INTENAB
	.comm	_CR_INT_NEW_RESULTS_SET,8,3     ## @CR_INT_NEW_RESULTS_SET
	.comm	_CR_MESSAGE_LENGTH_H,4,2        ## @CR_MESSAGE_LENGTH_H
	.comm	_CR_MESSAGE_LENGTH_L,4,2        ## @CR_MESSAGE_LENGTH_L
	.comm	_DRIVER_FLAGS_INIT,4,2          ## @DRIVER_FLAGS_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hw initialized, nbits: %llx\n"

	.no_dead_strip	_img_hash_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function img_hash_hw_init
_img_hash_hw_init:                      ; @img_hash_hw_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _CR_RESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CR_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _CR_RESET_SET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CR_RESET_SET@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x8]
	bl	_img_hash_write
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _CR_RESET_UNSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CR_RESET_UNSET@GOTPAGEOFF]
Lloh7:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_img_hash_write
Lloh8:
	adrp	x8, _CR_INTENAB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CR_INTENAB@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _CR_INT_NEW_RESULTS_SET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CR_INT_NEW_RESULTS_SET@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_img_hash_write
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	lsl	w8, w8, #3
	sxtw	x20, w8
	lsr	x2, x20, #32
Lloh14:
	adrp	x8, _CR_MESSAGE_LENGTH_H@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CR_MESSAGE_LENGTH_H@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_img_hash_write
Lloh17:
	adrp	x8, _CR_MESSAGE_LENGTH_L@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CR_MESSAGE_LENGTH_L@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_img_hash_write
Lloh20:
	adrp	x8, _DRIVER_FLAGS_INIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DRIVER_FLAGS_INIT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
	orr	w8, w9, w8
	str	w8, [x19]
	str	xzr, [x19, #8]
LBB0_2:
	ldr	w0, [x19, #4]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CR_RESET,4,2                   ; @CR_RESET
	.comm	_CR_RESET_SET,8,3               ; @CR_RESET_SET
	.comm	_CR_RESET_UNSET,8,3             ; @CR_RESET_UNSET
	.comm	_CR_INTENAB,4,2                 ; @CR_INTENAB
	.comm	_CR_INT_NEW_RESULTS_SET,8,3     ; @CR_INT_NEW_RESULTS_SET
	.comm	_CR_MESSAGE_LENGTH_H,4,2        ; @CR_MESSAGE_LENGTH_H
	.comm	_CR_MESSAGE_LENGTH_L,4,2        ; @CR_MESSAGE_LENGTH_L
	.comm	_DRIVER_FLAGS_INIT,4,2          ; @DRIVER_FLAGS_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hw initialized, nbits: %llx\n"

	.no_dead_strip	_img_hash_hw_init
.subsections_via_symbols
