	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function assignchannel
_assignchannel:                         ## @assignchannel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_VALID_CONFIG
	movl	%eax, %edi
	callq	_REQUIRE
	movq	24(%rbx), %r13
	xorl	%edi, %edi
	cmpl	%r15d, (%r13)
	seta	%dil
	callq	_REQUIRE
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	8(%r13), %rax
	setl	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_REQUIRE
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_REQUIRE
	movq	%rbx, %rdi
	callq	_sync_channellist
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.4:
	movl	16(%r13), %edi
	movl	$16, %esi
	callq	_isc_mem_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, 8(%rax)
	movq	%r12, (%rax)
	movq	16(%rbx), %rcx
	movl	%r15d, %edx
	movl	(%rcx,%rdx,4), %edi
	movq	_link@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	callq	_ISC_LIST_INITANDPREPEND
	movq	(%r14), %rax
	movq	_ISC_LOG_TONULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.7:
	movq	8(%r14), %rax
	cmpq	%rax, (%rbx)
	jge	LBB0_9
## %bb.8:
	movq	%rax, (%rbx)
LBB0_9:
	movq	_ISC_LOG_DYNAMIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_ISC_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_11:
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_5:
	movq	_ISC_R_NOMEMORY@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISC_R_SUCCESS,8,3              ## @ISC_R_SUCCESS
	.comm	_ISC_R_NOMEMORY,8,3             ## @ISC_R_NOMEMORY
	.comm	_link,4,2                       ## @link
	.comm	_ISC_LOG_TONULL,8,3             ## @ISC_LOG_TONULL
	.comm	_ISC_LOG_DYNAMIC,8,3            ## @ISC_LOG_DYNAMIC
	.comm	_ISC_TRUE,4,2                   ## @ISC_TRUE
	.no_dead_strip	_assignchannel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function assignchannel
_assignchannel:                         ; @assignchannel
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_VALID_CONFIG
	bl	_REQUIRE
	ldr	x24, [x19, #24]
	ldr	w8, [x24]
	cmp	w8, w21
	cset	w0, hi
	bl	_REQUIRE
	cbz	x22, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x24, #8]
	cmp	x8, x9
	cset	w0, lt
	b	LBB0_3
LBB0_2:
	mov	w0, #1
LBB0_3:
	bl	_REQUIRE
	cmp	x20, #0
	cset	w0, ne
	bl	_REQUIRE
	mov	x0, x19
	bl	_sync_channellist
Lloh0:
	adrp	x23, _ISC_R_SUCCESS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ISC_R_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.4:
	ldr	w0, [x24, #16]
	mov	w1, #16
	bl	_isc_mem_get
	cbz	x0, LBB0_11
; %bb.5:
	mov	x1, x0
	stp	x22, x20, [x0]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, w21, uxtw #2]
Lloh2:
	adrp	x8, _link@GOTPAGE
Lloh3:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_ISC_LIST_INITANDPREPEND
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _ISC_LOG_TONULL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ISC_LOG_TONULL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.6:
	ldr	x9, [x19]
	ldr	x8, [x20, #8]
	cmp	x9, x8
	b.ge	LBB0_8
; %bb.7:
	str	x8, [x19]
LBB0_8:
Lloh8:
	adrp	x9, _ISC_LOG_DYNAMIC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ISC_LOG_DYNAMIC@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh11:
	adrp	x8, _ISC_TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISC_TRUE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_10:
	ldr	x0, [x23]
	b	LBB0_12
LBB0_11:
Lloh14:
	adrp	x8, _ISC_R_NOMEMORY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISC_R_NOMEMORY@GOTPAGEOFF]
Lloh16:
	ldr	x0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ISC_R_SUCCESS,8,3              ; @ISC_R_SUCCESS
	.comm	_ISC_R_NOMEMORY,8,3             ; @ISC_R_NOMEMORY
	.comm	_link,4,2                       ; @link
	.comm	_ISC_LOG_TONULL,8,3             ; @ISC_LOG_TONULL
	.comm	_ISC_LOG_DYNAMIC,8,3            ; @ISC_LOG_DYNAMIC
	.comm	_ISC_TRUE,4,2                   ; @ISC_TRUE
	.no_dead_strip	_assignchannel
.subsections_via_symbols
