	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda985x_getrxsubchans
_tda985x_getrxsubchans:                 ## @tda985x_getrxsubchans
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_V4L2_TUNER_SUB_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_chip_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_TDA985x_STP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	_V4L2_TUNER_SUB_STEREO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_3:
	movq	_TDA985x_SAPP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	_V4L2_TUNER_SUB_SAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ## @V4L2_TUNER_SUB_MONO
	.comm	_TDA985x_STP,4,2                ## @TDA985x_STP
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ## @V4L2_TUNER_SUB_STEREO
	.comm	_TDA985x_SAPP,4,2               ## @TDA985x_SAPP
	.comm	_V4L2_TUNER_SUB_SAP,4,2         ## @V4L2_TUNER_SUB_SAP
	.no_dead_strip	_tda985x_getrxsubchans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda985x_getrxsubchans
_tda985x_getrxsubchans:                 ; @tda985x_getrxsubchans
	.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
Lloh0:
	adrp	x8, _V4L2_TUNER_SUB_MONO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_TUNER_SUB_MONO@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_chip_read
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _TDA985x_STP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TDA985x_STP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _V4L2_TUNER_SUB_STEREO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_TUNER_SUB_STEREO@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, w19, w9, eq
Lloh9:
	adrp	x9, _TDA985x_SAPP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TDA985x_SAPP@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _V4L2_TUNER_SUB_SAP@GOTPAGE
Lloh13:
	ldr	x10, [x10, _V4L2_TUNER_SUB_SAP@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w0
	csel	w9, wzr, w10, eq
	orr	w19, w9, w8
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_SUB_MONO,4,2        ; @V4L2_TUNER_SUB_MONO
	.comm	_TDA985x_STP,4,2                ; @TDA985x_STP
	.comm	_V4L2_TUNER_SUB_STEREO,4,2      ; @V4L2_TUNER_SUB_STEREO
	.comm	_TDA985x_SAPP,4,2               ; @TDA985x_SAPP
	.comm	_V4L2_TUNER_SUB_SAP,4,2         ; @V4L2_TUNER_SUB_SAP
	.no_dead_strip	_tda985x_getrxsubchans
.subsections_via_symbols
