	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ta8874z_getmode
_ta8874z_getmode:                       ## @ta8874z_getmode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_chip_read
	movl	%eax, %ecx
	movq	_V4L2_TUNER_MODE_MONO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TA8874Z_B1@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rcx
	movq	_V4L2_TUNER_MODE_LANG2@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_TA8874Z_B0@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.4:
	popq	%rbp
	retq
LBB0_3:
	movq	_V4L2_TUNER_MODE_STEREO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ## @V4L2_TUNER_MODE_MONO
	.comm	_TA8874Z_B1,4,2                 ## @TA8874Z_B1
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ## @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_MODE_LANG2,4,2      ## @V4L2_TUNER_MODE_LANG2
	.comm	_TA8874Z_B0,4,2                 ## @TA8874Z_B0
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ## @V4L2_TUNER_MODE_STEREO
	.no_dead_strip	_ta8874z_getmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ta8874z_getmode
_ta8874z_getmode:                       ; @ta8874z_getmode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_chip_read
	mov	x8, x0
Lloh0:
	adrp	x9, _V4L2_TUNER_MODE_MONO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_TUNER_MODE_MONO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _TA8874Z_B1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TA8874Z_B1@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _V4L2_TUNER_MODE_LANG2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_TUNER_MODE_LANG2@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh12:
	adrp	x9, _TA8874Z_B0@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TA8874Z_B0@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh15:
	adrp	x8, _V4L2_TUNER_MODE_STEREO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_TUNER_MODE_STEREO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_TUNER_MODE_MONO,4,2       ; @V4L2_TUNER_MODE_MONO
	.comm	_TA8874Z_B1,4,2                 ; @TA8874Z_B1
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ; @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_TUNER_MODE_LANG2,4,2      ; @V4L2_TUNER_MODE_LANG2
	.comm	_TA8874Z_B0,4,2                 ; @TA8874Z_B0
	.comm	_V4L2_TUNER_MODE_STEREO,4,2     ; @V4L2_TUNER_MODE_STEREO
	.no_dead_strip	_ta8874z_getmode
.subsections_via_symbols
