	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check
_check:                                 ## @check
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	testq	%r14, %r14
	je	LBB0_1
## %bb.5:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_2
## %bb.6:
	movq	_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_av_hash_get_name
	movq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movl	$1, %ebx
	jmp	LBB0_11
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movq	_hash@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_av_hash_init
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	%r15d, %edi
	movq	%rbx, %rsi
	callq	_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_av_hash_update
	jmp	LBB0_3
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_close
	xorl	%eax, %eax
	callq	_finish
	movl	%ebx, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movl	$2, %ebx
	testq	%r14, %r14
	je	LBB0_12
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:
	movl	$10, %edi
	callq	_putchar
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r15d, %edi
	callq	_close
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_finish
	testq	%r14, %r14
	jne	LBB0_11
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SIZE,4,2                       ## @SIZE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s=OPEN-FAILED: %s:"

	.comm	_hash,4,2                       ## @hash
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"+READ-FAILED: %s"

L_.str.2:                               ## @.str.2
	.asciz	" *%s"

	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.no_dead_strip	_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check
_check:                                 ; @check
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x22, _SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	cbz	x0, LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	mov	x21, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _hash@GOTPAGE
Lloh11:
	ldr	x8, [x8, _hash@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_av_hash_get_name
	mov	x20, x0
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_strerror
	stp	x20, x0, [sp, #-16]!
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	w20, #1
	b	LBB0_9
LBB0_3:
	mov	w21, #0
LBB0_4:
Lloh18:
	adrp	x23, _hash@GOTPAGE
Lloh19:
	ldr	x23, [x23, _hash@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_av_hash_init
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_read
	tbnz	w0, #31, LBB0_8
; %bb.5:
	mov	x2, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w2, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_av_hash_update
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_read
	mov	x2, x0
	tbz	w0, #31, LBB0_6
LBB0_8:
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_close
	bl	_finish
	mov	x0, x20
	bl	_strerror
	str	x0, [sp, #-16]!
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	mov	w20, #2
	cbz	x19, LBB0_10
LBB0_9:
	str	x19, [sp, #-16]!
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #16
LBB0_10:
	mov	w0, #10
	bl	_putchar
	ldur	x8, [x29, #-56]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	mov	x0, x20
	sub	sp, x29, #48
	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_12:
	mov	x0, x21
	bl	_close
	bl	_finish
	mov	w20, #0
	cbnz	x19, LBB0_9
	b	LBB0_10
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SIZE,4,2                       ; @SIZE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s=OPEN-FAILED: %s:"

	.comm	_hash,4,2                       ; @hash
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"+READ-FAILED: %s"

l_.str.2:                               ; @.str.2
	.asciz	" *%s"

	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.no_dead_strip	_check
.subsections_via_symbols
