	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sahara_sha_hw_data_descriptor_create
_sahara_sha_hw_data_descriptor_create:  ## @sahara_sha_hw_data_descriptor_create
	.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	%ecx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 16(%rsi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sahara_sha_init_hdr
	jmp	LBB0_3
LBB0_2:
	movq	_SAHARA_HDR_MDHA_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movslq	%r15d, %r12
	leaq	(,%r12,8), %rcx
	addq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, 32(%rcx)
	movq	(%r14), %rax
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	24(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	%rax, 24(%rcx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_sahara_sha_hw_links_create
	movl	%r15d, 8(%r14)
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movq	8(%rbx), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	%eax, %r12d
	jmp	LBB0_7
LBB0_4:
	movq	$0, 24(%rcx)
	movl	$0, 8(%r14)
LBB0_7:
	movq	24(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	%rax, 16(%rcx)
	movl	12(%r14), %eax
	movl	16(%rbx), %edx
	movq	(%rbx), %rsi
	movq	(%rsi,%r12,8), %rsi
	movl	%edx, 16(%rsi)
	movl	%eax, (%rsi)
	movl	%eax, 8(%rcx)
	movq	$0, 8(%rsi)
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAHARA_HDR_MDHA_HASH,4,2       ## @SAHARA_HDR_MDHA_HASH
	.no_dead_strip	_sahara_sha_hw_data_descriptor_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sahara_sha_hw_data_descriptor_create
_sahara_sha_hw_data_descriptor_create:  ; @sahara_sha_hw_data_descriptor_create
	.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	x21, x3
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_sahara_sha_init_hdr
	ldr	x8, [x19, #8]
	sxtw	x22, w21
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _SAHARA_HDR_MDHA_HASH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAHARA_HDR_MDHA_HASH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	mov	x9, x21
	sxtw	x22, w9
LBB0_3:
	add	x8, x8, w21, sxtw #3
	ldr	x8, [x8]
	str	w0, [x8, #32]
	ldr	x9, [x20]
	str	x9, [x8]
	cbz	x9, LBB0_6
; %bb.4:
	ldr	x9, [x19, #24]
	ldr	x9, [x9, x22, lsl #3]
	str	x9, [x8, #24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sahara_sha_hw_links_create
	str	w21, [x20, #8]
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x22, lsl #3]
	mov	w22, w0
	b	LBB0_7
LBB0_6:
	str	xzr, [x8, #24]
	str	wzr, [x20, #8]
LBB0_7:
	mov	w0, #0
	ldr	x9, [x19, #24]
	lsl	x10, x22, #3
	ldr	x9, [x9, x10]
	str	x9, [x8, #16]
	ldr	w9, [x20, #12]
	ldr	w11, [x19, #16]
	ldr	x12, [x19]
	ldr	x10, [x12, x10]
	str	w11, [x10, #16]
	str	w9, [x10]
	str	w9, [x8, #8]
	str	xzr, [x10, #8]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SAHARA_HDR_MDHA_HASH,4,2       ; @SAHARA_HDR_MDHA_HASH
	.no_dead_strip	_sahara_sha_hw_data_descriptor_create
.subsections_via_symbols
