	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_permit
_handle_permit:                         ## @handle_permit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	(%rdx), %rcx
	movq	(%r12), %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, -80(%rbp)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jbe	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r8)
	jmp	LBB0_19
LBB0_2:
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	leaq	-80(%rbp), %rsi
	callq	_opt_dequote
	movq	%rax, %r13
	movl	$-1, %eax
	testq	%r13, %r13
	je	LBB0_20
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.4:
	movq	%r13, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdi
	movq	%r13, %rdx
	callq	_asprintf
	testq	%rax, %rax
	js	LBB0_17
## %bb.6:
	movq	%r13, %rdi
	callq	_free
	movq	-56(%rbp), %r13
LBB0_7:
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_hpdelim
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%rax, %rdi
	callq	_strlen
	movq	_NI_MAXHOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_15
## %bb.10:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-64(%rbp), %rdi
	callq	_a2port
	testq	%rax, %rax
	jle	LBB0_21
LBB0_13:
	movq	-56(%rbp), %rdi
	callq	_free
	leaq	1(%r14), %r15
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	$8, %ecx
	callq	_recallocarray
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%r13, (%rax,%r14,8)
	movq	%rax, (%rbx)
	movq	%r15, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_15:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	movq	%r13, %rdi
	callq	_free
LBB0_17:
	leaq	L_.str.3(%rip), %rax
LBB0_18:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_19:
	movl	$-1, %eax
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	leaq	L_.str.6(%rip), %rax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown error"

	.comm	_INT_MAX,8,3                    ## @INT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"too many permission directives"

L_.str.2:                               ## @.str.2
	.asciz	"*:%s"

L_.str.3:                               ## @.str.3
	.asciz	"memory allocation failed"

	.comm	_NI_MAXHOST,8,3                 ## @NI_MAXHOST
L_.str.4:                               ## @.str.4
	.asciz	"invalid permission hostname"

L_.str.5:                               ## @.str.5
	.asciz	"*"

L_.str.6:                               ## @.str.6
	.asciz	"invalid permission port"

	.no_dead_strip	_handle_permit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_permit
_handle_permit:                         ; @handle_permit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x24, [x2]
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	ldr	x23, [x3]
	str	x8, [sp, #8]
Lloh2:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ls	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	mov	x25, x1
	add	x1, sp, #8
	bl	_opt_dequote
	cbz	x0, LBB0_19
; %bb.3:
	mov	x22, x0
	cbz	w25, LBB0_7
; %bb.4:
	mov	x0, x22
	mov	w1, #58
	bl	_strchr
	cbnz	x0, LBB0_7
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	x2, x22
	bl	_asprintf
	tbnz	x0, #63, LBB0_17
; %bb.6:
	mov	x0, x22
	bl	_free
	ldr	x22, [sp, #24]
LBB0_7:
	mov	x0, x22
	bl	_strdup
	str	x0, [sp, #24]
	cbz	x0, LBB0_16
; %bb.8:
	str	x0, [sp, #16]
	add	x0, sp, #16
	bl	_hpdelim
	cbz	x0, LBB0_15
; %bb.9:
	bl	_strlen
Lloh9:
	adrp	x8, _NI_MAXHOST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NI_MAXHOST@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_15
; %bb.10:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_21
; %bb.11:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [sp, #16]
	bl	_a2port
	cmp	x0, #0
	b.le	LBB0_21
LBB0_13:
	ldr	x0, [sp, #24]
	bl	_free
	add	x25, x23, #1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	mov	w3, #8
	bl	_recallocarray
	cbz	x0, LBB0_16
; %bb.14:
	mov	x8, x0
	mov	w0, #0
	str	x22, [x8, x23, lsl #3]
	str	x8, [x21]
	str	x25, [x20]
	b	LBB0_20
LBB0_15:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x22
	bl	_free
Lloh14:
	adrp	x8, l_.str.4@PAGE
Lloh15:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_16:
	mov	x0, x22
	bl	_free
LBB0_17:
Lloh16:
	adrp	x8, l_.str.3@PAGE
Lloh17:
	add	x8, x8, l_.str.3@PAGEOFF
LBB0_18:
	str	x8, [x19]
LBB0_19:
	mov	w0, #-1
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x22
	bl	_free
Lloh18:
	adrp	x8, l_.str.6@PAGE
Lloh19:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown error"

	.comm	_INT_MAX,8,3                    ; @INT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"too many permission directives"

l_.str.2:                               ; @.str.2
	.asciz	"*:%s"

l_.str.3:                               ; @.str.3
	.asciz	"memory allocation failed"

	.comm	_NI_MAXHOST,8,3                 ; @NI_MAXHOST
l_.str.4:                               ; @.str.4
	.asciz	"invalid permission hostname"

l_.str.5:                               ; @.str.5
	.asciz	"*"

l_.str.6:                               ; @.str.6
	.asciz	"invalid permission port"

	.no_dead_strip	_handle_permit
.subsections_via_symbols
