	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_hash
_do_hash:                               ## @do_hash
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%edi, %edx
	leal	-128(%rdx), %eax
	cmpl	$5, %eax
	ja	LBB0_7
## %bb.1:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_br_sha512_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_br_sha512_update
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_br_sha512_out
	movl	$64, %eax
	jmp	LBB0_9
LBB0_5:
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_br_sha384_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_br_sha384_update
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_br_sha384_out
	movl	$48, %eax
	jmp	LBB0_9
LBB0_4:
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_br_sha256_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_br_sha256_update
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_br_sha256_out
	movl	$32, %eax
	jmp	LBB0_9
LBB0_3:
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_br_sha224_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_br_sha224_update
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_br_sha224_out
	movl	$28, %eax
	jmp	LBB0_9
LBB0_2:
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_br_sha1_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_br_sha1_update
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_br_sha1_out
	movl	$20, %eax
	jmp	LBB0_9
LBB0_8:
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_br_md5_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_br_md5_update
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_br_md5_out
	movl	$16, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_fprintf
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Uknown hash function: %d\n"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.no_dead_strip	_do_hash
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_hash
_do_hash:                               ; @do_hash
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x0, sp, #12
	bl	_br_sha512_init
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_br_sha512_update
	add	x0, sp, #12
	mov	x1, x19
	bl	_br_sha512_out
	mov	w0, #64
	b	LBB0_8
LBB0_3:
	add	x0, sp, #12
	bl	_br_sha384_init
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_br_sha384_update
	add	x0, sp, #12
	mov	x1, x19
	bl	_br_sha384_out
	mov	w0, #48
	b	LBB0_8
LBB0_4:
	add	x0, sp, #12
	bl	_br_sha256_init
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_br_sha256_update
	add	x0, sp, #12
	mov	x1, x19
	bl	_br_sha256_out
	mov	w0, #32
	b	LBB0_8
LBB0_5:
	add	x0, sp, #12
	bl	_br_sha224_init
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_br_sha224_update
	add	x0, sp, #12
	mov	x1, x19
	bl	_br_sha224_out
	mov	w0, #28
	b	LBB0_8
LBB0_6:
	add	x0, sp, #12
	bl	_br_sha1_init
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_br_sha1_update
	add	x0, sp, #12
	mov	x1, x19
	bl	_br_sha1_out
	mov	w0, #20
	b	LBB0_8
LBB0_7:
	add	x0, sp, #12
	bl	_br_md5_init
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x20
	bl	_br_md5_update
	add	x0, sp, #12
	mov	x1, x19
	bl	_br_md5_out
	mov	w0, #16
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	mov	x2, x0
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh7:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Uknown hash function: %d\n"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.no_dead_strip	_do_hash
.subsections_via_symbols
