	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24123_set_fec
_cx24123_set_fec:                       ## @cx24123_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$14, %esi
	callq	_cx24123_readreg
	movq	_FEC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	$67, %esi
	callq	_cx24123_readreg
	andl	$-2, %eax
	movq	%rbx, %rdi
	movl	$67, %esi
	movl	%eax, %edx
	callq	_cx24123_writereg
	cmpl	$127, %r14d
	ja	LBB0_2
## %bb.1:
	cmpl	%r14d, %r15d
	jg	LBB0_2
## %bb.3:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.7(%rip), %rdi
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$15, %esi
	movl	$254, %edx
	callq	_cx24123_writereg
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_NONE,4,2                   ## @FEC_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str.7:                               ## @.str.7
	.asciz	"set FEC to auto\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_cx24123_set_fec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24123_set_fec
_cx24123_set_fec:                       ; @cx24123_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
	mov	w1, #14
	bl	_cx24123_readreg
Lloh0:
	adrp	x8, _FEC_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FEC_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	mov	w1, #67
	bl	_cx24123_readreg
	and	w2, w0, #0xfffffffe
	mov	x0, x19
	mov	w1, #67
	bl	_cx24123_writereg
	cmp	w20, #127
	b.hi	LBB0_3
; %bb.1:
	cmp	w21, w20
	b.gt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x0, l_.str.7@PAGE
Lloh7:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #15
	mov	w2, #254
	bl	_cx24123_writereg
	mov	w0, #0
LBB0_4:
	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	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_NONE,4,2                   ; @FEC_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str.7:                               ; @.str.7
	.asciz	"set FEC to auto\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_cx24123_set_fec
.subsections_via_symbols
