	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_demod
_config_demod:                          ## @config_demod
	.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	%r12
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	8(%rdi), %r14d
	movq	_TC90522_I2C_DEV_SAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_strncmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.7:
	movq	_PT1_FE_CLK_20MHZ@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.9:
	movq	_va1j5jf8007t_20mhz_configs@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
	movl	$7, -120(%rbp)
	movl	4(%r12), %eax
	movl	%eax, -88(%rbp)
	movq	$0, -96(%rbp)
	movl	$1, -112(%rbp)
	leaq	-120(%rbp), %rcx
	movq	%rcx, -104(%rbp)
	movl	%eax, -56(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movl	$1, -80(%rbp)
	leaq	-116(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	(%r12), %edi
	leaq	-112(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	js	LBB0_14
## %bb.2:
	cmpl	$65, -116(%rbp)
	jne	LBB0_3
## %bb.4:
	movq	_PT1_FE_CLK_20MHZ@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	_va1j5jf8007s_20mhz_configs@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_va1j5jf8007t_25mhz_configs@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_15
## %bb.11:
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_i2c_master_send
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$8, %rbx
	decq	%r15
	jne	LBB0_13
	jmp	LBB0_15
LBB0_14:
	movl	%eax, %r14d
	jmp	LBB0_15
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r14d, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_va1j5jf8007s_25mhz_configs@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TC90522_I2C_DEV_SAT,4,2        ## @TC90522_I2C_DEV_SAT
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.comm	_EIO,4,2                        ## @EIO
	.comm	_PT1_FE_CLK_20MHZ,4,2           ## @PT1_FE_CLK_20MHZ
	.comm	_va1j5jf8007s_20mhz_configs,8,3 ## @va1j5jf8007s_20mhz_configs
	.comm	_va1j5jf8007t_20mhz_configs,8,3 ## @va1j5jf8007t_20mhz_configs
	.comm	_va1j5jf8007s_25mhz_configs,8,3 ## @va1j5jf8007s_25mhz_configs
	.comm	_va1j5jf8007t_25mhz_configs,8,3 ## @va1j5jf8007t_25mhz_configs
	.no_dead_strip	_config_demod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_demod
_config_demod:                          ; @config_demod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w21, [x0, #8]
Lloh3:
	adrp	x8, _TC90522_I2C_DEV_SAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TC90522_I2C_DEV_SAT@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_strncmp
	cbz	w0, LBB0_7
; %bb.1:
Lloh6:
	adrp	x8, _PT1_FE_CLK_20MHZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PT1_FE_CLK_20MHZ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _va1j5jf8007t_25mhz_configs@GOTPAGE
Lloh10:
	ldr	x9, [x9, _va1j5jf8007t_25mhz_configs@GOTPAGEOFF]
Lloh11:
	adrp	x10, _va1j5jf8007t_20mhz_configs@GOTPAGE
Lloh12:
	ldr	x10, [x10, _va1j5jf8007t_20mhz_configs@GOTPAGEOFF]
LBB0_2:
	cmp	w8, w20
	csel	x8, x10, x9, eq
	ldr	x20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w21, w0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #2
	bl	_i2c_master_send
	tbnz	w0, #31, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #8
	subs	x21, x21, #1
	b.ne	LBB0_4
LBB0_6:
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	mov	w9, #7
	mov	w8, #1
	stp	w9, w8, [sp, #4]
	add	x9, sp, #4
	stp	x9, xzr, [sp, #16]
	ldp	w0, w9, [x19]
	str	w9, [sp, #64]
Lloh13:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh14:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	str	w9, [sp, #32]
	str	w8, [sp, #40]
	mov	x8, sp
	stp	x8, x10, [sp, #48]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	tbnz	w0, #31, LBB0_11
; %bb.8:
	ldr	w8, [sp]
	cmp	w8, #65
	b.ne	LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _PT1_FE_CLK_20MHZ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PT1_FE_CLK_20MHZ@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _va1j5jf8007s_25mhz_configs@GOTPAGE
Lloh20:
	ldr	x9, [x9, _va1j5jf8007s_25mhz_configs@GOTPAGEOFF]
Lloh21:
	adrp	x10, _va1j5jf8007s_20mhz_configs@GOTPAGE
Lloh22:
	ldr	x10, [x10, _va1j5jf8007s_20mhz_configs@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldur	x8, [x29, #-40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_TC90522_I2C_DEV_SAT,4,2        ; @TC90522_I2C_DEV_SAT
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.comm	_EIO,4,2                        ; @EIO
	.comm	_PT1_FE_CLK_20MHZ,4,2           ; @PT1_FE_CLK_20MHZ
	.comm	_va1j5jf8007s_20mhz_configs,8,3 ; @va1j5jf8007s_20mhz_configs
	.comm	_va1j5jf8007t_20mhz_configs,8,3 ; @va1j5jf8007t_20mhz_configs
	.comm	_va1j5jf8007s_25mhz_configs,8,3 ; @va1j5jf8007s_25mhz_configs
	.comm	_va1j5jf8007t_25mhz_configs,8,3 ; @va1j5jf8007t_25mhz_configs
	.no_dead_strip	_config_demod
.subsections_via_symbols
