	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vdp_init                       ## -- Begin function vdp_init
	.p2align	4, 0x90
_vdp_init:                              ## @vdp_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	_vdp_pal@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$262, %eax                      ## imm = 0x106
	movl	$313, %ecx                      ## imm = 0x139
	cmovel	%eax, %ecx
	movq	_system_hw@GOTPCREL(%rip), %rax
	movq	_SYSTEM_PBC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rax), %edx
	movq	_lines_per_frame@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	movq	_SYSTEM_MD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_2
## %bb.1:
	movq	_m68k_set_irq@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_set_irq_line@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_m68k_set_irq_delay@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_z80_set_irq_line@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_set_irq_line@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_3:
	movq	_set_irq_line_delay@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vdp_pal,8,3                    ## @vdp_pal
	.comm	_lines_per_frame,4,2            ## @lines_per_frame
	.comm	_system_hw,4,2                  ## @system_hw
	.comm	_SYSTEM_PBC,4,2                 ## @SYSTEM_PBC
	.comm	_SYSTEM_MD,4,2                  ## @SYSTEM_MD
	.comm	_m68k_set_irq,8,3               ## @m68k_set_irq
	.comm	_set_irq_line,8,3               ## @set_irq_line
	.comm	_m68k_set_irq_delay,8,3         ## @m68k_set_irq_delay
	.comm	_set_irq_line_delay,8,3         ## @set_irq_line_delay
	.comm	_z80_set_irq_line,8,3           ## @z80_set_irq_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vdp_init                       ; -- Begin function vdp_init
	.p2align	2
_vdp_init:                              ; @vdp_init
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _vdp_pal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vdp_pal@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #313
	mov	w9, #262
	csel	w8, w9, w8, eq
Lloh3:
	adrp	x9, _lines_per_frame@GOTPAGE
Lloh4:
	ldr	x9, [x9, _lines_per_frame@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _system_hw@GOTPAGE
Lloh7:
	ldr	x8, [x8, _system_hw@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SYSTEM_PBC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SYSTEM_PBC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _SYSTEM_MD@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SYSTEM_MD@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh15:
	adrp	x8, _m68k_set_irq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _m68k_set_irq@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _set_irq_line@GOTPAGE
Lloh19:
	ldr	x9, [x9, _set_irq_line@GOTPAGEOFF]
Lloh20:
	str	x8, [x9]
Lloh21:
	adrp	x8, _m68k_set_irq_delay@GOTPAGE
Lloh22:
	ldr	x8, [x8, _m68k_set_irq_delay@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	b	LBB0_3
LBB0_2:
Lloh24:
	adrp	x8, _z80_set_irq_line@GOTPAGE
Lloh25:
	ldr	x8, [x8, _z80_set_irq_line@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _set_irq_line@GOTPAGE
Lloh28:
	ldr	x9, [x9, _set_irq_line@GOTPAGEOFF]
Lloh29:
	str	x8, [x9]
LBB0_3:
Lloh30:
	adrp	x9, _set_irq_line_delay@GOTPAGE
Lloh31:
	ldr	x9, [x9, _set_irq_line_delay@GOTPAGEOFF]
Lloh32:
	str	x8, [x9]
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_vdp_pal,8,3                    ; @vdp_pal
	.comm	_lines_per_frame,4,2            ; @lines_per_frame
	.comm	_system_hw,4,2                  ; @system_hw
	.comm	_SYSTEM_PBC,4,2                 ; @SYSTEM_PBC
	.comm	_SYSTEM_MD,4,2                  ; @SYSTEM_MD
	.comm	_m68k_set_irq,8,3               ; @m68k_set_irq
	.comm	_set_irq_line,8,3               ; @set_irq_line
	.comm	_m68k_set_irq_delay,8,3         ; @m68k_set_irq_delay
	.comm	_set_irq_line_delay,8,3         ; @set_irq_line_delay
	.comm	_z80_set_irq_line,8,3           ; @z80_set_irq_line
.subsections_via_symbols
