	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_add_permission         ## -- Begin function channel_add_permission
	.p2align	4, 0x90
_channel_add_permission:                ## @channel_add_permission
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	_FORWARD_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	callq	_permission_set_get
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_fwd_ident
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_debug
	xorl	%eax, %eax
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	movl	$0, %ecx
	cmoveq	%rbx, %rcx
	movl	$0, %r8d
	cmovel	%r14d, %r8d
	cmoveq	%rax, %rbx
	cmovel	%eax, %r14d
	subq	$8, %rsp
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%rbx, %r9
	pushq	$0
	pushq	%r14
	pushq	$0
	callq	_permission_set_add
	addq	$32, %rsp
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FORWARD_LOCAL,4,2              ## @FORWARD_LOCAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allow %s forwarding to host %s port %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_add_permission         ; -- Begin function channel_add_permission
	.p2align	2
_channel_add_permission:                ; @channel_add_permission
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _FORWARD_LOCAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FORWARD_LOCAL@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	mov	x1, x2
	bl	_permission_set_get
	mov	x24, x0
	mov	x0, x22
	mov	x1, x21
	bl	_fwd_ident
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x19
	bl	_debug
	cmp	w25, w21
	csel	w4, w19, wzr, eq
	csel	x3, x20, xzr, eq
	csel	x5, xzr, x20, eq
	csel	w7, wzr, w19, eq
	str	xzr, [sp]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x6, #0
	bl	_permission_set_add
	str	xzr, [x24]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FORWARD_LOCAL,4,2              ; @FORWARD_LOCAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allow %s forwarding to host %s port %d"

.subsections_via_symbols
