	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_context_reg
_set_context_reg:                       ## @set_context_reg
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_dbghelp_current_cpu@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rdx, %rdi
	callq	*(%rax)
	movl	%eax, %r12d
	movq	(%r13), %rax
	leaq	-68(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	*8(%rax)
	movq	%rax, %r13
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movl	-68(%rbp), %ecx
	cmpl	$17, %ecx
	jb	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_7:
	movl	-68(%rbp), %ecx
	cmpl	$8, %ecx
	jne	LBB0_8
## %bb.9:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r13)
	jmp	LBB0_10
LBB0_4:
	leaq	-64(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_sw_read_mem
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	-68(%rbp), %edx
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_memcpy
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
LBB0_3:
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_FIXME
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_WARN
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_dbghelp_current_cpu,8,3        ## @dbghelp_current_cpu
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"register %lu/%u size is too wide: %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't read memory at %p\n"

L_.str.2:                               ## @.str.2
	.asciz	"assigning to register %lu/%u of wrong size %u\n"

	.no_dead_strip	_set_context_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_context_reg
_set_context_reg:                       ; @set_context_reg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x4
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x25, _dbghelp_current_cpu@GOTPAGE
Lloh4:
	ldr	x25, [x25, _dbghelp_current_cpu@GOTPAGEOFF]
	str	x8, [sp, #24]
	ldr	x8, [x25]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _TRUE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	x0, x2
	blr	x8
	mov	x22, x0
	ldr	x8, [x25]
	ldr	x8, [x8, #8]
	add	x2, sp, #4
	mov	x0, x23
	mov	x1, x22
	blr	x8
	mov	x23, x0
	cbz	x24, LBB0_3
; %bb.1:
	ldr	w3, [sp, #4]
	cmp	w3, #17
	b.lo	LBB0_5
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_3:
	ldr	w3, [sp, #4]
	cmp	w3, #8
	b.ne	LBB0_7
; %bb.4:
	str	x19, [x23]
	b	LBB0_9
LBB0_5:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_sw_read_mem
	cbz	w0, LBB0_11
; %bb.6:
	ldr	w2, [sp, #4]
	add	x1, sp, #8
	mov	x0, x23
	bl	_memcpy
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_8:
	mov	x1, x20
	mov	x2, x22
	bl	_FIXME
LBB0_9:
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_WARN
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_dbghelp_current_cpu,8,3        ; @dbghelp_current_cpu
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"register %lu/%u size is too wide: %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't read memory at %p\n"

l_.str.2:                               ; @.str.2
	.asciz	"assigning to register %lu/%u of wrong size %u\n"

	.no_dead_strip	_set_context_reg
.subsections_via_symbols
