	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx24120_set_pilot
_cx24120_set_pilot:                     ## @cx24120_set_pilot
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	cmpl	$128, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_CX24120_PILOT_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CX24120_PILOT_AUTO@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%r14), %rcx
	movq	_SYS_DVBS2@GOTPCREL(%rip), %rdx
	movq	_CX24120_PILOT_OFF@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, %rdi
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.4:
	movq	(%rax), %rdi
LBB0_5:
	cmpq	(%rdx), %rcx
	cmoveq	%rdi, %rsi
	movq	%rsi, 8(%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d)\n"

	.comm	_SYS_DVBS2,8,3                  ## @SYS_DVBS2
	.comm	_CX24120_PILOT_OFF,8,3          ## @CX24120_PILOT_OFF
	.comm	_CX24120_PILOT_ON,8,3           ## @CX24120_PILOT_ON
	.comm	_CX24120_PILOT_AUTO,8,3         ## @CX24120_PILOT_AUTO
	.no_dead_strip	_cx24120_set_pilot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx24120_set_pilot
_cx24120_set_pilot:                     ; @cx24120_set_pilot
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
Lloh2:
	adrp	x8, _SYS_DVBS2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SYS_DVBS2@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _CX24120_PILOT_OFF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CX24120_PILOT_OFF@GOTPAGEOFF]
Lloh7:
	adrp	x11, _CX24120_PILOT_ON@GOTPAGE
Lloh8:
	ldr	x11, [x11, _CX24120_PILOT_ON@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
Lloh10:
	adrp	x12, _CX24120_PILOT_AUTO@GOTPAGE
Lloh11:
	ldr	x12, [x12, _CX24120_PILOT_AUTO@GOTPAGEOFF]
	cmp	w19, #128
	csel	x11, x11, x12, eq
	ldr	x11, [x11]
	cmp	w19, #129
	csel	x11, x10, x11, eq
	cmp	x9, x8
	csel	x8, x11, x10, eq
	str	x8, [x20, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d)\n"

	.comm	_SYS_DVBS2,8,3                  ; @SYS_DVBS2
	.comm	_CX24120_PILOT_OFF,8,3          ; @CX24120_PILOT_OFF
	.comm	_CX24120_PILOT_ON,8,3           ; @CX24120_PILOT_ON
	.comm	_CX24120_PILOT_AUTO,8,3         ; @CX24120_PILOT_AUTO
	.no_dead_strip	_cx24120_set_pilot
.subsections_via_symbols
