	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_test_altqsupport         ## -- Begin function pfctl_test_altqsupport
	.p2align	4, 0x90
_pfctl_test_altqsupport:                ## @pfctl_test_altqsupport
	.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	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	_PFIOC_ALTQ_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movq	_DIOCGETALTQS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_PF_OPT_VERBOSE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_6
LBB0_1:
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %ebx
	movl	$1, %edi
	callq	_err
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PFIOC_ALTQ_VERSION,4,2         ## @PFIOC_ALTQ_VERSION
	.comm	_DIOCGETALTQS,4,2               ## @DIOCGETALTQS
	.comm	_errno,8,3                      ## @errno
	.comm	_ENODEV,8,3                     ## @ENODEV
	.comm	_PF_OPT_VERBOSE,4,2             ## @PF_OPT_VERBOSE
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No ALTQ support in kernel\nALTQ related functions disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"DIOCGETALTQS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_test_altqsupport         ; -- Begin function pfctl_test_altqsupport
	.p2align	2
_pfctl_test_altqsupport:                ; @pfctl_test_altqsupport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, _PFIOC_ALTQ_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PFIOC_ALTQ_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x8, _DIOCGETALTQS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIOCGETALTQS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_5
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _ENODEV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh12:
	adrp	x8, _PF_OPT_VERBOSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PF_OPT_VERBOSE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_4:
	mov	w19, #0
	b	LBB0_7
LBB0_5:
	mov	w19, #1
	b	LBB0_7
LBB0_6:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w19, #1
	mov	w0, #1
	bl	_err
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PFIOC_ALTQ_VERSION,4,2         ; @PFIOC_ALTQ_VERSION
	.comm	_DIOCGETALTQS,4,2               ; @DIOCGETALTQS
	.comm	_errno,8,3                      ; @errno
	.comm	_ENODEV,8,3                     ; @ENODEV
	.comm	_PF_OPT_VERBOSE,4,2             ; @PF_OPT_VERBOSE
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No ALTQ support in kernel\nALTQ related functions disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"DIOCGETALTQS"

.subsections_via_symbols
