	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24110_set_fec
_cx24110_set_fec:                       ## @cx24110_set_fec
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_FEC_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$55, %esi
	callq	_cx24110_readreg
	cmpq	%r12, %rbx
	cmovbq	%rbx, %r12
	jbe	LBB0_1
## %bb.2:
	orl	$32, %eax
	movq	%r14, %rdi
	movl	$55, %esi
	movl	%eax, %edx
	callq	_cx24110_writereg
	testq	%r12, %r12
	je	LBB0_6
## %bb.3:
	cmpq	$6, %r12
	jne	LBB0_4
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_1:
	andl	$223, %eax
	movq	%r14, %rdi
	movl	$55, %esi
	movl	%eax, %edx
	callq	_cx24110_writereg
	movq	%r14, %rdi
	movl	$24, %esi
	movl	$174, %edx
	callq	_cx24110_writereg
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_cx24110_readreg
                                        ## kill: def $eax killed $eax def $rax
	andl	$240, %eax
	leal	3(%rax), %edx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_cx24110_writereg
	movq	%r14, %rdi
	movl	$34, %esi
	callq	_cx24110_readreg
                                        ## kill: def $eax killed $eax def $rax
	andl	$240, %eax
	leal	3(%rax), %edx
	movq	%r14, %rdi
	movl	$34, %esi
	callq	_cx24110_writereg
	movq	%r14, %rdi
	movl	$26, %esi
	movl	$5, %edx
	callq	_cx24110_writereg
	movq	%r14, %rdi
	movl	$27, %esi
	movl	$6, %edx
	jmp	LBB0_5
LBB0_4:
	leaq	_cx24110_set_fec.rate(%rip), %rbx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_cx24110_readreg
	andl	$240, %eax
	movl	(%rbx,%r12,4), %r15d
	orl	%r15d, %eax
	movq	%r14, %rdi
	movl	$5, %esi
	movl	%eax, %edx
	callq	_cx24110_writereg
	movq	%r14, %rdi
	movl	$34, %esi
	callq	_cx24110_readreg
	andl	$240, %eax
	orl	%eax, %r15d
	movq	%r14, %rdi
	movl	$34, %esi
	movl	%r15d, %edx
	callq	_cx24110_writereg
	leaq	_cx24110_set_fec.g1(%rip), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r14, %rdi
	movl	$26, %esi
	callq	_cx24110_writereg
	leaq	_cx24110_set_fec.g2(%rip), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r14, %rdi
	movl	$27, %esi
LBB0_5:
	callq	_cx24110_writereg
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @cx24110_set_fec.rate
_cx24110_set_fec.rate:
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	5                               ## 0x5
	.long	7                               ## 0x7
	.long	4294967295                      ## 0xffffffff

	.p2align	4                               ## @cx24110_set_fec.g1
_cx24110_set_fec.g1:
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	5                               ## 0x5
	.long	21                              ## 0x15
	.long	69                              ## 0x45
	.long	4294967295                      ## 0xffffffff

	.p2align	4                               ## @cx24110_set_fec.g2
_cx24110_set_fec.g2:
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	3                               ## 0x3
	.long	6                               ## 0x6
	.long	26                              ## 0x1a
	.long	122                             ## 0x7a
	.long	4294967295                      ## 0xffffffff

	.comm	_FEC_AUTO,8,3                   ## @FEC_AUTO
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_cx24110_set_fec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24110_set_fec
_cx24110_set_fec:                       ; @cx24110_set_fec
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _FEC_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FEC_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	w1, #55
	bl	_cx24110_readreg
	cmp	x21, x20
	csel	x20, x21, x20, lo
	b.ls	LBB0_3
; %bb.1:
	orr	w2, w0, #0x20
	mov	x0, x19
	mov	w1, #55
	bl	_cx24110_writereg
	cmp	x20, #0
	ccmp	x20, #6, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_3:
	mov	w8, #223
	and	w2, w0, w8
	mov	x0, x19
	mov	w1, #55
	bl	_cx24110_writereg
	mov	x0, x19
	mov	w1, #24
	mov	w2, #174
	bl	_cx24110_writereg
	mov	x0, x19
	mov	w1, #5
	bl	_cx24110_readreg
	and	w8, w0, #0xf0
	orr	w2, w8, #0x3
	mov	x0, x19
	mov	w1, #5
	bl	_cx24110_writereg
	mov	x0, x19
	mov	w1, #34
	bl	_cx24110_readreg
	and	w8, w0, #0xf0
	orr	w2, w8, #0x3
	mov	x0, x19
	mov	w1, #34
	bl	_cx24110_writereg
	mov	x0, x19
	mov	w1, #26
	mov	w2, #5
	bl	_cx24110_writereg
	mov	x0, x19
	mov	w1, #27
	mov	w2, #6
	b	LBB0_5
LBB0_4:
	lsl	x20, x20, #2
Lloh6:
	adrp	x21, _cx24110_set_fec.rate@PAGE
Lloh7:
	add	x21, x21, _cx24110_set_fec.rate@PAGEOFF
	mov	x0, x19
	mov	w1, #5
	bl	_cx24110_readreg
	and	w8, w0, #0xf0
	ldr	w21, [x21, x20]
	orr	w2, w8, w21
	mov	x0, x19
	mov	w1, #5
	bl	_cx24110_writereg
	mov	x0, x19
	mov	w1, #34
	bl	_cx24110_readreg
	and	w8, w0, #0xf0
	orr	w2, w8, w21
	mov	x0, x19
	mov	w1, #34
	bl	_cx24110_writereg
Lloh8:
	adrp	x8, _cx24110_set_fec.g1@PAGE
Lloh9:
	add	x8, x8, _cx24110_set_fec.g1@PAGEOFF
	ldr	w2, [x8, x20]
	mov	x0, x19
	mov	w1, #26
	bl	_cx24110_writereg
Lloh10:
	adrp	x8, _cx24110_set_fec.g2@PAGE
Lloh11:
	add	x8, x8, _cx24110_set_fec.g2@PAGEOFF
	ldr	w2, [x8, x20]
	mov	x0, x19
	mov	w1, #27
LBB0_5:
	bl	_cx24110_writereg
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @cx24110_set_fec.rate
_cx24110_set_fec.rate:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	5                               ; 0x5
	.long	7                               ; 0x7
	.long	4294967295                      ; 0xffffffff

	.p2align	2                               ; @cx24110_set_fec.g1
_cx24110_set_fec.g1:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	5                               ; 0x5
	.long	21                              ; 0x15
	.long	69                              ; 0x45
	.long	4294967295                      ; 0xffffffff

	.p2align	2                               ; @cx24110_set_fec.g2
_cx24110_set_fec.g2:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	3                               ; 0x3
	.long	6                               ; 0x6
	.long	26                              ; 0x1a
	.long	122                             ; 0x7a
	.long	4294967295                      ; 0xffffffff

	.comm	_FEC_AUTO,8,3                   ; @FEC_AUTO
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_cx24110_set_fec
.subsections_via_symbols
