	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function POKEY_siocheck
_POKEY_siocheck:                        ## @POKEY_siocheck
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_POKEY_AUDF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_POKEY_CHAN3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	cmpq	$40, %rcx
	ja	LBB0_3
## %bb.1:
	movabsq	$1099511694592, %rdx            ## imm = 0x10000010500
	btq	%rcx, %rdx
	jae	LBB0_3
## %bb.2:
	movq	_POKEY_CHAN4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_4
LBB0_3:
	movq	_POKEY_SKCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	$120, %ecx
	xorl	%eax, %eax
	cmpl	$40, %ecx
	jne	LBB0_5
LBB0_4:
	movq	_POKEY_AUDCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	notl	%ecx
	xorl	%eax, %eax
	testb	$40, %cl
	sete	%al
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POKEY_AUDF,8,3                 ## @POKEY_AUDF
	.comm	_POKEY_CHAN3,8,3                ## @POKEY_CHAN3
	.comm	_POKEY_CHAN4,8,3                ## @POKEY_CHAN4
	.comm	_POKEY_SKCTL,4,2                ## @POKEY_SKCTL
	.comm	_POKEY_AUDCTL,8,3               ## @POKEY_AUDCTL
	.no_dead_strip	_POKEY_siocheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function POKEY_siocheck
_POKEY_siocheck:                        ; @POKEY_siocheck
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _POKEY_AUDF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POKEY_AUDF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _POKEY_CHAN3@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POKEY_CHAN3@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #40
	mov	w10, #1
	lsl	x9, x10, x9
	mov	x10, #1280
	movk	x10, #1, lsl #16
	movk	x10, #256, lsl #32
	and	x9, x9, x10
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _POKEY_CHAN4@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POKEY_CHAN4@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _POKEY_SKCTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POKEY_SKCTL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w8, w8, #0x78
	cmp	w8, #40
	b.ne	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _POKEY_AUDCTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POKEY_AUDCTL@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #40
	bics	wzr, w9, w8
	cset	w0, eq
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_POKEY_AUDF,8,3                 ; @POKEY_AUDF
	.comm	_POKEY_CHAN3,8,3                ; @POKEY_CHAN3
	.comm	_POKEY_CHAN4,8,3                ; @POKEY_CHAN4
	.comm	_POKEY_SKCTL,4,2                ; @POKEY_SKCTL
	.comm	_POKEY_AUDCTL,8,3               ; @POKEY_AUDCTL
	.no_dead_strip	_POKEY_siocheck
.subsections_via_symbols
