	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function altq_fetch
_altq_fetch:                            ## @altq_fetch
	.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
	cmpb	$0, _altq_fetch.altq_fetched(%rip)
	jne	LBB0_12
## %bb.1:
	movb	$1, _altq_fetch.altq_fetched(%rip)
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.2:
	movl	%eax, %ebx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_bzero
	movq	_PFIOC_ALTQ_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_DIOCGETALTQS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
LBB0_11:
	movl	%ebx, %edi
	callq	_close
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
LBB0_4:
	movl	-64(%rbp), %r12d
	movl	$0, -64(%rbp)
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.5:
	movq	_DIOCGETALTQ@GOTPCREL(%rip), %r13
	leaq	-64(%rbp), %r14
	movq	_altq_entries@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-64(%rbp), %eax
	incl	%eax
	movl	%eax, -64(%rbp)
	cmpl	%r12d, %eax
	jae	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$0, -56(%rbp)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	movl	$8, %esi
	callq	_safe_calloc
	movq	-56(%rbp), %rcx
	movq	%rcx, (%rax)
	movq	_entries@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_TAILQ_INSERT_TAIL
	jmp	LBB0_10
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_altq_fetch.altq_fetched,1,2 ## @altq_fetch.altq_fetched
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/pf"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"altq support opening pf(4) control device"

	.comm	_PFIOC_ALTQ_VERSION,4,2         ## @PFIOC_ALTQ_VERSION
	.comm	_DIOCGETALTQS,4,2               ## @DIOCGETALTQS
L_.str.2:                               ## @.str.2
	.asciz	"altq support getting queue list"

	.comm	_DIOCGETALTQ,4,2                ## @DIOCGETALTQ
	.comm	_errno,8,3                      ## @errno
	.comm	_EBUSY,8,3                      ## @EBUSY
	.comm	_altq_entries,4,2               ## @altq_entries
	.comm	_entries,4,2                    ## @entries
	.no_dead_strip	_altq_fetch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function altq_fetch
_altq_fetch:                            ; @altq_fetch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	adrp	x8, _altq_fetch.altq_fetched@PAGE
	ldrb	w9, [x8, _altq_fetch.altq_fetched@PAGEOFF]
	tbnz	w9, #0, LBB0_5
; %bb.1:
	mov	w9, #1
	strb	w9, [x8, _altq_fetch.altq_fetched@PAGEOFF]
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.2:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #24
	bl	_bzero
Lloh5:
	adrp	x8, _PFIOC_ALTQ_VERSION@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PFIOC_ALTQ_VERSION@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh8:
	adrp	x8, _DIOCGETALTQS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DIOCGETALTQS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	cbz	x0, LBB0_7
LBB0_3:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
LBB0_4:
	mov	x0, x19
	bl	_close
LBB0_5:
	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
	add	sp, sp, #96
	ret
LBB0_6:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	add	sp, sp, #96
	b	_warn
LBB0_7:
	ldr	w21, [sp, #8]
	str	wzr, [sp, #8]
	cbz	w21, LBB0_4
; %bb.8:
Lloh15:
	adrp	x22, _DIOCGETALTQ@GOTPAGE
Lloh16:
	ldr	x22, [x22, _DIOCGETALTQ@GOTPAGEOFF]
Lloh17:
	adrp	x23, _entries@GOTPAGE
Lloh18:
	ldr	x23, [x23, _entries@GOTPAGEOFF]
Lloh19:
	adrp	x20, _altq_entries@GOTPAGE
Lloh20:
	ldr	x20, [x20, _altq_entries@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #8]
	add	w8, w8, #1
	str	w8, [sp, #8]
	cmp	w8, w21
	b.hs	LBB0_4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	mov	w1, #8
	bl	_safe_calloc
	mov	x1, x0
	ldr	x8, [sp, #16]
	str	x8, [x0]
	ldr	w2, [x23]
	mov	x0, x20
	bl	_TAILQ_INSERT_TAIL
	b	LBB0_9
LBB0_13:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _EBUSY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _EBUSY@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_altq_fetch.altq_fetched,1,2 ; @altq_fetch.altq_fetched
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/pf"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"altq support opening pf(4) control device"

	.comm	_PFIOC_ALTQ_VERSION,4,2         ; @PFIOC_ALTQ_VERSION
	.comm	_DIOCGETALTQS,4,2               ; @DIOCGETALTQS
l_.str.2:                               ; @.str.2
	.asciz	"altq support getting queue list"

	.comm	_DIOCGETALTQ,4,2                ; @DIOCGETALTQ
	.comm	_errno,8,3                      ; @errno
	.comm	_EBUSY,8,3                      ; @EBUSY
	.comm	_altq_entries,4,2               ; @altq_entries
	.comm	_entries,4,2                    ; @entries
	.no_dead_strip	_altq_fetch
.subsections_via_symbols
