	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blargg_ntsc_snes_initialize
_blargg_ntsc_snes_initialize:           ## @blargg_ntsc_snes_initialize
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -40(%rbp)
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 16(%r15)
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	-40(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$9, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	-40(%rbp), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$2, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	-40(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	$6, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	movl	$1, -32(%rbp)
LBB0_7:
	movq	-40(%rbp), %rdi
	callq	*(%r14)
	movq	$0, -40(%rbp)
	movq	16(%r15), %rdi
	leaq	-32(%rbp), %rsi
	callq	_retroarch_snes_ntsc_init
	movq	$0, 8(%r15)
	xorl	%eax, %eax
	cmpl	$0, -32(%rbp)
	sete	%al
	movl	%eax, (%r15)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$0, -32(%rbp)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tvtype"

L_.str.1:                               ## @.str.1
	.asciz	"composite"

	.comm	_retroarch_snes_ntsc_composite,4,2 ## @retroarch_snes_ntsc_composite
L_.str.2:                               ## @.str.2
	.asciz	"rf"

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

	.comm	_retroarch_snes_ntsc_rgb,4,2    ## @retroarch_snes_ntsc_rgb
L_.str.4:                               ## @.str.4
	.asciz	"svideo"

	.comm	_retroarch_snes_ntsc_svideo,4,2 ## @retroarch_snes_ntsc_svideo
	.no_dead_strip	_blargg_ntsc_snes_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blargg_ntsc_snes_initialize
_blargg_ntsc_snes_initialize:           ; @blargg_ntsc_snes_initialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	mov	w22, #1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #16]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x21
	blr	x8
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x0, [sp, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #9
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [sp, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #2
	bl	_memcmp
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [sp, #8]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #3
	bl	_memcmp
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [sp, #8]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #6
	bl	_memcmp
	cbnz	x0, LBB0_8
LBB0_5:
	mov	w8, #1
	str	w8, [sp]
	b	LBB0_8
LBB0_6:
	str	w22, [sp]
	b	LBB0_8
LBB0_7:
	str	wzr, [sp]
LBB0_8:
	ldr	x8, [x20]
	ldr	x0, [sp, #8]
	blr	x8
	str	xzr, [sp, #8]
	ldr	x0, [x19, #16]
	mov	x1, sp
	bl	_retroarch_snes_ntsc_init
	str	xzr, [x19, #8]
	ldr	w8, [sp]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19]
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tvtype"

l_.str.1:                               ; @.str.1
	.asciz	"composite"

	.comm	_retroarch_snes_ntsc_composite,4,2 ; @retroarch_snes_ntsc_composite
l_.str.2:                               ; @.str.2
	.asciz	"rf"

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

	.comm	_retroarch_snes_ntsc_rgb,4,2    ; @retroarch_snes_ntsc_rgb
l_.str.4:                               ; @.str.4
	.asciz	"svideo"

	.comm	_retroarch_snes_ntsc_svideo,4,2 ; @retroarch_snes_ntsc_svideo
	.no_dead_strip	_blargg_ntsc_snes_initialize
.subsections_via_symbols
