	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SN76489_Init                   ## -- Begin function SN76489_Init
	.p2align	4, 0x90
_SN76489_Init:                          ## @SN76489_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_blip@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, (%rcx)
	movq	(%rax), %rax
	movq	%rsi, 8(%rax)
	movq	_SN76489@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rsi
	movabsq	$429496729700, %rdi             ## imm = 0x6400000064
	movq	%rdi, (%rsi)
	movq	8(%rcx), %rsi
	movq	%rdi, (%rsi)
	movq	16(%rcx), %rsi
	movq	%rdi, (%rsi)
	movq	24(%rcx), %rcx
	movq	%rdi, (%rcx)
	movq	_SN_DISCRETE@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	movq	_FB_SEGAVDP@GOTPCREL(%rip), %rcx
	cmoveq	_FB_DISCRETE@GOTPCREL(%rip), %rcx
	movq	_SRW_SEGAVDP@GOTPCREL(%rip), %rdx
	cmoveq	_SRW_DISCRETE@GOTPCREL(%rip), %rdx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movl	(%rdx), %ecx
	movl	%ecx, 8(%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_blip,8,3                       ## @blip
	.comm	_SN76489,16,3                   ## @SN76489
	.comm	_SN_DISCRETE,4,2                ## @SN_DISCRETE
	.comm	_FB_DISCRETE,4,2                ## @FB_DISCRETE
	.comm	_SRW_DISCRETE,4,2               ## @SRW_DISCRETE
	.comm	_FB_SEGAVDP,4,2                 ## @FB_SEGAVDP
	.comm	_SRW_SEGAVDP,4,2                ## @SRW_SEGAVDP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SN76489_Init                   ; -- Begin function SN76489_Init
	.p2align	2
_SN76489_Init:                          ; @SN76489_Init
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _blip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _blip@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x0, [x9]
	ldr	x8, [x8]
	str	x1, [x8, #8]
Lloh2:
	adrp	x8, _SN76489@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SN76489@GOTPAGEOFF]
	ldr	x9, [x8]
	movi.2s	v0, #100
	ldp	x10, x11, [x9]
	str	d0, [x10]
	str	d0, [x11]
	ldp	x10, x9, [x9, #16]
	str	d0, [x10]
	str	d0, [x9]
Lloh4:
	adrp	x9, _SN_DISCRETE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SN_DISCRETE@GOTPAGEOFF]
Lloh6:
	adrp	x10, _FB_DISCRETE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FB_DISCRETE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _FB_SEGAVDP@GOTPAGE
Lloh9:
	ldr	x11, [x11, _FB_SEGAVDP@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, w2
	csel	x9, x10, x11, eq
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _SRW_DISCRETE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SRW_DISCRETE@GOTPAGEOFF]
	str	w9, [x8, #12]
Lloh13:
	adrp	x9, _SRW_SEGAVDP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SRW_SEGAVDP@GOTPAGEOFF]
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	str	w9, [x8, #8]
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh10
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_blip,8,3                       ; @blip
	.comm	_SN76489,16,3                   ; @SN76489
	.comm	_SN_DISCRETE,4,2                ; @SN_DISCRETE
	.comm	_FB_DISCRETE,4,2                ; @FB_DISCRETE
	.comm	_SRW_DISCRETE,4,2               ; @SRW_DISCRETE
	.comm	_FB_SEGAVDP,4,2                 ; @FB_SEGAVDP
	.comm	_SRW_SEGAVDP,4,2                ; @SRW_SEGAVDP
.subsections_via_symbols
