	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fix_unaligned
_fix_unaligned:                         ## @fix_unaligned
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	8(%rsi), %edi
	callq	_EXC_ALI_OPCODE_INDICATOR
	movl	%eax, %r12d
	andl	$-2, %eax
	movl	$-1, %r14d
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.1:
	movl	8(%r13), %edi
	callq	_EXC_ALI_RST
	movq	(%r15), %rcx
	movslq	%eax, %rbx
	shlq	$3, %rbx
	addq	(%rcx), %rbx
	callq	_PCPU_GET
	cmpq	%r15, %rax
	je	LBB0_5
## %bb.2:
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_save_fpu
LBB0_4:
	movq	%r15, %rdi
	callq	_enable_fpu
LBB0_5:
	movq	%r15, %rdi
	callq	_save_fpu
	movq	(%r13), %rsi
	cmpl	$129, %r12d
	jne	LBB0_8
## %bb.6:
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_copyin
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_enable_fpu
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_copyout
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESR_SPE,4,2                    ## @ESR_SPE
	.comm	_ESR_ST,4,2                     ## @ESR_ST
	.comm	_vecthread,8,3                  ## @vecthread
	.no_dead_strip	_fix_unaligned
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fix_unaligned
_fix_unaligned:                         ; @fix_unaligned
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1, #8]
	bl	_EXC_ALI_OPCODE_INDICATOR
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.1:
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_EXC_ALI_RST
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x22, x8, w0, sxtw #3
	bl	_PCPU_GET
	cmp	x0, x19
	b.eq	LBB0_5
; %bb.2:
	cbz	x0, LBB0_4
; %bb.3:
	bl	_save_fpu
LBB0_4:
	mov	x0, x19
	bl	_enable_fpu
LBB0_5:
	mov	x0, x19
	bl	_save_fpu
	ldr	x1, [x20]
	cmp	w21, #129
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x1
	mov	x1, x22
	mov	w2, #8
	bl	_copyin
	cbnz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_enable_fpu
	b	LBB0_11
LBB0_8:
	mov	x0, x22
	mov	w2, #8
	bl	_copyout
	cbz	x0, LBB0_11
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
LBB0_11:
	mov	w0, #0
	b	LBB0_10
	.cfi_endproc
                                        ; -- End function
	.comm	_ESR_SPE,4,2                    ; @ESR_SPE
	.comm	_ESR_ST,4,2                     ; @ESR_ST
	.comm	_vecthread,8,3                  ; @vecthread
	.no_dead_strip	_fix_unaligned
.subsections_via_symbols
