	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	cmpl	$1, %edi
	jg	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_help
	jmp	LBB0_12
LBB0_2:
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	__PATH_MEM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	addq	$8, %r12
	movq	_functions@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	8(%rcx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	$24, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movq	(%r13), %rcx
	movq	(%rcx,%r15), %rsi
	addq	$16, %r15
	testq	%rsi, %rsi
	jne	LBB0_7
	jmp	LBB0_10
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	(%r13), %rcx
LBB0_10:
	movl	%ebx, %ebx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_11:
	shlq	$4, %rbx
	decl	%r14d
	movl	%r15d, %edi
	movl	%r14d, %esi
	movq	%r12, %rdx
	callq	*(%rcx,%rbx)
	movl	%r15d, %edi
	callq	_close
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_MEM,4,2                  ## @_PATH_MEM
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't open %s"

	.comm	_functions,8,3                  ## @functions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.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
	subs	w19, w0, #1
	b.gt	LBB0_2
; %bb.1:
	mov	x0, #0
	bl	_help
	b	LBB0_12
LBB0_2:
	mov	x21, x1
Lloh0:
	adrp	x22, __PATH_MEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, __PATH_MEM@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w2, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	add	x21, x21, #8
Lloh7:
	adrp	x23, _functions@GOTPAGE
Lloh8:
	ldr	x23, [x23, _functions@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x1, [x8, #8]
	cbz	x1, LBB0_8
; %bb.5:
	mov	x22, #0
	mov	w24, #24
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldr	x8, [x23]
	ldr	x1, [x8, x24]
	add	x24, x24, #16
	cbnz	x1, LBB0_6
	b	LBB0_10
LBB0_8:
	mov	x9, #0
	b	LBB0_11
LBB0_9:
	ldr	x8, [x23]
LBB0_10:
	and	x9, x22, #0xffffffff
LBB0_11:
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
	mov	x0, x20
	bl	_close
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_MEM,4,2                  ; @_PATH_MEM
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't open %s"

	.comm	_functions,8,3                  ; @functions
.subsections_via_symbols
