	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_porta_up
_channel_porta_up:                      ## @channel_porta_up
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movl	%esi, %eax
	andb	$-16, %al
	cmpb	$-16, %al
	je	LBB0_4
## %bb.1:
	cmpb	$-32, %al
	jne	LBB0_6
## %bb.2:
	cmpl	$0, 8(%rdi)
	jne	LBB0_9
## %bb.3:
	andl	$15, %esi
	jmp	LBB0_8
LBB0_4:
	cmpl	$0, 8(%rdi)
	jne	LBB0_9
## %bb.5:
	shll	$2, %esi
	andl	$60, %esi
	jmp	LBB0_8
LBB0_6:
	cmpl	$0, 8(%rdi)
	jle	LBB0_9
## %bb.7:
	shll	$2, %esi
	movslq	%esi, %rsi
LBB0_8:
	subq	%rsi, (%rdi)
LBB0_9:
	cmpq	$0, (%rdi)
	js	LBB0_10
## %bb.11:
	popq	%rbp
	retq
LBB0_10:
	movq	$0, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_channel_porta_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_porta_up
_channel_porta_up:                      ; @channel_porta_up
	.cfi_startproc
; %bb.0:
	and	w8, w1, #0xf0
	cmp	w8, #240
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #224
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_9
; %bb.3:
	and	w8, w1, #0xf
	b	LBB0_8
LBB0_4:
	ldr	w8, [x0, #8]
	cbnz	w8, LBB0_9
; %bb.5:
	ubfiz	w8, w1, #2, #4
	b	LBB0_8
LBB0_6:
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	lsl	w8, w1, #2
	sxtw	x8, w8
LBB0_8:
	ldr	x9, [x0]
	sub	x8, x9, x8
	str	x8, [x0]
LBB0_9:
	ldr	x8, [x0]
	tbnz	x8, #63, LBB0_11
; %bb.10:
	ret
LBB0_11:
	str	xzr, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_channel_porta_up
.subsections_via_symbols
