	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda998x_bridge_mode_valid
_tda998x_bridge_mode_valid:             ## @tda998x_bridge_mode_valid
	.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	%rsi, %rbx
	callq	_bridge_to_tda998x_priv
	movq	(%rax), %rax
	movq	_TDA19988@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$165000, %eax                   ## imm = 0x28488
	movl	$150000, %ecx                   ## imm = 0x249F0
	cmovel	%eax, %ecx
	cmpl	%ecx, (%rbx)
	jle	LBB0_2
## %bb.1:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	8(%rbx), %r14
	movl	$13, %edi
	callq	_BIT
	cmpq	%rax, %r14
	jge	LBB0_3
## %bb.4:
	movq	16(%rbx), %rbx
	movl	$11, %edi
	callq	_BIT
	cmpq	%rax, %rbx
	jge	LBB0_5
## %bb.6:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_MODE_BAD_HVALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_MODE_BAD_VVALUE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA19988,8,3                   ## @TDA19988
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.comm	_MODE_BAD_HVALUE,4,2            ## @MODE_BAD_HVALUE
	.comm	_MODE_BAD_VVALUE,4,2            ## @MODE_BAD_VVALUE
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_tda998x_bridge_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda998x_bridge_mode_valid
_tda998x_bridge_mode_valid:             ; @tda998x_bridge_mode_valid
	.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, x1
	bl	_bridge_to_tda998x_priv
	ldr	w8, [x19]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _TDA19988@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TDA19988@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	mov	w9, #18928
	movk	w9, #2, lsl #16
	mov	w10, #33928
	movk	w10, #2, lsl #16
	csel	w9, w10, w9, eq
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MODE_CLOCK_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_CLOCK_HIGH@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x20, [x19, #8]
	mov	w0, #13
	bl	_BIT
	cmp	x20, x0
	b.ge	LBB0_4
; %bb.3:
	ldr	x19, [x19, #16]
	mov	w0, #11
	bl	_BIT
Lloh5:
	adrp	x8, _MODE_BAD_VVALUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MODE_BAD_VVALUE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _MODE_OK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MODE_OK@GOTPAGEOFF]
	cmp	x19, x0
	csel	x8, x9, x8, lt
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _MODE_BAD_HVALUE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MODE_BAD_HVALUE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA19988,8,3                   ; @TDA19988
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_MODE_BAD_HVALUE,4,2            ; @MODE_BAD_HVALUE
	.comm	_MODE_BAD_VVALUE,4,2            ; @MODE_BAD_VVALUE
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_tda998x_bridge_mode_valid
.subsections_via_symbols
