	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swapactive
_swapactive:                            ## @swapactive
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$2, -12(%rbp)
	movq	_ipfname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_opendevice
	movl	$2, %esi
	cmpl	$-2, %eax
	je	LBB0_3
## %bb.1:
	movq	_fd@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SIOCSWAPA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:
	movl	-12(%rbp), %esi
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	jmp	LBB0_4
LBB0_5:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ipferror
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipfname,4,2                    ## @ipfname
	.comm	_fd,4,2                         ## @fd
	.comm	_SIOCSWAPA,4,2                  ## @SIOCSWAPA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl(SIOCSWAPA)"

L_.str.1:                               ## @.str.1
	.asciz	"Set %d now inactive\n"

	.no_dead_strip	_swapactive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapactive
_swapactive:                            ; @swapactive
	.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	w19, #2
	str	w19, [sp, #12]
Lloh0:
	adrp	x8, _ipfname@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipfname@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_opendevice
	cmn	w0, #2
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x19, _fd@GOTPAGE
Lloh4:
	ldr	x19, [x19, _fd@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _SIOCSWAPA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIOCSWAPA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.2:
	ldr	w19, [sp, #12]
LBB0_3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_printf
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ipferror
LBB0_5:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ipfname,4,2                    ; @ipfname
	.comm	_fd,4,2                         ; @fd
	.comm	_SIOCSWAPA,4,2                  ; @SIOCSWAPA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl(SIOCSWAPA)"

l_.str.1:                               ; @.str.1
	.asciz	"Set %d now inactive\n"

	.no_dead_strip	_swapactive
.subsections_via_symbols
