	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_porta_down
_channel_porta_down:                    ## @channel_porta_down
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movl	%esi, %ecx
	andb	$-16, %cl
	cmpb	$-16, %cl
	je	LBB0_5
## %bb.2:
	cmpb	$-32, %cl
	jne	LBB0_7
## %bb.3:
	cmpl	$0, 4(%rdi)
	jne	LBB0_10
## %bb.4:
	andl	$15, %esi
	jmp	LBB0_9
LBB0_5:
	cmpl	$0, 4(%rdi)
	jne	LBB0_10
## %bb.6:
	shll	$2, %esi
	andl	$60, %esi
	jmp	LBB0_9
LBB0_7:
	cmpl	$0, 4(%rdi)
	jle	LBB0_10
## %bb.8:
	shll	$2, %esi
LBB0_9:
	addl	%esi, %eax
	movl	%eax, (%rdi)
LBB0_10:
	cmpl	$65536, %eax                    ## imm = 0x10000
	jl	LBB0_12
## %bb.11:
	movl	$65535, (%rdi)                  ## imm = 0xFFFF
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_channel_porta_down
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_porta_down
_channel_porta_down:                    ; @channel_porta_down
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	and	w9, w1, #0xf0
	cmp	w9, #240
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #224
	b.ne	LBB0_7
; %bb.3:
	ldr	w9, [x0, #4]
	cbnz	w9, LBB0_10
; %bb.4:
	and	w9, w1, #0xf
	b	LBB0_9
LBB0_5:
	ldr	w9, [x0, #4]
	cbnz	w9, LBB0_10
; %bb.6:
	ubfiz	w9, w1, #2, #4
	b	LBB0_9
LBB0_7:
	ldr	w9, [x0, #4]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.8:
	lsl	w9, w1, #2
LBB0_9:
	add	w8, w8, w9
	str	w8, [x0]
LBB0_10:
	cmp	w8, #16, lsl #12                ; =65536
	b.lt	LBB0_12
; %bb.11:
	mov	w8, #65535
	str	w8, [x0]
LBB0_12:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_channel_porta_down
.subsections_via_symbols
