	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mn88443x_set_frontend
_mn88443x_set_frontend:                 ## @mn88443x_set_frontend
	.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
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	24(%rdi), %r15
	leaq	16(%rdi), %r14
	movq	(%r15), %r13
	movq	8(%r15), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_SYS_ISDBS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_mn88443x_s_wake
	movq	%r15, %rdi
	callq	_mn88443x_t_sleep
	movq	_TSSET1_TSASEL_ISDBS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TSSET3_INTASEL_S@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_SYS_ISDBT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movl	$0, %r12d
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_mn88443x_s_sleep
	movq	%r15, %rdi
	callq	_mn88443x_t_wake
	movq	%r15, %rdi
	callq	_mn88443x_t_set_freq
	movq	_TSSET1_TSASEL_ISDBT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TSSET3_INTASEL_T@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r12d
LBB0_5:
	movq	_TSSET1@GOTPCREL(%rip), %rax
	movq	_TSSET1_TSASEL_MASK@GOTPCREL(%rip), %rsi
	movq	_TSSET1_TSBSEL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rsi), %edx
	movl	(%rax), %esi
	movq	_TSSET1_TSBSEL_NONE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r13, %rdi
	callq	_regmap_update_bits
	movq	_TSSET2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_regmap_write
	movq	_TSSET3@GOTPCREL(%rip), %rax
	movq	_TSSET3_INTASEL_MASK@GOTPCREL(%rip), %rcx
	movq	_TSSET3_INTBSEL_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_TSSET3_INTBSEL_NONE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	%r13, %rdi
	movl	%r12d, %ecx
	callq	_regmap_update_bits
	movq	_DOSET1_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$149, %edx
	callq	_regmap_write
	movq	_DOSET1_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$128, %edx
	callq	_regmap_write
	movq	(%r14), %rax
	movq	_SYS_ISDBS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mn88443x_s_tune
	jmp	LBB0_9
LBB0_7:
	movq	_SYS_ISDBT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mn88443x_t_tune
LBB0_9:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.10:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*%rax
	movq	8(%rbx), %rcx
LBB0_12:
	movq	%rbx, %rdi
	callq	*%rcx
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*%rax
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_ISDBS,8,3                  ## @SYS_ISDBS
	.comm	_TSSET1_TSASEL_ISDBS,4,2        ## @TSSET1_TSASEL_ISDBS
	.comm	_TSSET3_INTASEL_S,4,2           ## @TSSET3_INTASEL_S
	.comm	_SYS_ISDBT,8,3                  ## @SYS_ISDBT
	.comm	_TSSET1_TSASEL_ISDBT,4,2        ## @TSSET1_TSASEL_ISDBT
	.comm	_TSSET3_INTASEL_T,4,2           ## @TSSET3_INTASEL_T
	.comm	_TSSET1,4,2                     ## @TSSET1
	.comm	_TSSET1_TSASEL_MASK,4,2         ## @TSSET1_TSASEL_MASK
	.comm	_TSSET1_TSBSEL_MASK,4,2         ## @TSSET1_TSBSEL_MASK
	.comm	_TSSET1_TSBSEL_NONE,4,2         ## @TSSET1_TSBSEL_NONE
	.comm	_TSSET2,4,2                     ## @TSSET2
	.comm	_TSSET3,4,2                     ## @TSSET3
	.comm	_TSSET3_INTASEL_MASK,4,2        ## @TSSET3_INTASEL_MASK
	.comm	_TSSET3_INTBSEL_MASK,4,2        ## @TSSET3_INTBSEL_MASK
	.comm	_TSSET3_INTBSEL_NONE,4,2        ## @TSSET3_INTBSEL_NONE
	.comm	_DOSET1_T,4,2                   ## @DOSET1_T
	.comm	_DOSET1_S,4,2                   ## @DOSET1_S
	.no_dead_strip	_mn88443x_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mn88443x_set_frontend
