	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_interpreter
_check_interpreter:                     ## @check_interpreter
	.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	_LOADER_PATH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rsi
	callq	_stat
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_open
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movl	%eax, %r15d
	movq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_read
	cmpq	%rbx, %rax
	jb	LBB0_6
## %bb.4:
	movq	_INTERP_MARKER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	movq	%rax, %r12
	movq	_bootprog_interp@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	addq	%r12, %r13
	movq	_INTERP_MARKER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rcx
	callq	_memmem
	addq	%rax, %r12
	testq	%rax, %rax
	leaq	L_.str(%rip), %rbx
	cmovneq	%r12, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_swap_interpreter@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_CALLBACK
LBB0_6:
	movq	%r14, %rdi
	callq	_free
	movl	%r15d, %edi
	callq	_close
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOADER_PATH,4,2                ## @LOADER_PATH
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_INTERP_MARKER,4,2              ## @INTERP_MARKER
	.comm	_bootprog_interp,8,3            ## @bootprog_interp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"4th"

	.comm	_swap_interpreter,4,2           ## @swap_interpreter
	.no_dead_strip	_check_interpreter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_interpreter
_check_interpreter:                     ; @check_interpreter
	.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
Lloh0:
	adrp	x19, _LOADER_PATH@GOTPAGE
Lloh1:
	ldr	x19, [x19, _LOADER_PATH@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #8
	bl	_stat
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_open
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	x21, [sp, #8]
	mov	x0, x21
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_read
	cmp	x0, x21
	b.lo	LBB0_6
; %bb.4:
Lloh5:
	adrp	x24, _INTERP_MARKER@GOTPAGE
Lloh6:
	ldr	x24, [x24, _INTERP_MARKER@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_strlen
	mov	x22, x0
Lloh7:
	adrp	x8, _bootprog_interp@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bootprog_interp@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	add	x23, x8, x0
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	bl	_memmem
	add	x8, x0, x22
Lloh10:
	adrp	x9, l_.str@PAGE
Lloh11:
	add	x9, x9, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x21, x9, x8, eq
	mov	x0, x23
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _swap_interpreter@GOTPAGE
Lloh13:
	ldr	x8, [x8, _swap_interpreter@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_CALLBACK
LBB0_6:
	mov	x0, x20
	bl	_free
	mov	x0, x19
	bl	_close
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LOADER_PATH,4,2                ; @LOADER_PATH
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_INTERP_MARKER,4,2              ; @INTERP_MARKER
	.comm	_bootprog_interp,8,3            ; @bootprog_interp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"4th"

	.comm	_swap_interpreter,4,2           ; @swap_interpreter
	.no_dead_strip	_check_interpreter
.subsections_via_symbols
