	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_hash_init               ## -- Begin function crypto_hash_init
	.p2align	4, 0x90
_crypto_hash_init:                      ## @crypto_hash_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movl	$12, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movl	%ebx, (%rax)
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_9
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_sha1_init
	jmp	LBB0_8
LBB0_3:
	movq	%r12, %rdi
	addq	$8, %rdi
	callq	_md5_init
	jmp	LBB0_8
LBB0_6:
	movq	%r12, %rbx
	addq	$4, %rbx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_5:
	movq	%r12, %rbx
	addq	$4, %rbx
	leaq	L_.str(%rip), %rdi
LBB0_7:
	callq	_find_hash
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_hmac_init
LBB0_8:
	movq	_CRYPT_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
LBB0_9:
	movq	%r12, %rdi
	callq	_os_free
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_CRYPT_OK,4,2                   ## @CRYPT_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"md5"

L_.str.1:                               ## @.str.1
	.asciz	"sha1"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_hash_init               ; -- Begin function crypto_hash_init
	.p2align	2
_crypto_hash_init:                      ; @crypto_hash_init
	.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, x2
	mov	x21, x1
	mov	x22, x0
	mov	w0, #12
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	str	w22, [x19]
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_9
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	add	x0, x19, #8
	bl	_sha1_init
	b	LBB0_8
LBB0_4:
	add	x0, x19, #8
	bl	_md5_init
	b	LBB0_8
LBB0_5:
	add	x22, x19, #4
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	add	x22, x19, #4
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_find_hash
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_hmac_init
LBB0_8:
Lloh6:
	adrp	x8, _CRYPT_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CRYPT_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_10:
	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
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
                                        ; -- End function
	.comm	_CRYPT_OK,4,2                   ; @CRYPT_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"md5"

l_.str.1:                               ; @.str.1
	.asciz	"sha1"

.subsections_via_symbols
