	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deallocate_channel
_deallocate_channel:                    ## @deallocate_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
                                        ## kill: def $ecx killed $ecx def $rcx
	cmpl	$32, %ecx
	movq	_CSR_CHANNELS_AVAILABLE_LO@GOTPCREL(%rip), %rax
	cmovlq	_CSR_CHANNELS_AVAILABLE_HI@GOTPCREL(%rip), %rax
	leal	-32(%rcx), %r10d
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %r11
	movq	(%rax), %r9
	movzbl	%r10b, %eax
	cmovgel	%eax, %ecx
	addq	(%r11), %r9
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shll	%cl, %eax
	movq	%r8, (%rsp)
	movl	%eax, %ecx
	movq	%r9, %r8
	xorl	%r9d, %r9d
	callq	_manage_channel
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_REGISTER_BASE,8,3          ## @CSR_REGISTER_BASE
	.comm	_CSR_CHANNELS_AVAILABLE_HI,8,3  ## @CSR_CHANNELS_AVAILABLE_HI
	.comm	_CSR_CHANNELS_AVAILABLE_LO,8,3  ## @CSR_CHANNELS_AVAILABLE_LO
	.no_dead_strip	_deallocate_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deallocate_channel
_deallocate_channel:                    ; @deallocate_channel
	.cfi_startproc
; %bb.0:
	mov	x6, x4
	subs	w8, w3, #32
Lloh0:
	adrp	x9, _CSR_REGISTER_BASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CSR_REGISTER_BASE@GOTPAGEOFF]
	csel	w8, w3, w8, lt
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _CSR_CHANNELS_AVAILABLE_HI@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CSR_CHANNELS_AVAILABLE_HI@GOTPAGEOFF]
Lloh5:
	adrp	x11, _CSR_CHANNELS_AVAILABLE_LO@GOTPAGE
Lloh6:
	ldr	x11, [x11, _CSR_CHANNELS_AVAILABLE_LO@GOTPAGEOFF]
	csel	x10, x10, x11, lt
	ldr	x10, [x10]
	add	x4, x10, x9
	mov	w9, #1
	lsl	w3, w9, w8
	mov	w5, #0
	b	_manage_channel
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_REGISTER_BASE,8,3          ; @CSR_REGISTER_BASE
	.comm	_CSR_CHANNELS_AVAILABLE_HI,8,3  ; @CSR_CHANNELS_AVAILABLE_HI
	.comm	_CSR_CHANNELS_AVAILABLE_LO,8,3  ; @CSR_CHANNELS_AVAILABLE_LO
	.no_dead_strip	_deallocate_channel
.subsections_via_symbols