_mn88443x_set_frontend:                 ; @mn88443x_set_frontend
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	x20, x0
	ldp	x8, x21, [x20, #16]!
	ldp	x23, x22, [x21]
Lloh0:
	adrp	x25, _SYS_ISDBS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SYS_ISDBS@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh2:
	adrp	x24, _SYS_ISDBT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SYS_ISDBT@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_mn88443x_s_wake
	mov	x0, x21
	bl	_mn88443x_t_sleep
Lloh4:
	adrp	x8, _TSSET1_TSASEL_ISDBS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TSSET1_TSASEL_ISDBS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _TSSET3_INTASEL_S@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TSSET3_INTASEL_S@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_mn88443x_s_sleep
	mov	x0, x21
	bl	_mn88443x_t_wake
	mov	x0, x21
	bl	_mn88443x_t_set_freq
Lloh9:
	adrp	x8, _TSSET1_TSASEL_ISDBT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TSSET1_TSASEL_ISDBT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _TSSET3_INTASEL_T@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TSSET3_INTASEL_T@GOTPAGEOFF]
LBB0_4:
	ldr	w26, [x9]
	b	LBB0_6
LBB0_5:
	mov	w8, #0
	mov	w26, #0
LBB0_6:
Lloh14:
	adrp	x9, _TSSET1@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TSSET1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
Lloh17:
	adrp	x9, _TSSET1_TSASEL_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TSSET1_TSASEL_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _TSSET1_TSBSEL_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TSSET1_TSBSEL_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w2, w10, w9
Lloh23:
	adrp	x9, _TSSET1_TSBSEL_NONE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TSSET1_TSBSEL_NONE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x23
	bl	_regmap_update_bits
Lloh26:
	adrp	x8, _TSSET2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TSSET2@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #0
	bl	_regmap_write
Lloh29:
	adrp	x8, _TSSET3@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TSSET3@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _TSSET3_INTASEL_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TSSET3_INTASEL_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _TSSET3_INTBSEL_MASK@GOTPAGE
Lloh36:
	ldr	x9, [x9, _TSSET3_INTBSEL_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh38:
	adrp	x8, _TSSET3_INTBSEL_NONE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TSSET3_INTBSEL_NONE@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	orr	w3, w8, w26
	mov	x0, x23
	bl	_regmap_update_bits
Lloh41:
	adrp	x8, _DOSET1_T@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DOSET1_T@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #149
	bl	_regmap_write
Lloh44:
	adrp	x8, _DOSET1_S@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DOSET1_S@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #128
	bl	_regmap_write
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	bl	_mn88443x_s_tune
	b	LBB0_10
LBB0_8:
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	bl	_mn88443x_t_tune
LBB0_10:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.11:
	ldr	x9, [x19]
	cbz	x9, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	w1, #1
	blr	x9
	ldr	x8, [x19, #8]
LBB0_13:
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x0, x19
	mov	w1, #0
	blr	x8
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_ISDBS,8,3                  ; @SYS_ISDBS
	.comm	_TSSET1_TSASEL_ISDBS,4,2        ; @TSSET1_TSASEL_ISDBS
	.comm	_TSSET3_INTASEL_S,4,2           ; @TSSET3_INTASEL_S
	.comm	_SYS_ISDBT,8,3                  ; @SYS_ISDBT
	.comm	_TSSET1_TSASEL_ISDBT,4,2        ; @TSSET1_TSASEL_ISDBT
	.comm	_TSSET3_INTASEL_T,4,2           ; @TSSET3_INTASEL_T
	.comm	_TSSET1,4,2                     ; @TSSET1
	.comm	_TSSET1_TSASEL_MASK,4,2         ; @TSSET1_TSASEL_MASK
	.comm	_TSSET1_TSBSEL_MASK,4,2         ; @TSSET1_TSBSEL_MASK
	.comm	_TSSET1_TSBSEL_NONE,4,2         ; @TSSET1_TSBSEL_NONE
	.comm	_TSSET2,4,2                     ; @TSSET2
	.comm	_TSSET3,4,2                     ; @TSSET3
	.comm	_TSSET3_INTASEL_MASK,4,2        ; @TSSET3_INTASEL_MASK
	.comm	_TSSET3_INTBSEL_MASK,4,2        ; @TSSET3_INTBSEL_MASK
	.comm	_TSSET3_INTBSEL_NONE,4,2        ; @TSSET3_INTBSEL_NONE
	.comm	_DOSET1_T,4,2                   ; @DOSET1_T
	.comm	_DOSET1_S,4,2                   ; @DOSET1_S
	.no_dead_strip	_mn88443x_set_frontend
.subsections_via_symbols
