	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freebsd32_getcontext           ## -- Begin function freebsd32_getcontext
	.p2align	4, 0x90
_freebsd32_getcontext:                  ## @freebsd32_getcontext
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_bzero
	leaq	-28(%rbp), %rsi
	movq	_GET_MC_CLEAR_RET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ia32_get_mcontext
	movl	(%rbx), %edi
	callq	_PROC_LOCK
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	(%rbx), %edi
	callq	_PROC_UNLOCK
	movq	(%r15), %rsi
	movq	_UC_COPY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_copyout
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_freebsd32_getcontext           ; -- Begin function freebsd32_getcontext
	.p2align	2
_freebsd32_getcontext:                  ; @freebsd32_getcontext
	.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]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	orr	x1, x21, #0x4
Lloh0:
	adrp	x8, _GET_MC_CLEAR_RET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GET_MC_CLEAR_RET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ia32_get_mcontext
	ldr	w0, [x20]
	bl	_PROC_LOCK
	ldp	w0, w8, [x20]
	str	w8, [sp, #8]
	bl	_PROC_UNLOCK
	ldr	x1, [x19]
Lloh3:
	adrp	x8, _UC_COPY_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UC_COPY_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_copyout
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
.subsections_via_symbols
