	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_altq_set_enabled               ## -- Begin function altq_set_enabled
	.p2align	4, 0x90
_altq_set_enabled:                      ## @altq_set_enabled
	.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
	movl	%edi, %r14d
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_open
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_6
LBB0_3:
	movq	_DIOCSTARTALTQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_1:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_err
	testl	%r14d, %r14d
	jne	LBB0_3
LBB0_6:
	movq	_DIOCSTOPALTQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_err
LBB0_10:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_close                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/dev/pf"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_EX_UNAVAILABLE,4,2             ## @EX_UNAVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"altq support opening pf(4) control device"

	.comm	_DIOCSTARTALTQ,4,2              ## @DIOCSTARTALTQ
	.comm	_errno,8,3                      ## @errno
	.comm	_EEXIST,8,3                     ## @EEXIST
L_.str.2:                               ## @.str.2
	.asciz	"enabling altq"

	.comm	_DIOCSTOPALTQ,4,2               ## @DIOCSTOPALTQ
	.comm	_ENOENT,8,3                     ## @ENOENT
L_.str.3:                               ## @.str.3
	.asciz	"disabling altq"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_altq_set_enabled               ; -- Begin function altq_set_enabled
	.p2align	2
_altq_set_enabled:                      ; @altq_set_enabled
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_open
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
	cbz	w20, LBB0_6
LBB0_2:
Lloh5:
	adrp	x8, _DIOCSTARTALTQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIOCSTARTALTQ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ioctl
	cbz	x0, LBB0_10
; %bb.3:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _EEXIST@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EEXIST@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.4:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh16:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_err
	cbnz	w20, LBB0_2
LBB0_6:
Lloh21:
	adrp	x8, _DIOCSTOPALTQ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DIOCSTOPALTQ@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ioctl
	cbz	x0, LBB0_10
; %bb.7:
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _ENOENT@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
Lloh32:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_err
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_close
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/dev/pf"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_EX_UNAVAILABLE,4,2             ; @EX_UNAVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"altq support opening pf(4) control device"

	.comm	_DIOCSTARTALTQ,4,2              ; @DIOCSTARTALTQ
	.comm	_errno,8,3                      ; @errno
	.comm	_EEXIST,8,3                     ; @EEXIST
l_.str.2:                               ; @.str.2
	.asciz	"enabling altq"

	.comm	_DIOCSTOPALTQ,4,2               ; @DIOCSTOPALTQ
	.comm	_ENOENT,8,3                     ; @ENOENT
l_.str.3:                               ; @.str.3
	.asciz	"disabling altq"

.subsections_via_symbols
