	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_decoder_update             ## -- Begin function cdc_decoder_update
	.p2align	4, 0x90
_cdc_decoder_update:                    ## @cdc_decoder_update
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cdc@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_BIT_DECEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%r15d, %r15d
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.1:
	movl	%edi, %r14d
	movq	48(%r12), %rcx
	movq	(%rcx), %rcx
	movl	%edi, (%rcx)
	movq	8(%r12), %rcx
	movl	$0, 12(%rcx)
	movq	_BIT_DECI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, 40(%r12)
	movq	_BIT_DECIEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%r12)
	je	LBB0_4
## %bb.2:
	movq	_scd@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	orl	$32, %ecx
	movl	%ecx, (%rdx)
	movq	8(%rdx), %rdx
	movl	100(%rdx), %edi
	testb	$32, %dil
	je	LBB0_4
## %bb.3:
	andl	%ecx, %edi
	sarl	%edi
	callq	_s68k_update_irq
	movq	(%r12), %rax
LBB0_4:
	movq	_BIT_WRRQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.5:
	movl	$2352, %ebx                     ## imm = 0x930
	addl	32(%r12), %ebx
	movl	%ebx, 32(%r12)
	addl	$2352, 36(%r12)                 ## imm = 0x930
	andl	$16383, %ebx                    ## imm = 0x3FFF
	movq	24(%r12), %rax
	movl	%r14d, (%rax,%rbx)
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	callq	_cdd_read_data
	movl	$1, %r15d
	cmpl	$14333, %ebx                    ## imm = 0x37FD
	jb	LBB0_7
## %bb.6:
	movq	24(%r12), %rdi
	leaq	16384(%rdi), %rsi
	leal	-14332(%rbx), %edx
	callq	_memcpy
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cdc,56,3                       ## @cdc
	.comm	_BIT_DECEN,4,2                  ## @BIT_DECEN
	.comm	_BIT_DECI,4,2                   ## @BIT_DECI
	.comm	_BIT_DECIEN,4,2                 ## @BIT_DECIEN
	.comm	_scd,16,3                       ## @scd
	.comm	_BIT_WRRQ,4,2                   ## @BIT_WRRQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_decoder_update             ; -- Begin function cdc_decoder_update
	.p2align	2
_cdc_decoder_update:                    ; @cdc_decoder_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _cdc@GOTPAGE
Lloh1:
	ldr	x20, [x20, _cdc@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _BIT_DECEN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BIT_DECEN@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x9, [x20, #48]
	ldr	x9, [x9]
	str	w0, [x9]
	ldr	x9, [x20, #8]
	str	wzr, [x9, #12]
Lloh5:
	adrp	x9, _BIT_DECI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BIT_DECI@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w10, [x20, #40]
	bic	w9, w10, w9
	str	w9, [x20, #40]
	ldr	w9, [x20, #16]
Lloh8:
	adrp	x10, _BIT_DECIEN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _BIT_DECIEN@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
Lloh11:
	adrp	x10, _scd@GOTPAGE
Lloh12:
	ldr	x10, [x10, _scd@GOTPAGEOFF]
	ldr	w9, [x10]
	orr	w9, w9, #0x20
	str	w9, [x10]
	ldr	x10, [x10, #8]
	ldr	w10, [x10, #100]
	tbz	w10, #5, LBB0_4
; %bb.3:
	and	w8, w10, w9
	asr	w0, w8, #1
	bl	_s68k_update_irq
	ldr	x8, [x20]
LBB0_4:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _BIT_WRRQ@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BIT_WRRQ@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	ldr	d0, [x20, #32]
	mov	w8, #2352
	dup.2s	v1, w8
	add.2s	v0, v0, v1
	str	d0, [x20, #32]
	fmov	w8, s0
	and	x21, x8, #0x3fff
	ldr	x8, [x20, #24]
	add	x0, x8, x21
	str	w19, [x0], #4
	bl	_cdd_read_data
	mov	w8, #14333
	cmp	w21, w8
	b.lo	LBB0_7
; %bb.6:
	ldr	x0, [x20, #24]
	add	x1, x0, #4, lsl #12             ; =16384
	mov	w8, #-14332
	add	w2, w21, w8
	bl	_memcpy
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_cdc,56,3                       ; @cdc
	.comm	_BIT_DECEN,4,2                  ; @BIT_DECEN
	.comm	_BIT_DECI,4,2                   ; @BIT_DECI
	.comm	_BIT_DECIEN,4,2                 ; @BIT_DECIEN
	.comm	_scd,16,3                       ; @scd
	.comm	_BIT_WRRQ,4,2                   ; @BIT_WRRQ
.subsections_via_symbols
