	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_audio_modes_present_get
_ctrl_audio_modes_present_get:          ## @ctrl_audio_modes_present_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_pvr2_hdw_status_poll
	movl	(%rbx), %eax
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	%eax, %esi
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	movl	$1, %edi
	shll	%cl, %edi
	testl	%esi, %esi
	cmovel	%esi, %edi
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %esi
	shll	%cl, %esi
	testl	%ebx, %ebx
	cmovel	%ebx, %esi
	orl	%edi, %esi
	movq	_V4L2_TUNER_SUB_LANG1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	andl	%eax, %edi
	testl	%edi, %edi
	cmovel	%edi, %ebx
	movq	_V4L2_TUNER_SUB_LANG2@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_V4L2_TUNER_MODE_LANG2@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	orl	%ebx, %edx
	orl	%esi, %edx
	movl	%edx, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_SUB_LANG1,4,2       ## @V4L2_TUNER_SUB_LANG1
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ## @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_SUB_LANG2,4,2       ## @V4L2_TUNER_SUB_LANG2
	.comm	_V4L2_TUNER_MODE_LANG2,4,2      ## @V4L2_TUNER_MODE_LANG2
	.no_dead_strip	_ctrl_audio_modes_present_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_audio_modes_present_get
_ctrl_audio_modes_present_get:          ; @ctrl_audio_modes_present_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x20, [x0]
	mov	x0, x20
	bl	_pvr2_hdw_status_poll
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh6:
	adrp	x10, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x12, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh10:
	ldr	x12, [x12, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	lsl	w12, w11, w12
	tst	w10, w8
	csel	w10, wzr, w12, eq
	orr	w9, w10, w9
Lloh12:
	adrp	x10, _V4L2_TUNER_SUB_LANG1@GOTPAGE
Lloh13:
	ldr	x10, [x10, _V4L2_TUNER_SUB_LANG1@GOTPAGEOFF]
Lloh14:
	adrp	x12, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh15:
	ldr	x12, [x12, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	ldr	w12, [x12]
	lsl	w12, w11, w12
	tst	w10, w8
	csel	w10, wzr, w12, eq
	orr	w9, w9, w10
Lloh18:
	adrp	x10, _V4L2_TUNER_SUB_LANG2@GOTPAGE
Lloh19:
	ldr	x10, [x10, _V4L2_TUNER_SUB_LANG2@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x12, _V4L2_TUNER_MODE_LANG2@GOTPAGE
Lloh22:
	ldr	x12, [x12, _V4L2_TUNER_MODE_LANG2@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	lsl	w11, w11, w12
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.comm	_V4L2_TUNER_SUB_LANG1,4,2       ; @V4L2_TUNER_SUB_LANG1
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ; @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_SUB_LANG2,4,2       ; @V4L2_TUNER_SUB_LANG2
	.comm	_V4L2_TUNER_MODE_LANG2,4,2      ; @V4L2_TUNER_MODE_LANG2
	.no_dead_strip	_ctrl_audio_modes_present_get
.subsections_via_symbols
