	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda10046h_set_bandwidth
_tda10046h_set_bandwidth:               ## @tda10046h_set_bandwidth
	.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, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_TDA10046_FREQ_045@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	sete	%cl
	movq	_TDA10046_FREQ_052@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	cmpl	$8000000, %esi                  ## imm = 0x7A1200
	je	LBB0_7
## %bb.1:
	cmpl	$7000000, %esi                  ## imm = 0x6ACFC0
	je	LBB0_5
## %bb.2:
	cmpl	$6000000, %esi                  ## imm = 0x5B8D80
	jne	LBB0_9
## %bb.3:
	movq	_TDA10046H_TIME_WREF1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	_tda10046h_set_bandwidth.bandwidth_6mhz_48M(%rip), %rcx
	leaq	_tda10046h_set_bandwidth.bandwidth_6mhz_53M(%rip), %rdx
	testb	%al, %al
	cmovneq	%rcx, %rdx
	movq	%rbx, %rdi
	movl	$20, %ecx
	callq	_tda1004x_write_buf
	movq	(%rbx), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.4:
	movq	_TDA10046H_FREQ_PHY2_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_tda1004x_write_byteI
	movq	_TDA10046H_FREQ_PHY2_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$171, %edx
	callq	_tda1004x_write_byteI
	jmp	LBB0_10
LBB0_7:
	movq	_TDA10046H_TIME_WREF1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	_tda10046h_set_bandwidth.bandwidth_8mhz_48M(%rip), %rcx
	leaq	_tda10046h_set_bandwidth.bandwidth_8mhz_53M(%rip), %rdx
	testb	%al, %al
	cmovneq	%rcx, %rdx
	movq	%rbx, %rdi
	movl	$20, %ecx
	callq	_tda1004x_write_buf
	movq	(%rbx), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.8:
	movq	_TDA10046H_FREQ_PHY2_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$13, %edx
	callq	_tda1004x_write_byteI
	movq	_TDA10046H_FREQ_PHY2_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$85, %edx
	callq	_tda1004x_write_byteI
	jmp	LBB0_10
LBB0_5:
	movq	_TDA10046H_TIME_WREF1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	_tda10046h_set_bandwidth.bandwidth_7mhz_48M(%rip), %rcx
	leaq	_tda10046h_set_bandwidth.bandwidth_7mhz_53M(%rip), %rdx
	testb	%al, %al
	cmovneq	%rcx, %rdx
	movq	%rbx, %rdi
	movl	$20, %ecx
	callq	_tda1004x_write_buf
	movq	(%rbx), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.6:
	movq	_TDA10046H_FREQ_PHY2_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_tda1004x_write_byteI
	movq	_TDA10046H_FREQ_PHY2_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_tda1004x_write_byteI
	jmp	LBB0_10
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @tda10046h_set_bandwidth.bandwidth_6mhz_53M
_tda10046h_set_bandwidth.bandwidth_6mhz_53M:
	.long	123                             ## 0x7b
	.long	46                              ## 0x2e
	.long	17                              ## 0x11
	.long	240                             ## 0xf0
	.long	210                             ## 0xd2

	.p2align	4                               ## @tda10046h_set_bandwidth.bandwidth_7mhz_53M
_tda10046h_set_bandwidth.bandwidth_7mhz_53M:
	.long	106                             ## 0x6a
	.long	2                               ## 0x2
	.long	106                             ## 0x6a
	.long	67                              ## 0x43
	.long	159                             ## 0x9f

	.p2align	4                               ## @tda10046h_set_bandwidth.bandwidth_8mhz_53M
_tda10046h_set_bandwidth.bandwidth_8mhz_53M:
	.long	92                              ## 0x5c
	.long	50                              ## 0x32
	.long	194                             ## 0xc2
	.long	150                             ## 0x96
	.long	109                             ## 0x6d

	.p2align	4                               ## @tda10046h_set_bandwidth.bandwidth_6mhz_48M
_tda10046h_set_bandwidth.bandwidth_6mhz_48M:
	.long	112                             ## 0x70
	.long	2                               ## 0x2
	.long	73                              ## 0x49
	.long	36                              ## 0x24
	.long	146                             ## 0x92

	.p2align	4                               ## @tda10046h_set_bandwidth.bandwidth_7mhz_48M
