	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sahara_sha_init_hdr
_sahara_sha_init_hdr:                   ## @sahara_sha_init_hdr
	.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
	movl	16(%rsi), %ecx
	movq	_SAHARA_HDR_MDHA_SET_MODE_MD_KEY@GOTPCREL(%rip), %rdx
	movq	_SAHARA_HDR_MDHA_SET_MODE_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ecx, %eax
	movq	_SAHARA_HDR_MDHA_INIT@GOTPCREL(%rip), %rdi
	orl	(%rdx), %ecx
	orl	(%rdi), %eax
	cmpq	$0, 8(%rsi)
	cmovel	%ecx, %eax
	xorl	%r14d, %r14d
	cmpq	$0, (%rsi)
	movl	$0, %ebx
	je	LBB0_2
## %bb.1:
	movq	_SAHARA_HDR_MDHA_PDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_2:
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_hweight_long
	testb	$1, %al
	jne	LBB0_4
## %bb.3:
	movq	_SAHARA_HDR_PARITY_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	orl	%ebx, %r14d
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAHARA_HDR_MDHA_SET_MODE_HASH,4,2 ## @SAHARA_HDR_MDHA_SET_MODE_HASH
	.comm	_SAHARA_HDR_MDHA_INIT,4,2       ## @SAHARA_HDR_MDHA_INIT
	.comm	_SAHARA_HDR_MDHA_SET_MODE_MD_KEY,4,2 ## @SAHARA_HDR_MDHA_SET_MODE_MD_KEY
	.comm	_SAHARA_HDR_MDHA_PDATA,4,2      ## @SAHARA_HDR_MDHA_PDATA
	.comm	_SAHARA_HDR_PARITY_BIT,4,2      ## @SAHARA_HDR_PARITY_BIT
	.no_dead_strip	_sahara_sha_init_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sahara_sha_init_hdr
_sahara_sha_init_hdr:                   ; @sahara_sha_init_hdr
	.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
	ldr	w8, [x1, #16]
Lloh0:
	adrp	x9, _SAHARA_HDR_MDHA_SET_MODE_MD_KEY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SAHARA_HDR_MDHA_SET_MODE_MD_KEY@GOTPAGEOFF]
Lloh2:
	adrp	x10, _SAHARA_HDR_MDHA_SET_MODE_HASH@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SAHARA_HDR_MDHA_SET_MODE_HASH@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	orr	w10, w10, w8
Lloh6:
	adrp	x11, _SAHARA_HDR_MDHA_INIT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SAHARA_HDR_MDHA_INIT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w9, w10, w11
	ldp	x11, x10, [x1]
	cmp	x10, #0
	csel	w8, w8, w9, eq
Lloh9:
	adrp	x9, _SAHARA_HDR_MDHA_PDATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SAHARA_HDR_MDHA_PDATA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	x11, #0
	csel	w9, wzr, w9, eq
	orr	w19, w9, w8
	mov	x0, x19
	bl	_hweight_long
Lloh12:
	adrp	x8, _SAHARA_HDR_PARITY_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SAHARA_HDR_PARITY_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w0, #0x1
	csel	w8, w8, wzr, eq
	orr	w0, w8, w19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SAHARA_HDR_MDHA_SET_MODE_HASH,4,2 ; @SAHARA_HDR_MDHA_SET_MODE_HASH
	.comm	_SAHARA_HDR_MDHA_INIT,4,2       ; @SAHARA_HDR_MDHA_INIT
	.comm	_SAHARA_HDR_MDHA_SET_MODE_MD_KEY,4,2 ; @SAHARA_HDR_MDHA_SET_MODE_MD_KEY
	.comm	_SAHARA_HDR_MDHA_PDATA,4,2      ; @SAHARA_HDR_MDHA_PDATA
	.comm	_SAHARA_HDR_PARITY_BIT,4,2      ; @SAHARA_HDR_PARITY_BIT
	.no_dead_strip	_sahara_sha_init_hdr
.subsections_via_symbols
