	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_to_vpivci
_channel_to_vpivci:                     ## @channel_to_vpivci
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RX_CHANNEL_MASK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	notl	%eax
	testl	%eax, %edi
	jne	LBB0_2
## %bb.1:
	movq	_vpi_bits@GOTPCREL(%rip), %rax
	movb	$10, %cl
	subb	(%rax), %cl
	movzwl	%di, %r8d
	movl	%r8d, %eax
	shrl	%cl, %eax
	movl	%eax, %edi
	shll	%cl, %edi
	movl	%edi, (%rdx)
	movw	%ax, (%rsi)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	testw	%r8w, %r8w
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vpi_bits,4,2                   ## @vpi_bits
	.comm	_RX_CHANNEL_MASK,2,1            ## @RX_CHANNEL_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_channel_to_vpivci
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_to_vpivci
_channel_to_vpivci:                     ; @channel_to_vpivci
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RX_CHANNEL_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_CHANNEL_MASK@GOTPAGEOFF]
	ldrh	w8, [x8]
	bics	wzr, w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _vpi_bits@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vpi_bits@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #10
	sub	w8, w9, w8
	mov	w9, #-1
	lsl	w9, w9, w8
	and	w9, w9, w0
	str	w9, [x2]
	lsr	w8, w0, w8
	strh	w8, [x1]
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, ne
	ret
LBB0_2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_vpi_bits,4,2                   ; @vpi_bits
	.comm	_RX_CHANNEL_MASK,2,1            ; @RX_CHANNEL_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_channel_to_vpivci
.subsections_via_symbols
