	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271_toggle_output
_tda18271_toggle_output:                ## @tda18271_toggle_output
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %r12
	xorl	%esi, %esi
	testl	%r14d, %r14d
	setne	%sil
	movl	(%r12), %eax
	movq	_TDA18271_OUTPUT_LT_OFF@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	movl	(%r15), %ecx
	andl	%eax, %ecx
	setne	%dl
	movq	_TDA18271_OUTPUT_XT_OFF@GOTPCREL(%rip), %r13
	xorl	%ecx, %ecx
	andl	(%r13), %eax
	setne	%cl
	callq	_tda18271_set_standby_mode
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_tda_fail
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	(%r12), %eax
	movl	(%r13), %ecx
	andl	%eax, %ecx
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, %rdx
	cmoveq	%rdi, %rdx
	andl	(%r15), %eax
	cmoveq	%rdi, %rcx
	leaq	L_.str(%rip), %rdi
	callq	_tda_dbg
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA18271_OUTPUT_LT_OFF,4,2     ## @TDA18271_OUTPUT_LT_OFF
	.comm	_TDA18271_OUTPUT_XT_OFF,4,2     ## @TDA18271_OUTPUT_XT_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s mode: xtal oscillator %s, slave tuner loop through %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"standby"

L_.str.2:                               ## @.str.2
	.asciz	"active"

L_.str.3:                               ## @.str.3
	.asciz	"off"

L_.str.4:                               ## @.str.4
	.asciz	"on"

	.no_dead_strip	_tda18271_toggle_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271_toggle_output
_tda18271_toggle_output:                ; @tda18271_toggle_output
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	x22, [x0]
	cmp	w1, #0
	cset	w1, ne
	ldr	w8, [x22]
Lloh0:
	adrp	x21, _TDA18271_OUTPUT_LT_OFF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TDA18271_OUTPUT_LT_OFF@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	cset	w2, ne
Lloh2:
	adrp	x23, _TDA18271_OUTPUT_XT_OFF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TDA18271_OUTPUT_XT_OFF@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w3, ne
	bl	_tda18271_set_standby_mode
	mov	x20, x0
	bl	_tda_fail
	cbnz	x0, LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh6:
	adrp	x9, l_.str.2@PAGE
Lloh7:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x1, x9, x8, eq
	ldr	w8, [x22]
Lloh8:
	adrp	x9, l_.str.3@PAGE
Lloh9:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh10:
	adrp	x10, l_.str.4@PAGE
Lloh11:
	add	x10, x10, l_.str.4@PAGEOFF
	ldr	w11, [x23]
	tst	w11, w8
	csel	x2, x10, x9, eq
	ldr	w11, [x21]
	tst	w11, w8
	csel	x3, x10, x9, eq
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tda_dbg
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA18271_OUTPUT_LT_OFF,4,2     ; @TDA18271_OUTPUT_LT_OFF
	.comm	_TDA18271_OUTPUT_XT_OFF,4,2     ; @TDA18271_OUTPUT_XT_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s mode: xtal oscillator %s, slave tuner loop through %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"standby"

l_.str.2:                               ; @.str.2
	.asciz	"active"

l_.str.3:                               ; @.str.3
	.asciz	"off"

l_.str.4:                               ; @.str.4
	.asciz	"on"

	.no_dead_strip	_tda18271_toggle_output
.subsections_via_symbols
