	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function channel_ctrl
_channel_ctrl:                          ## @channel_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %edx
	cmpl	$128, %edx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %edx
	jne	LBB0_7
## %bb.3:
	movl	$129, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rdi), %rcx
	addq	$16, %rdi
	movq	_HW_TIMER3_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	8(%rsi), %edx
	movl	%eax, %esi
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_4:
	movl	4(%rsi), %edx
	cmpl	$4, %edx
	jae	LBB0_8
## %bb.5:
	movq	(%rdi), %rax
	movq	_HW_TESTLOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_7:
	movl	8(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HW_TESTLOOP,4,2                ## @HW_TESTLOOP
	.comm	_HW_TIMER3_VALUE,4,2            ## @HW_TIMER3_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: unknown CTRL OP %x\n"

	.no_dead_strip	_channel_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function channel_ctrl
_channel_ctrl:                          ; @channel_ctrl
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w2, [x1]
	cmp	w2, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w2, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w2, #130
	b.ne	LBB0_7
; %bb.3:
	mov	w0, #0
	mov	w8, #129
	str	w8, [x1]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x3, [x0, #16]!
Lloh0:
	adrp	x8, _HW_TIMER3_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_TIMER3_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w2, [x1, #8]
	mov	x1, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x3
LBB0_5:
	ldr	w2, [x1, #4]
	cmp	w2, #4
	b.hs	LBB0_8
; %bb.6:
	ldr	x3, [x0]
Lloh3:
	adrp	x8, _HW_TESTLOOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HW_TESTLOOP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	br	x3
LBB0_7:
	ldr	w1, [x0, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HW_TESTLOOP,4,2                ; @HW_TESTLOOP
	.comm	_HW_TIMER3_VALUE,4,2            ; @HW_TIMER3_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: unknown CTRL OP %x\n"

	.no_dead_strip	_channel_ctrl
.subsections_via_symbols
