	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_dmactl_bug
_set_dmactl_bug:                        ## @set_dmactl_bug
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_need_load@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_draw_antic_ptr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_saved_draw_antic_ptr@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_draw_antic_ptr_changed@GOTPCREL(%rip), %rcx
	movl	$1, (%rcx)
	movq	_anticmode@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$15, %ecx
	ja	LBB0_5
## %bb.1:
	movl	$32780, %edx                    ## imm = 0x800C
	btl	%ecx, %edx
	jae	LBB0_5
## %bb.2:
	movq	_draw_antic_2_dmactl_bug@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax)
	xorl	%eax, %eax
	cmpl	$15, %ecx
	je	LBB0_4
## %bb.3:
	movq	_antic_memory@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ANTIC_margin@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_chars_read@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_md@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rdx,%rsi,4), %edx
	addl	%edx, %ecx
	decl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_4:
	movq	_dmactl_bug_chdata@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbp
	retq
LBB0_5:
	movq	_draw_antic_0_dmactl_bug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_need_load,4,2                  ## @need_load
	.comm	_draw_antic_ptr,4,2             ## @draw_antic_ptr
	.comm	_saved_draw_antic_ptr,4,2       ## @saved_draw_antic_ptr
	.comm	_draw_antic_ptr_changed,4,2     ## @draw_antic_ptr_changed
	.comm	_anticmode,4,2                  ## @anticmode
	.comm	_draw_antic_2_dmactl_bug,4,2    ## @draw_antic_2_dmactl_bug
	.comm	_antic_memory,8,3               ## @antic_memory
	.comm	_ANTIC_margin,4,2               ## @ANTIC_margin
	.comm	_chars_read,8,3                 ## @chars_read
	.comm	_md,8,3                         ## @md
	.comm	_dmactl_bug_chdata,4,2          ## @dmactl_bug_chdata
	.comm	_draw_antic_0_dmactl_bug,4,2    ## @draw_antic_0_dmactl_bug
	.no_dead_strip	_set_dmactl_bug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_dmactl_bug
_set_dmactl_bug:                        ; @set_dmactl_bug
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _need_load@GOTPAGE
Lloh4:
	ldr	x9, [x9, _need_load@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _draw_antic_ptr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _draw_antic_ptr@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh8:
	adrp	x10, _saved_draw_antic_ptr@GOTPAGE
Lloh9:
	ldr	x10, [x10, _saved_draw_antic_ptr@GOTPAGEOFF]
Lloh10:
	str	w9, [x10]
Lloh11:
	adrp	x9, _draw_antic_ptr_changed@GOTPAGE
Lloh12:
	ldr	x9, [x9, _draw_antic_ptr_changed@GOTPAGEOFF]
	mov	w10, #1
Lloh13:
	str	w10, [x9]
Lloh14:
	adrp	x9, _anticmode@GOTPAGE
Lloh15:
	ldr	x9, [x9, _anticmode@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w9, #15
	lsl	w10, w10, w9
	mov	w11, #32780
	and	w10, w10, w11
	ccmp	w10, #0, #4, ls
	b.eq	LBB0_5
; %bb.1:
Lloh17:
	adrp	x10, _draw_antic_2_dmactl_bug@GOTPAGE
Lloh18:
	ldr	x10, [x10, _draw_antic_2_dmactl_bug@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	str	w10, [x8]
	cmp	w9, #15
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_4
LBB0_3:
Lloh20:
	adrp	x8, _antic_memory@GOTPAGE
Lloh21:
	ldr	x8, [x8, _antic_memory@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _ANTIC_margin@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ANTIC_margin@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _chars_read@GOTPAGE
Lloh27:
	ldr	x10, [x10, _chars_read@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
Lloh29:
	adrp	x11, _md@GOTPAGE
Lloh30:
	ldr	x11, [x11, _md@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x11]
	ldr	w10, [x10, x11, lsl #2]
	add	w9, w9, w10
	sub	w9, w9, #1
	ldr	w8, [x8, w9, sxtw #2]
LBB0_4:
Lloh32:
	adrp	x9, _dmactl_bug_chdata@GOTPAGE
Lloh33:
	ldr	x9, [x9, _dmactl_bug_chdata@GOTPAGEOFF]
Lloh34:
	str	w8, [x9]
	ret
LBB0_5:
Lloh35:
	adrp	x9, _draw_antic_0_dmactl_bug@GOTPAGE
Lloh36:
	ldr	x9, [x9, _draw_antic_0_dmactl_bug@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_need_load,4,2                  ; @need_load
	.comm	_draw_antic_ptr,4,2             ; @draw_antic_ptr
	.comm	_saved_draw_antic_ptr,4,2       ; @saved_draw_antic_ptr
	.comm	_draw_antic_ptr_changed,4,2     ; @draw_antic_ptr_changed
	.comm	_anticmode,4,2                  ; @anticmode
	.comm	_draw_antic_2_dmactl_bug,4,2    ; @draw_antic_2_dmactl_bug
	.comm	_antic_memory,8,3               ; @antic_memory
	.comm	_ANTIC_margin,4,2               ; @ANTIC_margin
	.comm	_chars_read,8,3                 ; @chars_read
	.comm	_md,8,3                         ; @md
	.comm	_dmactl_bug_chdata,4,2          ; @dmactl_bug_chdata
	.comm	_draw_antic_0_dmactl_bug,4,2    ; @draw_antic_0_dmactl_bug
	.no_dead_strip	_set_dmactl_bug
.subsections_via_symbols
