	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24120_get_frontend
_cx24120_get_frontend:                  ## @cx24120_get_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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_CX24120_REG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cx24120_readreg
	movq	_CX24120_HAS_LOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_CX24120_REG_FREQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cx24120_readreg
	movl	%eax, %r12d
	movq	_CX24120_REG_FREQ2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cx24120_readreg
	movl	%eax, %ebx
	movq	_CX24120_REG_FREQ3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cx24120_readreg
	shll	$16, %eax
	shll	$8, %ebx
	orl	%r12d, %ebx
	orl	%eax, %ebx
	movl	%ebx, (%r14)
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_cx24120_get_fec
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_CX24120_REG_STATUS,4,2         ## @CX24120_REG_STATUS
	.comm	_CX24120_HAS_LOCK,4,2           ## @CX24120_HAS_LOCK
	.comm	_CX24120_REG_FREQ1,4,2          ## @CX24120_REG_FREQ1
	.comm	_CX24120_REG_FREQ2,4,2          ## @CX24120_REG_FREQ2
	.comm	_CX24120_REG_FREQ3,4,2          ## @CX24120_REG_FREQ3
L_.str.1:                               ## @.str.1
	.asciz	"frequency = %d\n"

	.no_dead_strip	_cx24120_get_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24120_get_frontend
_cx24120_get_frontend:                  ; @cx24120_get_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
	ldr	x0, [x21]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _CX24120_REG_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CX24120_REG_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cx24120_readreg
Lloh5:
	adrp	x8, _CX24120_HAS_LOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CX24120_HAS_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _CX24120_REG_FREQ1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CX24120_REG_FREQ1@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cx24120_readreg
	mov	x22, x0
Lloh11:
	adrp	x8, _CX24120_REG_FREQ2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CX24120_REG_FREQ2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cx24120_readreg
	mov	x23, x0
Lloh14:
	adrp	x8, _CX24120_REG_FREQ3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CX24120_REG_FREQ3@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_cx24120_readreg
	orr	w8, w22, w23, lsl #8
	orr	w8, w8, w0, lsl #16
	str	w8, [x20]
	ldr	x0, [x21]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_cx24120_get_fec
LBB0_2:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_CX24120_REG_STATUS,4,2         ; @CX24120_REG_STATUS
	.comm	_CX24120_HAS_LOCK,4,2           ; @CX24120_HAS_LOCK
	.comm	_CX24120_REG_FREQ1,4,2          ; @CX24120_REG_FREQ1
	.comm	_CX24120_REG_FREQ2,4,2          ; @CX24120_REG_FREQ2
	.comm	_CX24120_REG_FREQ3,4,2          ; @CX24120_REG_FREQ3
l_.str.1:                               ; @.str.1
	.asciz	"frequency = %d\n"

	.no_dead_strip	_cx24120_get_frontend
.subsections_via_symbols
