	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcc_add_file_internal          ## -- Begin function tcc_add_file_internal
	.p2align	4, 0x90
_tcc_add_file_internal:                 ## @tcc_add_file_internal
	.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
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_tcc_fileextension
	movq	%rax, %r13
	cmpb	$1, (%rax)
	sbbq	$-1, %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_tcc_open
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	4(%r15), %r14
	movq	%rbx, %rdi
	callq	_strdup
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_dynarray_add
	movq	_AFF_PREPROCESS@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_tcc_preprocess
	jmp	LBB0_10
LBB0_1:
	movq	_AFF_PRINT_ERROR@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_12
## %bb.2:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_tcc_error
	jmp	LBB0_12
LBB0_5:
	cmpb	$0, (%r13)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_9
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_PATHCMP
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_PATHCMP
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_PATHCMP
	testl	%eax, %eax
	jne	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_tcc_compile
LBB0_10:
	movl	%eax, %r14d
LBB0_11:
	xorl	%eax, %eax
	callq	_tcc_close
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AFF_PRINT_ERROR,4,2            ## @AFF_PRINT_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"file '%s' not found"

	.comm	_AFF_PREPROCESS,4,2             ## @AFF_PREPROCESS
L_.str.1:                               ## @.str.1
	.asciz	"c"

L_.str.2:                               ## @.str.2
	.asciz	"h"

L_.str.3:                               ## @.str.3
	.asciz	"cparse"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcc_add_file_internal          ; -- Begin function tcc_add_file_internal
	.p2align	2
_tcc_add_file_internal:                 ; @tcc_add_file_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x23, x1
	mov	x20, x0
	mov	x0, x1
	bl	_tcc_fileextension
	mov	x8, x0
	ldrb	w9, [x8], #1
	cmp	w9, #0
	csel	x21, x0, x8, eq
	mov	x0, x20
	mov	x1, x23
	bl	_tcc_open
	mov	x19, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
	add	x24, x20, #4
	mov	x0, x23
	bl	_strdup
	mov	x2, x0
	mov	x0, x24
	mov	x1, x20
	bl	_dynarray_add
Lloh0:
	adrp	x8, _AFF_PREPROCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AFF_PREPROCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_tcc_preprocess
	b	LBB0_10
LBB0_3:
Lloh3:
	adrp	x8, _AFF_PRINT_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AFF_PRINT_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.4:
	str	x23, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tcc_error
	b	LBB0_12
LBB0_5:
	ldrb	w8, [x21]
	cbz	w8, LBB0_9
; %bb.6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_PATHCMP
	cbz	w0, LBB0_9
; %bb.7:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_PATHCMP
	cbz	w0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_PATHCMP
	cbnz	w0, LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_tcc_compile
LBB0_10:
	mov	x19, x0
LBB0_11:
	bl	_tcc_close
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AFF_PRINT_ERROR,4,2            ; @AFF_PRINT_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"file '%s' not found"

	.comm	_AFF_PREPROCESS,4,2             ; @AFF_PREPROCESS
l_.str.1:                               ; @.str.1
	.asciz	"c"

l_.str.2:                               ; @.str.2
	.asciz	"h"

l_.str.3:                               ; @.str.3
	.asciz	"cparse"

.subsections_via_symbols
