	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eval_pfqueue_priq
_eval_pfqueue_priq:                     ## @eval_pfqueue_priq
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	(%rsi), %rsi
	movq	_PRIQ_MAXPRI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rsi
	jge	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	_QPRI_BITSET_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	4(%rdx), %r15
	movq	%r15, %rdx
	callq	_BIT_ISSET
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movslq	16(%rbx), %rsi
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_1:
	decq	%rax
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_warnx
	movl	$-1, %eax
	jmp	LBB0_6
LBB0_4:
	movl	(%r12), %edi
	movq	(%rbx), %rsi
	movq	%r15, %rdx
	callq	_BIT_SET
	movq	_PRCF_DEFAULTCLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, 8(%rbx)
	je	LBB0_6
## %bb.5:
	incl	(%r14)
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIQ_MAXPRI,8,3                ## @PRIQ_MAXPRI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priority out of range: max %d"

	.comm	_QPRI_BITSET_SIZE,4,2           ## @QPRI_BITSET_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"%s does not have a unique priority on interface %s"

	.comm	_PRCF_DEFAULTCLASS,4,2          ## @PRCF_DEFAULTCLASS
	.no_dead_strip	_eval_pfqueue_priq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eval_pfqueue_priq
_eval_pfqueue_priq:                     ; @eval_pfqueue_priq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	ldr	x1, [x1]
Lloh0:
	adrp	x8, _PRIQ_MAXPRI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRIQ_MAXPRI@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ge	LBB0_3
; %bb.1:
	mov	x19, x2
Lloh3:
	adrp	x22, _QPRI_BITSET_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _QPRI_BITSET_SIZE@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x21, x2, #4
	mov	x2, x21
	bl	_BIT_ISSET
	cbz	x0, LBB0_6
; %bb.2:
	ldp	w8, w1, [x20, #12]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	str	x8, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	sub	x1, x8, #1
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_warnx
	mov	w0, #-1
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	ldr	w0, [x22]
	ldr	x1, [x20]
	mov	x2, x21
	bl	_BIT_SET
	ldr	w8, [x20, #8]
Lloh9:
	adrp	x9, _PRCF_DEFAULTCLASS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PRCF_DEFAULTCLASS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIQ_MAXPRI,8,3                ; @PRIQ_MAXPRI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priority out of range: max %d"

	.comm	_QPRI_BITSET_SIZE,4,2           ; @QPRI_BITSET_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"%s does not have a unique priority on interface %s"

	.comm	_PRCF_DEFAULTCLASS,4,2          ; @PRCF_DEFAULTCLASS
	.no_dead_strip	_eval_pfqueue_priq
.subsections_via_symbols
