	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_insert_altq_node         ## -- Begin function pfctl_insert_altq_node
	.p2align	4, 0x90
_pfctl_insert_altq_node:                ## @pfctl_insert_altq_node
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	%rsi, -32(%rbp)
	movl	%edx, -24(%rbp)
	movq	%rcx, -48(%rbp)
	movl	%r8d, -40(%rbp)
	movl	$1, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	20(%r14), %rdi
	leaq	-32(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%r14, %rdi
	addq	$16, %rdi
	leaq	-48(%rbp), %rsi
	movl	$16, %edx
	callq	_memcpy
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.3:
	movq	-32(%rbp), %rsi
	cmpl	$0, (%rsi)
	je	LBB0_4
## %bb.5:
	movl	-24(%rbp), %edx
	callq	_pfctl_find_altq_node
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	-32(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_7:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_4
	jmp	LBB0_10
LBB0_8:
	addq	$8, %rbx
LBB0_10:
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	callq	_update_avg
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfctl_insert_altq_node: calloc"

L_.str.1:                               ## @.str.1
	.asciz	"parent %s not found"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_insert_altq_node         ; -- Begin function pfctl_insert_altq_node
	.p2align	2
_pfctl_insert_altq_node:                ; @pfctl_insert_altq_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x0
	stp	x1, x2, [sp, #16]
	stp	x3, x4, [sp]
	mov	w0, #1
	mov	w1, #24
	bl	_calloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	add	x0, x19, #20
	add	x1, sp, #16
	mov	w2, #16
	bl	_memcpy
	add	x0, x19, #16
	mov	x1, sp
	mov	w2, #16
	bl	_memcpy
	stp	xzr, xzr, [x19]
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x1, [sp, #16]
	ldr	w8, [x1]
	cbz	w8, LBB0_8
; %bb.4:
	ldr	w2, [sp, #24]
	bl	_pfctl_find_altq_node
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	x2, [sp, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	ldr	x8, [x8]
	cbnz	x8, LBB0_7
	b	LBB0_9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_8
LBB0_9:
	str	x19, [x20]
	mov	x0, x19
	bl	_update_avg
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfctl_insert_altq_node: calloc"

l_.str.1:                               ; @.str.1
	.asciz	"parent %s not found"

.subsections_via_symbols
