	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9887_configure
_tda9887_configure:                     ## @tda9887_configure
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r14, %rdi
	callq	_tda9887_set_tvnorm
	movq	_cOutputPort1Inactive@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	movl	4(%rcx), %edx
	orl	(%rax), %edx
	movq	_cOutputPort2Inactive@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 4(%rcx)
	movq	%r14, %rdi
	callq	_tda9887_do_config
	movq	%r14, %rdi
	callq	_tda9887_set_insmod
	cmpq	$0, 16(%rbx)
	je	LBB0_1
## %bb.2:
	movq	_cForcedMuteAudioON@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	orl	(%rcx), %esi
	movl	%esi, 4(%rax)
	jmp	LBB0_3
LBB0_1:
	movq	(%rbx), %rax
	movl	4(%rax), %esi
LBB0_3:
	movl	8(%rax), %edx
	movl	12(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_tuner_dbg
	movq	_debug@GOTPCREL(%rip), %r15
	cmpl	$2, (%r15)
	jl	LBB0_5
## %bb.4:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_dump_write_message
LBB0_5:
	movq	(%rbx), %rsi
	addq	$8, %rbx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_tuner_i2c_xfer_send
	cmpl	$4, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_tuner_info
LBB0_7:
	cmpl	$3, (%r15)
	jl	LBB0_8
## %bb.9:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msleep_interruptible
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tda9887_status                 ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cOutputPort1Inactive,4,2       ## @cOutputPort1Inactive
	.comm	_cOutputPort2Inactive,4,2       ## @cOutputPort2Inactive
	.comm	_cForcedMuteAudioON,4,2         ## @cForcedMuteAudioON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"writing: b=0x%02x c=0x%02x e=0x%02x\n"

	.comm	_debug,4,2                      ## @debug
L_.str.1:                               ## @.str.1
	.asciz	"i2c i/o error: rc == %d (should be 4)\n"

	.no_dead_strip	_tda9887_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9887_configure
_tda9887_configure:                     ; @tda9887_configure
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	x0, [x20]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x19
	bl	_tda9887_set_tvnorm
Lloh0:
	adrp	x8, _cOutputPort1Inactive@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cOutputPort1Inactive@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w10, [x9, #4]
	orr	w8, w10, w8
Lloh3:
	adrp	x10, _cOutputPort2Inactive@GOTPAGE
Lloh4:
	ldr	x10, [x10, _cOutputPort2Inactive@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x9, #4]
	mov	x0, x19
	bl	_tda9887_do_config
	mov	x0, x19
	bl	_tda9887_set_insmod
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _cForcedMuteAudioON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cForcedMuteAudioON@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	x8, [x20]
	ldr	w10, [x8, #4]
	orr	w1, w10, w9
	str	w1, [x8, #4]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20]
	ldr	w1, [x8, #4]
LBB0_3:
	ldp	w2, w3, [x8, #8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_tuner_dbg
Lloh11:
	adrp	x21, _debug@GOTPAGE
Lloh12:
	ldr	x21, [x21, _debug@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.4:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_dump_write_message
LBB0_5:
	ldr	x1, [x20], #8
	mov	x0, x20
	mov	w2, #4
	bl	_tuner_i2c_xfer_send
	cmp	w0, #4
	b.eq	LBB0_7
; %bb.6:
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_tuner_info
LBB0_7:
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.8:
	mov	w0, #1000
	bl	_msleep_interruptible
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tda9887_status
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_cOutputPort1Inactive,4,2       ; @cOutputPort1Inactive
	.comm	_cOutputPort2Inactive,4,2       ; @cOutputPort2Inactive
	.comm	_cForcedMuteAudioON,4,2         ; @cForcedMuteAudioON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"writing: b=0x%02x c=0x%02x e=0x%02x\n"

	.comm	_debug,4,2                      ; @debug
l_.str.1:                               ; @.str.1
	.asciz	"i2c i/o error: rc == %d (should be 4)\n"

	.no_dead_strip	_tda9887_configure
.subsections_via_symbols