_tda10046h_set_bandwidth.bandwidth_7mhz_48M:
	.long	96                              ## 0x60
	.long	2                               ## 0x2
	.long	170                             ## 0xaa
	.long	170                             ## 0xaa
	.long	171                             ## 0xab

	.p2align	4                               ## @tda10046h_set_bandwidth.bandwidth_8mhz_48M
_tda10046h_set_bandwidth.bandwidth_8mhz_48M:
	.long	84                              ## 0x54
	.long	3                               ## 0x3
	.long	12                              ## 0xc
	.long	48                              ## 0x30
	.long	195                             ## 0xc3

	.comm	_TDA10046_FREQ_045,8,3          ## @TDA10046_FREQ_045
	.comm	_TDA10046_FREQ_052,8,3          ## @TDA10046_FREQ_052
	.comm	_TDA10046H_TIME_WREF1,4,2       ## @TDA10046H_TIME_WREF1
	.comm	_TDA10046H_FREQ_PHY2_MSB,4,2    ## @TDA10046H_FREQ_PHY2_MSB
	.comm	_TDA10046H_FREQ_PHY2_LSB,4,2    ## @TDA10046H_FREQ_PHY2_LSB
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tda10046h_set_bandwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda10046h_set_bandwidth
_tda10046h_set_bandwidth:               ; @tda10046h_set_bandwidth
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x20, _TDA10046_FREQ_045@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TDA10046_FREQ_045@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh2:
	adrp	x10, _TDA10046_FREQ_052@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TDA10046_FREQ_052@GOTPAGEOFF]
	cmp	x8, x9
Lloh4:
	ldr	x9, [x10]
	ccmp	x8, x9, #4, ne
	cset	w8, eq
	sub	w9, w1, #1953, lsl #12          ; =7999488
	cmp	w9, #512
	b.eq	LBB0_5
; %bb.1:
	mov	w9, #53184
	movk	w9, #106, lsl #16
	cmp	w1, w9
	b.eq	LBB0_7
; %bb.2:
	mov	w9, #36224
	movk	w9, #91, lsl #16
	cmp	w1, w9
	b.ne	LBB0_11
; %bb.3:
Lloh5:
	adrp	x9, _TDA10046H_TIME_WREF1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TDA10046H_TIME_WREF1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
Lloh8:
	adrp	x9, _tda10046h_set_bandwidth.bandwidth_6mhz_53M@PAGE
Lloh9:
	add	x9, x9, _tda10046h_set_bandwidth.bandwidth_6mhz_53M@PAGEOFF
Lloh10:
	adrp	x10, _tda10046h_set_bandwidth.bandwidth_6mhz_48M@PAGE
Lloh11:
	add	x10, x10, _tda10046h_set_bandwidth.bandwidth_6mhz_48M@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, ne
	mov	x0, x19
	mov	w3, #20
	bl	_tda1004x_write_buf
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
Lloh12:
	adrp	x8, _TDA10046H_FREQ_PHY2_MSB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TDA10046H_FREQ_PHY2_MSB@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #10
	bl	_tda1004x_write_byteI
Lloh15:
	adrp	x8, _TDA10046H_FREQ_PHY2_LSB@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TDA10046H_FREQ_PHY2_LSB@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #171
	b	LBB0_9
LBB0_5:
Lloh18:
	adrp	x9, _TDA10046H_TIME_WREF1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TDA10046H_TIME_WREF1@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
Lloh21:
	adrp	x9, _tda10046h_set_bandwidth.bandwidth_8mhz_53M@PAGE
Lloh22:
	add	x9, x9, _tda10046h_set_bandwidth.bandwidth_8mhz_53M@PAGEOFF
Lloh23:
	adrp	x10, _tda10046h_set_bandwidth.bandwidth_8mhz_48M@PAGE
Lloh24:
	add	x10, x10, _tda10046h_set_bandwidth.bandwidth_8mhz_48M@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, ne
	mov	x0, x19
	mov	w3, #20
	bl	_tda1004x_write_buf
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
Lloh25:
	adrp	x8, _TDA10046H_FREQ_PHY2_MSB@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TDA10046H_FREQ_PHY2_MSB@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #13
	bl	_tda1004x_write_byteI
Lloh28:
	adrp	x8, _TDA10046H_FREQ_PHY2_LSB@GOTPAGE
