	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swap_sets
_swap_sets:                             ## @swap_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_IPFW_UH_WLOCK_ASSERT
	movq	(%r15), %rcx
	xorl	%eax, %eax
	cmpq	8(%r15), %rcx
	je	LBB0_35
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.2:
	movq	_ctl3_rsize@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movq	_ctl3_rewriters@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_ctl3_rewriters@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%r13), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$8, %r14
	movslq	%eax, %rdx
	leaq	(%rcx,%rdx,8), %rdx
	cmpq	%rdx, %r14
	jae	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rsi
	movq	8(%r15), %rdx
	movq	_TEST_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	*%rbx
	testl	%eax, %eax
	je	LBB0_6
## %bb.36:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_35
LBB0_8:
	movl	(%r12), %r8d
	cmpl	$2, %r8d
	movl	-44(%rbp), %r11d                ## 4-byte Reload
	jl	LBB0_27
## %bb.9:
	decl	%r8d
	movq	8(%r12), %r10
	movq	(%r15), %rax
	cmpl	$1, %r8d
	jne	LBB0_11
## %bb.10:
	xorl	%esi, %esi
LBB0_21:
	testb	$1, %r8b
	je	LBB0_27
## %bb.22:
	movq	(%r10,%rsi,8), %rcx
	movq	(%rcx), %rdx
	movq	8(%r15), %rsi
	cmpq	%rax, %rdx
	jne	LBB0_24
## %bb.23:
	movq	%rsi, %rax
	jmp	LBB0_26
LBB0_11:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rcx, (%rbx)
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %r9
	je	LBB0_21
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rsi,8), %rbx
	movq	(%rbx), %rdi
	movq	%rdx, %rcx
	cmpq	%rax, %rdi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%r11d, %r11d
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rcx
	cmpq	%rdx, %rdi
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	%rcx, (%rbx)
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r10,%rsi,8), %rbx
	movq	(%rbx), %rdi
	movq	%rdx, %rcx
	cmpq	%rax, %rdi
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%r11d, %r11d
	jne	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rcx
	cmpq	%rdx, %rdi
	je	LBB0_19
	jmp	LBB0_20
LBB0_24:
	testl	%r11d, %r11d
	jne	LBB0_27
## %bb.25:
	cmpq	%rsi, %rdx
	jne	LBB0_27
LBB0_26:
	movq	%rax, (%rcx)
LBB0_27:
	movq	_ctl3_rsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_34
## %bb.28:
	movq	_ctl3_rewriters@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	%rcx, %r13
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	(%r15), %rsi
	movq	8(%r15), %rdx
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	*%rbx
	movq	(%r14), %rcx
	movq	_ctl3_rsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	addq	$8, %r13
	movslq	%eax, %rdx
	leaq	(%rcx,%rdx,8), %rdx
	cmpq	%rdx, %r13
	jae	LBB0_34
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_MOVE_ALL@GOTPCREL(%rip), %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	_SWAP_ALL@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_34:
	xorl	%eax, %eax
LBB0_35:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ctl3_rewriters,8,3             ## @ctl3_rewriters
	.comm	_ctl3_rsize,4,2                 ## @ctl3_rsize
	.comm	_TEST_ALL,4,2                   ## @TEST_ALL
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_MOVE_ALL,4,2                   ## @MOVE_ALL
	.comm	_SWAP_ALL,4,2                   ## @SWAP_ALL
	.no_dead_strip	_swap_sets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swap_sets
_swap_sets:                             ; @swap_sets
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_IPFW_UH_WLOCK_ASSERT
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.1:
Lloh0:
	adrp	x22, _ctl3_rsize@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ctl3_rsize@GOTPAGEOFF]
	cbz	w19, LBB0_8
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
Lloh2:
	adrp	x23, _ctl3_rewriters@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ctl3_rewriters@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh4:
	adrp	x24, _TEST_ALL@GOTPAGE
Lloh5:
	ldr	x24, [x24, _TEST_ALL@GOTPAGEOFF]
	mov	x25, x9
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #8
	add	x10, x9, w8, sxtw #3
	cmp	x25, x10
	b.hs	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x25]
	cbz	x10, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x1, x2, [x20]
	ldr	w3, [x24]
	mov	x0, x21
	blr	x10
	cbnz	w0, LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23]
	ldr	w8, [x22]
	b	LBB0_4
LBB0_8:
	ldr	w8, [x21]
	subs	w8, w8, #1
	b.le	LBB0_15
; %bb.9:
	ldr	x9, [x21, #8]
	ldp	x10, x11, [x20]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	str	x14, [x12]
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9]
	ldr	x13, [x12]
	mov	x14, x11
	cmp	x13, x10
	b.eq	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w19, LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x14, x10
	cmp	x13, x11
	b.eq	LBB0_10
	b	LBB0_11
LBB0_15:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.16:
Lloh6:
	adrp	x23, _ctl3_rewriters@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ctl3_rewriters@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh8:
	adrp	x24, _MOVE_ALL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _MOVE_ALL@GOTPAGEOFF]
Lloh10:
	adrp	x25, _SWAP_ALL@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SWAP_ALL@GOTPAGEOFF]
	mov	x26, x9
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x26, x26, #8
	add	x10, x9, w8, sxtw #3
	cmp	x26, x10
	b.hs	LBB0_20
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x26]
	cbz	x10, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldp	x1, x2, [x20]
	cmp	w19, #0
	csel	x8, x25, x24, eq
	ldr	w3, [x8]
	mov	x0, x21
	blr	x10
	ldr	x9, [x23]
	ldr	w8, [x22]
	b	LBB0_17
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
Lloh12:
	adrp	x8, _EEXIST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_21
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ctl3_rewriters,8,3             ; @ctl3_rewriters
	.comm	_ctl3_rsize,4,2                 ; @ctl3_rsize
	.comm	_TEST_ALL,4,2                   ; @TEST_ALL
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_MOVE_ALL,4,2                   ; @MOVE_ALL
	.comm	_SWAP_ALL,4,2                   ; @SWAP_ALL
	.no_dead_strip	_swap_sets
.subsections_via_symbols
