	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_add_altq                 ## -- Begin function pfctl_add_altq
	.p2align	4, 0x90
_pfctl_add_altq:                        ## @pfctl_add_altq
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_altqsupport@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_loadopt@GOTPCREL(%rip), %rax
	movq	_PFCTL_FLAG_ALTQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	_PF_OPT_NOACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
LBB0_9:
	movq	8(%rbx), %rdi
	callq	_pfaltq_store
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	16(%rbx), %edi
	movq	_DIOCADDALTQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_9
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_altqsupport,8,3                ## @altqsupport
	.comm	_loadopt,4,2                    ## @loadopt
	.comm	_PFCTL_FLAG_ALTQ,4,2            ## @PFCTL_FLAG_ALTQ
	.comm	_PF_OPT_NOACTION,4,2            ## @PF_OPT_NOACTION
	.comm	_DIOCADDALTQ,4,2                ## @DIOCADDALTQ
	.comm	_errno,8,3                      ## @errno
	.comm	_ENXIO,8,3                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"qtype not configured"

	.comm	_ENODEV,8,3                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"%s: driver does not support altq"

L_.str.2:                               ## @.str.2
	.asciz	"DIOCADDALTQ"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_add_altq                 ; -- Begin function pfctl_add_altq
	.p2align	2
_pfctl_add_altq:                        ; @pfctl_add_altq
	.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
Lloh0:
	adrp	x8, _altqsupport@GOTPAGE
Lloh1:
	ldr	x8, [x8, _altqsupport@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.1:
Lloh3:
	adrp	x8, _loadopt@GOTPAGE
Lloh4:
	ldr	x8, [x8, _loadopt@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PFCTL_FLAG_ALTQ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PFCTL_FLAG_ALTQ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.2:
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #8]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _PF_OPT_NOACTION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PF_OPT_NOACTION@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.3:
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x8, _DIOCADDALTQ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DIOCADDALTQ@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	bl	_ioctl
	cbz	x0, LBB0_10
; %bb.4:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _ENXIO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ENXIO@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh23:
	adrp	x9, _ENODEV@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	w0, #1
	bl	_errx
	b	LBB0_10
LBB0_9:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_pfaltq_store
LBB0_11:
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_altqsupport,8,3                ; @altqsupport
	.comm	_loadopt,4,2                    ; @loadopt
	.comm	_PFCTL_FLAG_ALTQ,4,2            ; @PFCTL_FLAG_ALTQ
	.comm	_PF_OPT_NOACTION,4,2            ; @PF_OPT_NOACTION
	.comm	_DIOCADDALTQ,4,2                ; @DIOCADDALTQ
	.comm	_errno,8,3                      ; @errno
	.comm	_ENXIO,8,3                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"qtype not configured"

	.comm	_ENODEV,8,3                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"%s: driver does not support altq"

l_.str.2:                               ; @.str.2
	.asciz	"DIOCADDALTQ"

.subsections_via_symbols
