	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function manage_sets
_manage_sets:                           ## @manage_sets
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$24, (%rdx)
	jne	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	movl	$24, %esi
	callq	_ipfw_get_sopt_space
	movl	$1, %ebx
	cmpl	$4, 16(%rax)
	jne	LBB0_10
## %bb.3:
	movq	%rax, %r15
	cmpl	$130, (%r12)
	jne	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	callq	_IPFW_UH_WLOCK
	movl	(%r12), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_7
## %bb.11:
	xorl	%edx, %edx
	cmpl	$129, %eax
	sete	%dl
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_swap_sets
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_4:
	movq	_IPFW_MAX_SETS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r15)
	jge	LBB0_1
## %bb.5:
	cmpq	%rax, 8(%r15)
	jl	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_enable_sets
LBB0_9:
	movq	%r14, %rdi
	callq	_IPFW_UH_WUNLOCK
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPFW_MAX_SETS,8,3              ## @IPFW_MAX_SETS
	.no_dead_strip	_manage_sets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function manage_sets
_manage_sets:                           ; @manage_sets
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x2]
	cmp	w8, #24
	b.ne	LBB0_8
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	mov	w1, #24
	bl	_ipfw_get_sopt_space
	ldr	w8, [x0, #16]
	cmp	w8, #4
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w8, #130
	b.ne	LBB0_6
LBB0_3:
	mov	x0, x19
	bl	_IPFW_UH_WLOCK
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_9
; %bb.4:
	cmp	w8, #129
	cset	w2, eq
	mov	x0, x19
	mov	x1, x20
	bl	_swap_sets
	mov	x20, x0
	b	LBB0_12
LBB0_5:
	mov	w20, #1
	b	LBB0_13
LBB0_6:
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _IPFW_MAX_SETS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPFW_MAX_SETS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ge	LBB0_8
; %bb.7:
	ldr	x9, [x20, #8]
	cmp	x9, x8
	b.lt	LBB0_3
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_13
LBB0_9:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_enable_sets
LBB0_11:
	mov	w20, #0
LBB0_12:
	mov	x0, x19
	bl	_IPFW_UH_WUNLOCK
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPFW_MAX_SETS,8,3              ; @IPFW_MAX_SETS
	.no_dead_strip	_manage_sets
.subsections_via_symbols
