	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_hash_alloc                  ## -- Begin function av_hash_alloc
	.p2align	4, 0x90
_av_hash_alloc:                         ## @av_hash_alloc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, (%rdi)
	movq	_NUM_HASHES@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	xorl	%ebx, %ebx
	movq	_hashdesc@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_av_strcasecmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.5:
	cmpl	%eax, %ebx
	jge	LBB0_11
LBB0_6:
	movl	$12, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_23
## %bb.7:
	movq	%rax, %r15
	movl	%ebx, (%rax)
	leal	-128(%rbx), %eax
	cmpl	$13, %eax
	ja	LBB0_18
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	xorl	%eax, %eax
	callq	_av_sha512_alloc
	movl	%eax, 4(%r15)
	jmp	LBB0_20
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	%eax, %ebx
	jl	LBB0_6
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_10:
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_6
	jmp	LBB0_11
LBB0_13:
	xorl	%eax, %eax
	callq	_av_ripemd_alloc
	movl	%eax, 4(%r15)
	jmp	LBB0_20
LBB0_14:
	xorl	%eax, %eax
	callq	_av_sha_alloc
	movl	%eax, 4(%r15)
	jmp	LBB0_20
LBB0_15:
	xorl	%eax, %eax
	callq	_av_murmur3_alloc
	movl	%eax, 4(%r15)
	jmp	LBB0_20
LBB0_16:
	xorl	%eax, %eax
	callq	_av_md5_alloc
	movl	%eax, 4(%r15)
	jmp	LBB0_20
LBB0_17:
	movq	_AV_CRC_32_IEEE_LE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_crc_get_table
	movl	%eax, 8(%r15)
	jmp	LBB0_21
LBB0_18:
	addl	$-143, %ebx
	cmpl	$-3, %ebx
	ja	LBB0_21
## %bb.19:
	movl	4(%r15), %eax
LBB0_20:
	testl	%eax, %eax
	je	LBB0_22
LBB0_21:
	movq	%r15, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r15, %rdi
	callq	_av_free
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_NUM_HASHES,4,2                 ## @NUM_HASHES
	.comm	_hashdesc,8,3                   ## @hashdesc
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_CRC_32_IEEE_LE,4,2          ## @AV_CRC_32_IEEE_LE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_hash_alloc                  ; -- Begin function av_hash_alloc
	.p2align	2
_av_hash_alloc:                         ; @av_hash_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	str	xzr, [x0]
Lloh0:
	adrp	x22, _NUM_HASHES@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NUM_HASHES@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x21, #0
Lloh2:
	adrp	x23, _hashdesc@GOTPAGE
Lloh3:
	ldr	x23, [x23, _hashdesc@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x21, lsl #2]
	mov	x0, x20
	bl	_av_strcasecmp
	cbz	x0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_2
; %bb.4:
	cmp	w21, w8
	b.ge	LBB0_10
LBB0_5:
	mov	w0, #12
	bl	_av_mallocz
	cbz	x0, LBB0_22
; %bb.6:
	mov	x20, x0
	str	w21, [x0]
	sub	w8, w21, #128
	cmp	w8, #13
	b.hi	LBB0_17
; %bb.7:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	bl	_av_sha512_alloc
	str	w0, [x20, #4]
	b	LBB0_19
LBB0_9:
	mov	w21, #0
	cmp	w21, w8
	b.lt	LBB0_5
LBB0_10:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_23
LBB0_11:
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_5
	b	LBB0_10
LBB0_12:
	bl	_av_ripemd_alloc
	str	w0, [x20, #4]
	b	LBB0_19
LBB0_13:
	bl	_av_sha_alloc
	str	w0, [x20, #4]
	b	LBB0_19
LBB0_14:
	bl	_av_murmur3_alloc
	str	w0, [x20, #4]
	b	LBB0_19
LBB0_15:
	bl	_av_md5_alloc
	str	w0, [x20, #4]
	b	LBB0_19
LBB0_16:
Lloh8:
	adrp	x8, _AV_CRC_32_IEEE_LE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_CRC_32_IEEE_LE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_av_crc_get_table
	str	w0, [x20, #8]
	b	LBB0_20
LBB0_17:
	sub	w8, w21, #143
	cmn	w8, #3
	b.hi	LBB0_20
; %bb.18:
	ldr	w0, [x20, #4]
LBB0_19:
	cbz	w0, LBB0_21
LBB0_20:
	str	x20, [x19]
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x0, x20
	bl	_av_free
LBB0_22:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_14-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_16-LBB0_8)>>2
                                        ; -- End function
	.comm	_NUM_HASHES,4,2                 ; @NUM_HASHES
	.comm	_hashdesc,8,3                   ; @hashdesc
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_CRC_32_IEEE_LE,4,2          ; @AV_CRC_32_IEEE_LE
.subsections_via_symbols
