	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_audio
_set_audio:                             ## @set_audio
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movl	(%rsi), %eax
	movq	_V4L2_STD_MN@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_2
## %bb.1:
	movl	$1, (%rcx)
	leaq	L_.str(%rip), %rax
	jmp	LBB0_15
LBB0_2:
	movq	_V4L2_STD_B@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.3:
	movl	$2, (%rcx)
	leaq	L_.str.1(%rip), %rax
	jmp	LBB0_15
LBB0_4:
	movq	_V4L2_STD_GH@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.5:
	movl	$4, (%rcx)
	leaq	L_.str.2(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	movq	_V4L2_STD_PAL_I@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_8
## %bb.7:
	movl	$8, (%rcx)
	leaq	L_.str.3(%rip), %rax
	jmp	LBB0_15
LBB0_8:
	movq	_V4L2_STD_DK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.9:
	movl	$16, (%rcx)
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_V4L2_STD_SECAM_L@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_12
## %bb.11:
	movl	$32, (%rcx)
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_15
LBB0_12:
	movq	_V4L2_STD_SECAM_LC@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_14
## %bb.13:
	movl	$64, (%rcx)
	leaq	L_.str.6(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movl	$16, (%rcx)
	leaq	L_.str.7(%rip), %rax
LBB0_15:
	movq	8(%rsi), %rdx
	movq	_V4L2_TUNER_RADIO@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_17
## %bb.16:
	movq	_TDA8295@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rcx), %eax
	movl	$1, %eax
	movl	$128, %edx
	cmovel	%eax, %edx
	movl	%edx, (%rcx)
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_tuner_dbg                      ## TAILCALL
LBB0_17:
	leaq	L_.str.9(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	popq	%rbp
	jmp	_tuner_dbg                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_MN,4,2                ## @V4L2_STD_MN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MN"

	.comm	_V4L2_STD_B,4,2                 ## @V4L2_STD_B
L_.str.1:                               ## @.str.1
	.asciz	"B"

	.comm	_V4L2_STD_GH,4,2                ## @V4L2_STD_GH
L_.str.2:                               ## @.str.2
	.asciz	"GH"

	.comm	_V4L2_STD_PAL_I,4,2             ## @V4L2_STD_PAL_I
L_.str.3:                               ## @.str.3
	.asciz	"I"

	.comm	_V4L2_STD_DK,4,2                ## @V4L2_STD_DK
L_.str.4:                               ## @.str.4
	.asciz	"DK"

	.comm	_V4L2_STD_SECAM_L,4,2           ## @V4L2_STD_SECAM_L
L_.str.5:                               ## @.str.5
	.asciz	"L"

	.comm	_V4L2_STD_SECAM_LC,4,2          ## @V4L2_STD_SECAM_LC
L_.str.6:                               ## @.str.6
	.asciz	"LC"

L_.str.7:                               ## @.str.7
	.asciz	"xx"

	.comm	_V4L2_TUNER_RADIO,8,3           ## @V4L2_TUNER_RADIO
	.comm	_TDA8295,4,2                    ## @TDA8295
L_.str.8:                               ## @.str.8
	.asciz	"setting to radio FM\n"

L_.str.9:                               ## @.str.9
	.asciz	"setting tda829x to system %s\n"

	.no_dead_strip	_set_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_audio
_set_audio:                             ; @set_audio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	x8, [x0]
	ldr	w9, [x1]
Lloh0:
	adrp	x10, _V4L2_STD_MN@GOTPAGE
Lloh1:
	ldr	x10, [x10, _V4L2_STD_MN@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [x8]
Lloh3:
	adrp	x9, l_.str@PAGE
Lloh4:
	add	x9, x9, l_.str@PAGEOFF
	b	LBB0_15
LBB0_2:
Lloh5:
	adrp	x10, _V4L2_STD_B@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_STD_B@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	mov	w9, #2
	str	w9, [x8]
Lloh8:
	adrp	x9, l_.str.1@PAGE
Lloh9:
	add	x9, x9, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_4:
Lloh10:
	adrp	x10, _V4L2_STD_GH@GOTPAGE
Lloh11:
	ldr	x10, [x10, _V4L2_STD_GH@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.5:
	mov	w9, #4
	str	w9, [x8]
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_6:
Lloh15:
	adrp	x10, _V4L2_STD_PAL_I@GOTPAGE
Lloh16:
	ldr	x10, [x10, _V4L2_STD_PAL_I@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	mov	w9, #8
	str	w9, [x8]
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_8:
Lloh20:
	adrp	x10, _V4L2_STD_DK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _V4L2_STD_DK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.9:
	mov	w9, #16
	str	w9, [x8]
Lloh23:
	adrp	x9, l_.str.4@PAGE
Lloh24:
	add	x9, x9, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_10:
Lloh25:
	adrp	x10, _V4L2_STD_SECAM_L@GOTPAGE
Lloh26:
	ldr	x10, [x10, _V4L2_STD_SECAM_L@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_12
; %bb.11:
	mov	w9, #32
	str	w9, [x8]
Lloh28:
	adrp	x9, l_.str.5@PAGE
Lloh29:
	add	x9, x9, l_.str.5@PAGEOFF
	b	LBB0_15
LBB0_12:
Lloh30:
	adrp	x10, _V4L2_STD_SECAM_LC@GOTPAGE
Lloh31:
	ldr	x10, [x10, _V4L2_STD_SECAM_LC@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_14
; %bb.13:
	mov	w9, #64
	str	w9, [x8]
Lloh33:
	adrp	x9, l_.str.6@PAGE
Lloh34:
	add	x9, x9, l_.str.6@PAGEOFF
	b	LBB0_15
LBB0_14:
	mov	w9, #16
	str	w9, [x8]
Lloh35:
	adrp	x9, l_.str.7@PAGE
Lloh36:
	add	x9, x9, l_.str.7@PAGEOFF
LBB0_15:
	ldr	x10, [x1, #8]
Lloh37:
	adrp	x11, _V4L2_TUNER_RADIO@GOTPAGE
Lloh38:
	ldr	x11, [x11, _V4L2_TUNER_RADIO@GOTPAGEOFF]
Lloh39:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_17
; %bb.16:
	ldr	w9, [x8, #4]
Lloh40:
	adrp	x10, _TDA8295@GOTPAGE
Lloh41:
	ldr	x10, [x10, _TDA8295@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #128
	csinc	w9, w9, wzr, ne
	str	w9, [x8]
Lloh43:
	adrp	x0, l_.str.8@PAGE
Lloh44:
	add	x0, x0, l_.str.8@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_tuner_dbg
LBB0_17:
	str	x9, [sp]
Lloh45:
	adrp	x0, l_.str.9@PAGE
Lloh46:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_tuner_dbg
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_MN,4,2                ; @V4L2_STD_MN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MN"

	.comm	_V4L2_STD_B,4,2                 ; @V4L2_STD_B
l_.str.1:                               ; @.str.1
	.asciz	"B"

	.comm	_V4L2_STD_GH,4,2                ; @V4L2_STD_GH
l_.str.2:                               ; @.str.2
	.asciz	"GH"

	.comm	_V4L2_STD_PAL_I,4,2             ; @V4L2_STD_PAL_I
l_.str.3:                               ; @.str.3
	.asciz	"I"

	.comm	_V4L2_STD_DK,4,2                ; @V4L2_STD_DK
l_.str.4:                               ; @.str.4
	.asciz	"DK"

	.comm	_V4L2_STD_SECAM_L,4,2           ; @V4L2_STD_SECAM_L
l_.str.5:                               ; @.str.5
	.asciz	"L"

	.comm	_V4L2_STD_SECAM_LC,4,2          ; @V4L2_STD_SECAM_LC
l_.str.6:                               ; @.str.6
	.asciz	"LC"

l_.str.7:                               ; @.str.7
	.asciz	"xx"

	.comm	_V4L2_TUNER_RADIO,8,3           ; @V4L2_TUNER_RADIO
	.comm	_TDA8295,4,2                    ; @TDA8295
l_.str.8:                               ; @.str.8
	.asciz	"setting to radio FM\n"

l_.str.9:                               ; @.str.9
	.asciz	"setting tda829x to system %s\n"

	.no_dead_strip	_set_audio
.subsections_via_symbols
