	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpivci_to_channel
_vpivci_to_channel:                     ## @vpivci_to_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testw	%si, %si
	js	LBB0_5
## %bb.1:
	movq	_vpi_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	testl	%edx, %edx
	js	LBB0_5
## %bb.2:
	cmpl	%esi, %eax
	jle	LBB0_5
## %bb.3:
	movl	$10, %r8d
	subl	%ecx, %r8d
	movl	$1, %eax
	movl	%r8d, %ecx
	shll	%cl, %eax
	cmpl	%edx, %eax
	jle	LBB0_5
## %bb.4:
	movzwl	%r8w, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	movl	%esi, %eax
	orl	%edx, %eax
	movl	%eax, (%rdi)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	orl	%edx, %esi
	cmovnel	%ecx, %eax
	popq	%rbp
	retq
LBB0_5:
	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	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vpivci_to_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpivci_to_channel
_vpivci_to_channel:                     ; @vpivci_to_channel
	.cfi_startproc
; %bb.0:
	tbnz	w1, #31, LBB0_3
; %bb.1:
	tbnz	w2, #31, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _vpi_bits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vpi_bits@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	mov	w8, #10
	sub	w8, w8, w9
	mov	w10, #1
	lsl	w9, w10, w9
	cmp	w9, w1
	lsl	w9, w10, w8
	ccmp	w9, w2, #4, gt
	b.gt	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	and	w8, w8, #0xffff
	lsl	w8, w1, w8
	orr	w8, w8, w2
	str	w8, [x0]
Lloh6:
	adrp	x9, _EINVAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, #0
	csneg	w0, wzr, w9, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_vpi_bits,4,2                   ; @vpi_bits
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vpivci_to_channel
.subsections_via_symbols