Lloh29:
	ldr	x8, [x8, _TDA10046H_FREQ_PHY2_LSB@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #85
	b	LBB0_9
LBB0_7:
Lloh31:
	adrp	x9, _TDA10046H_TIME_WREF1@GOTPAGE
Lloh32:
	ldr	x9, [x9, _TDA10046H_TIME_WREF1@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
Lloh34:
	adrp	x9, _tda10046h_set_bandwidth.bandwidth_7mhz_53M@PAGE
Lloh35:
	add	x9, x9, _tda10046h_set_bandwidth.bandwidth_7mhz_53M@PAGEOFF
Lloh36:
	adrp	x10, _tda10046h_set_bandwidth.bandwidth_7mhz_48M@PAGE
Lloh37:
	add	x10, x10, _tda10046h_set_bandwidth.bandwidth_7mhz_48M@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, ne
	mov	x0, x19
	mov	w3, #20
	bl	_tda1004x_write_buf
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh38:
	adrp	x8, _TDA10046H_FREQ_PHY2_MSB@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TDA10046H_FREQ_PHY2_MSB@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #12
	bl	_tda1004x_write_byteI
Lloh41:
	adrp	x8, _TDA10046H_FREQ_PHY2_LSB@GOTPAGE
Lloh42:
	ldr	x8, [x8, _TDA10046H_FREQ_PHY2_LSB@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
LBB0_9:
	bl	_tda1004x_write_byteI
LBB0_10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @tda10046h_set_bandwidth.bandwidth_6mhz_53M
_tda10046h_set_bandwidth.bandwidth_6mhz_53M:
	.long	123                             ; 0x7b
	.long	46                              ; 0x2e
	.long	17                              ; 0x11
	.long	240                             ; 0xf0
	.long	210                             ; 0xd2

	.p2align	2                               ; @tda10046h_set_bandwidth.bandwidth_7mhz_53M
_tda10046h_set_bandwidth.bandwidth_7mhz_53M:
	.long	106                             ; 0x6a
	.long	2                               ; 0x2
	.long	106                             ; 0x6a
	.long	67                              ; 0x43
	.long	159                             ; 0x9f

	.p2align	2                               ; @tda10046h_set_bandwidth.bandwidth_8mhz_53M
_tda10046h_set_bandwidth.bandwidth_8mhz_53M:
	.long	92                              ; 0x5c
	.long	50                              ; 0x32
	.long	194                             ; 0xc2
	.long	150                             ; 0x96
	.long	109                             ; 0x6d

	.p2align	2                               ; @tda10046h_set_bandwidth.bandwidth_6mhz_48M
_tda10046h_set_bandwidth.bandwidth_6mhz_48M:
	.long	112                             ; 0x70
	.long	2                               ; 0x2
	.long	73                              ; 0x49
	.long	36                              ; 0x24
	.long	146                             ; 0x92

	.p2align	2                               ; @tda10046h_set_bandwidth.bandwidth_7mhz_48M
_tda10046h_set_bandwidth.bandwidth_7mhz_48M:
	.long	96                              ; 0x60
	.long	2                               ; 0x2
	.long	170                             ; 0xaa
	.long	170                             ; 0xaa
	.long	171                             ; 0xab

	.p2align	2                               ; @tda10046h_set_bandwidth.bandwidth_8mhz_48M
_tda10046h_set_bandwidth.bandwidth_8mhz_48M:
	.long	84                              ; 0x54
	.long	3                               ; 0x3
	.long	12                              ; 0xc
	.long	48                              ; 0x30
	.long	195                             ; 0xc3

	.comm	_TDA10046_FREQ_045,8,3          ; @TDA10046_FREQ_045
	.comm	_TDA10046_FREQ_052,8,3          ; @TDA10046_FREQ_052
	.comm	_TDA10046H_TIME_WREF1,4,2       ; @TDA10046H_TIME_WREF1
	.comm	_TDA10046H_FREQ_PHY2_MSB,4,2    ; @TDA10046H_FREQ_PHY2_MSB
	.comm	_TDA10046H_FREQ_PHY2_LSB,4,2    ; @TDA10046H_FREQ_PHY2_LSB
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tda10046h_set_bandwidth
.subsections_via_symbols
