	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxl111sf_demod_set_frontend
_mxl111sf_demod_set_frontend:           ## @mxl111sf_demod_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	%r14
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %r14
	movl	l___const.mxl111sf_demod_set_frontend.phy_pll_patch+80(%rip), %eax
	movl	%eax, -32(%rbp)
	movaps	l___const.mxl111sf_demod_set_frontend.phy_pll_patch+64(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	l___const.mxl111sf_demod_set_frontend.phy_pll_patch+48(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.mxl111sf_demod_set_frontend.phy_pll_patch+32(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.mxl111sf_demod_set_frontend.phy_pll_patch+16(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	l___const.mxl111sf_demod_set_frontend.phy_pll_patch(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_mxl_dbg
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movl	$50, %edi
	callq	_msleep
LBB0_3:
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mxl111sf_demod_program_regs
	movl	%eax, %edi
	callq	_mxl_fail
	movl	$50, %edi
	callq	_msleep
	movq	%r14, %rdi
	callq	_mxl1x1sf_demod_reset_irq_status
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_mxl_fail
	movl	$100, %edi
	callq	_msleep
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%ebx, %eax
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.mxl111sf_demod_set_frontend.phy_pll_patch
l___const.mxl111sf_demod_set_frontend.phy_pll_patch:
	.long	0                               ## 0x0
	.long	255                             ## 0xff
	.long	1                               ## 0x1
	.long	64                              ## 0x40
	.long	255                             ## 0xff
	.long	5                               ## 0x5
	.long	64                              ## 0x40
	.long	255                             ## 0xff
	.long	1                               ## 0x1
	.long	65                              ## 0x41
	.long	255                             ## 0xff
	.long	202                             ## 0xca
	.long	65                              ## 0x41
	.long	255                             ## 0xff
	.long	192                             ## 0xc0
	.long	0                               ## 0x0
	.long	255                             ## 0xff
	.long	0                               ## 0x0
	.space	12

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"()"

	.no_dead_strip	_mxl111sf_demod_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxl111sf_demod_set_frontend
_mxl111sf_demod_set_frontend:           ; @mxl111sf_demod_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x19, [x0, #8]
Lloh3:
	adrp	x8, l___const.mxl111sf_demod_set_frontend.phy_pll_patch@PAGE
Lloh4:
	add	x8, x8, l___const.mxl111sf_demod_set_frontend.phy_pll_patch@PAGEOFF
	ldp	q0, q1, [x8, #32]
	stp	q0, q1, [sp, #32]
	ldr	q0, [x8, #64]
	str	q0, [sp, #64]
	ldr	w9, [x8, #80]
	str	w9, [sp, #80]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_mxl_dbg
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x20
	blr	x8
	mov	x20, x0
	bl	_mxl_fail
	cbnz	x0, LBB0_4
; %bb.2:
	mov	w0, #50
	bl	_msleep
LBB0_3:
	mov	x1, sp
	mov	x0, x19
	bl	_mxl111sf_demod_program_regs
	bl	_mxl_fail
	mov	w0, #50
	bl	_msleep
	mov	x0, x19
	bl	_mxl1x1sf_demod_reset_irq_status
	mov	x20, x0
	bl	_mxl_fail
	mov	w0, #100
	bl	_msleep
LBB0_4:
	ldur	x8, [x29, #-24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.mxl111sf_demod_set_frontend.phy_pll_patch
l___const.mxl111sf_demod_set_frontend.phy_pll_patch:
	.long	0                               ; 0x0
	.long	255                             ; 0xff
	.long	1                               ; 0x1
	.long	64                              ; 0x40
	.long	255                             ; 0xff
	.long	5                               ; 0x5
	.long	64                              ; 0x40
	.long	255                             ; 0xff
	.long	1                               ; 0x1
	.long	65                              ; 0x41
	.long	255                             ; 0xff
	.long	202                             ; 0xca
	.long	65                              ; 0x41
	.long	255                             ; 0xff
	.long	192                             ; 0xc0
	.long	0                               ; 0x0
	.long	255                             ; 0xff
	.long	0                               ; 0x0
	.space	12

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"()"

	.no_dead_strip	_mxl111sf_demod_set_frontend
.subsections_via_symbols
