	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freebsd32_swapcontext          ## -- Begin function freebsd32_swapcontext
	.p2align	4, 0x90
_freebsd32_swapcontext:                 ## @freebsd32_swapcontext
	.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
	cmpq	$0, 8(%rsi)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	cmpq	$0, (%rsi)
	je	LBB0_6
## %bb.2:
	movq	%rdi, %r15
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_bzero
	leaq	-44(%rbp), %r14
	movq	_GET_MC_CLEAR_RET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ia32_get_mcontext
	movl	(%r15), %edi
	callq	_PROC_LOCK
	movl	4(%r15), %eax
	movl	%eax, -48(%rbp)
	movl	(%r15), %edi
	callq	_PROC_UNLOCK
	movq	8(%rbx), %rsi
	movq	_UC_COPY_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	callq	_copyout
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	(%rbx), %rdi
	movl	(%r13), %edx
	leaq	-48(%rbp), %rsi
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ia32_set_mcontext
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	_SIG_SETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_kern_sigprocmask
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jne	LBB0_8
LBB0_7:
	movq	_EJUSTRETURN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GET_MC_CLEAR_RET,4,2           ## @GET_MC_CLEAR_RET
	.comm	_UC_COPY_SIZE,4,2               ## @UC_COPY_SIZE
	.comm	_SIG_SETMASK,4,2                ## @SIG_SETMASK
	.comm	_EJUSTRETURN,4,2                ## @EJUSTRETURN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freebsd32_swapcontext          ; -- Begin function freebsd32_swapcontext
	.p2align	2
_freebsd32_swapcontext:                 ; @freebsd32_swapcontext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x8, [x1, #8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x19, x0
	add	x20, sp, #8
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	orr	x20, x20, #0x4
Lloh0:
	adrp	x8, _GET_MC_CLEAR_RET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GET_MC_CLEAR_RET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_ia32_get_mcontext
	ldr	w0, [x19]
	bl	_PROC_LOCK
	ldp	w0, w8, [x19]
	str	w8, [sp, #8]
	bl	_PROC_UNLOCK
	ldr	x1, [x21, #8]
Lloh3:
	adrp	x22, _UC_COPY_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _UC_COPY_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x0, sp, #8
	bl	_copyout
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x0, [x21]
	ldr	w2, [x22]
	add	x1, sp, #8
	bl	_copyin
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_ia32_set_mcontext
	cbnz	w0, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _SIG_SETMASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIG_SETMASK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	bl	_kern_sigprocmask
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	cbnz	w0, LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EJUSTRETURN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EJUSTRETURN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GET_MC_CLEAR_RET,4,2           ; @GET_MC_CLEAR_RET
	.comm	_UC_COPY_SIZE,4,2               ; @UC_COPY_SIZE
	.comm	_SIG_SETMASK,4,2                ; @SIG_SETMASK
	.comm	_EJUSTRETURN,4,2                ; @EJUSTRETURN
.subsections_via_symbols
