	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda18271_agc
_tda18271_agc:                          ## @tda18271_agc
	.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	8(%rdi), %r14
	movl	(%r14), %esi
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_7
## %bb.2:
	movq	_tda18271_debug@GOTPCREL(%rip), %rax
	movq	_DBG_ADV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, (%rax)
	je	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_tda_dbg
	jmp	LBB0_8
LBB0_4:
	movq	%rdi, %rbx
	leaq	L_.str.1(%rip), %rdi
	callq	_tda_dbg
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	8(%r14), %rcx
	movl	(%rcx), %edi
	movq	_DVB_FRONTEND_COMPONENT_TUNER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_TDA18271_CALLBACK_CMD_AGC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	4(%r14), %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_tda_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tda18271_debug,4,2             ## @tda18271_debug
	.comm	_DBG_ADV,4,2                    ## @DBG_ADV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no agc configuration provided\n"

L_.str.1:                               ## @.str.1
	.asciz	"invoking callback\n"

	.comm	_DVB_FRONTEND_COMPONENT_TUNER,4,2 ## @DVB_FRONTEND_COMPONENT_TUNER
	.comm	_TDA18271_CALLBACK_CMD_AGC_ENABLE,4,2 ## @TDA18271_CALLBACK_CMD_AGC_ENABLE
L_.str.2:                               ## @.str.2
	.asciz	"unsupported configuration: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tda18271_agc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda18271_agc
_tda18271_agc:                          ; @tda18271_agc
	.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
	ldr	x20, [x0, #8]
	ldr	w1, [x20]
	cmp	w1, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _tda18271_debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tda18271_debug@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DBG_ADV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DBG_ADV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tda_dbg
	b	LBB0_6
LBB0_4:
	mov	x19, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tda_dbg
	ldr	x4, [x19]
	cbz	x4, LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _DVB_FRONTEND_COMPONENT_TUNER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DVB_FRONTEND_COMPONENT_TUNER@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _TDA18271_CALLBACK_CMD_AGC_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TDA18271_CALLBACK_CMD_AGC_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	w3, [x20, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x4
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_tda_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_tda18271_debug,4,2             ; @tda18271_debug
	.comm	_DBG_ADV,4,2                    ; @DBG_ADV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no agc configuration provided\n"

l_.str.1:                               ; @.str.1
	.asciz	"invoking callback\n"

	.comm	_DVB_FRONTEND_COMPONENT_TUNER,4,2 ; @DVB_FRONTEND_COMPONENT_TUNER
	.comm	_TDA18271_CALLBACK_CMD_AGC_ENABLE,4,2 ; @TDA18271_CALLBACK_CMD_AGC_ENABLE
l_.str.2:                               ; @.str.2
	.asciz	"unsupported configuration: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tda18271_agc
.subsections_via_symbols
