	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_addrprefix               ## -- Begin function pfctl_addrprefix
	.p2align	4, 0x90
_pfctl_addrprefix:                      ## @pfctl_addrprefix
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	$47, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_20
## %bb.1:
	movq	%rax, %rbx
	incq	%rbx
	movb	$0, (%rax)
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_strtonum
	movl	%eax, %r15d
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_errx
LBB0_3:
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$12, %esi
	callq	_bzero
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
	leaq	-40(%rbp), %rcx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %edi
	callq	_gai_strerror
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_errx
LBB0_5:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.6:
	cmpl	$32, %r15d
	jle	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	cmpl	$128, %eax
	jne	LBB0_12
## %bb.9:
	cmpl	$129, %r15d
	jl	LBB0_12
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
LBB0_11:
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_12:
	movq	-40(%rbp), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_15
## %bb.13:
	cmpl	$129, %eax
	jne	LBB0_19
## %bb.14:
	leaq	12(%r14), %rdi
	movl	$12, %esi
	callq	_bzero
	addl	$32, %r15d
	negl	%r15d
	movabsq	$1099511627775, %rdi            ## imm = 0xFFFFFFFFFF
	movl	%r15d, %ecx
	shlq	%cl, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_htonl
	movl	%eax, 16(%r14)
	jmp	LBB0_19
LBB0_15:
	movl	%r15d, %r12d
	sarl	$3, %r12d
	movl	%r15d, %ebx
	andl	$7, %ebx
	movq	%r14, %rdi
	movl	$12, %esi
	callq	_bzero
	cmpl	$8, %r15d
	jl	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movl	$255, %esi
	movl	%r12d, %edx
	callq	_memset
LBB0_17:
	testl	%ebx, %ebx
	je	LBB0_19
## %bb.18:
	movl	$65280, %eax                    ## imm = 0xFF00
	movl	%ebx, %ecx
	shrl	%cl, %eax
	movzbl	%al, %eax
	movslq	%r12d, %rcx
	movl	%eax, (%r14,%rcx,4)
LBB0_19:
	movq	-40(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_20:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prefix is %s: %s"

	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
L_.str.1:                               ## @.str.1
	.asciz	"getaddrinfo: %s"

L_.str.2:                               ## @.str.2
	.asciz	"prefix too long for AF_INET"

L_.str.3:                               ## @.str.3
	.asciz	"prefix too long for AF_INET6"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_addrprefix               ; -- Begin function pfctl_addrprefix
	.p2align	2
_pfctl_addrprefix:                      ; @pfctl_addrprefix
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x1
	mov	x21, x0
	mov	w1, #47
	bl	_strchr
	cbz	x0, LBB0_20
; %bb.1:
	mov	x22, x0
	strb	wzr, [x22], #1
	add	x3, sp, #40
	mov	x0, x22
	mov	w1, #0
	mov	w2, #128
	bl	_strtonum
	mov	x20, x0
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_3
; %bb.2:
	stp	x8, x22, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	add	x0, sp, #24
	mov	w1, #12
	bl	_bzero
Lloh2:
	adrp	x8, _AI_NUMERICHOST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [sp, #32]
	orr	w8, w9, w8
	str	w8, [sp, #32]
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x21
	mov	x1, #0
	bl	_getaddrinfo
	cbz	w0, LBB0_5
; %bb.4:
	bl	_gai_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	cmp	w8, #129
	b.ne	LBB0_8
; %bb.6:
	cmp	w20, #32
	b.le	LBB0_8
; %bb.7:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.9:
	cmp	w20, #129
	b.lt	LBB0_12
; %bb.10:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	w0, #1
	bl	_errx
LBB0_12:
	ldr	x8, [sp, #16]
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.13:
	cmp	w8, #129
	b.ne	LBB0_19
; %bb.14:
	add	x0, x19, #12
	mov	w1, #12
	bl	_bzero
	mov	w8, #32
	sub	w8, w8, w20
	mov	x9, #1099511627775
	lsl	x0, x9, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_htonl
	str	w0, [x19, #16]
	b	LBB0_19
LBB0_15:
	asr	w21, w20, #3
	and	w22, w20, #0x7
	mov	x0, x19
	mov	w1, #12
	bl	_bzero
	cmp	w20, #8
	b.lt	LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w1, #255
	mov	x2, x21
	bl	_memset
LBB0_17:
	cbz	w22, LBB0_19
; %bb.18:
	mov	w8, #65280
	lsr	w8, w8, w22
	and	w8, w8, #0xfe
	str	w8, [x19, w21, sxtw #2]
LBB0_19:
	ldr	x0, [sp, #16]
	bl	_freeaddrinfo
LBB0_20:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prefix is %s: %s"

	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
l_.str.1:                               ; @.str.1
	.asciz	"getaddrinfo: %s"

l_.str.2:                               ; @.str.2
	.asciz	"prefix too long for AF_INET"

l_.str.3:                               ; @.str.3
	.asciz	"prefix too long for AF_INET6"

.subsections_via_symbols
