	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function legacy_write_register_gen
_legacy_write_register_gen:             ## @legacy_write_register_gen
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	testl	%edi, %edi
	js	LBB0_1
## %bb.2:
	movq	_NUM_REGS@GOTPCREL(%rip), %rax
	movq	_NUM_PSEUDO_REGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	(%rax), %ecx
	xorl	%edi, %edi
	cmpl	%ebx, %ecx
	setg	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_gdb_assert
	movl	%ebx, %edi
	callq	_CANNOT_STORE_REGISTER
	testq	%rax, %rax
	je	LBB0_4
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_registers_ptid@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_inferior_ptid@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_ptid_equal
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_registers_changed
	movl	(%r12), %eax
	movl	%eax, (%r15)
LBB0_6:
	movl	%ebx, %edi
	callq	_DEPRECATED_REGISTER_RAW_SIZE
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_real_register
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	%ebx, %edi
	callq	_register_cached
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_current_regcache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_register_buffer
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	xorl	%eax, %eax
	callq	_target_prepare_to_store
LBB0_10:
	movq	_current_regcache@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_register_buffer
	movl	%eax, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_set_register_cached
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_target_store_registers         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_REGS,4,2                   ## @NUM_REGS
	.comm	_NUM_PSEUDO_REGS,4,2            ## @NUM_PSEUDO_REGS
	.comm	_registers_ptid,4,2             ## @registers_ptid
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_current_regcache,4,2           ## @current_regcache
	.no_dead_strip	_legacy_write_register_gen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function legacy_write_register_gen
_legacy_write_register_gen:             ; @legacy_write_register_gen
	.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
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NUM_REGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_REGS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NUM_PSEUDO_REGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUM_PSEUDO_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w8, w9, w8
	cmp	w8, w19
	cset	w0, gt
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_gdb_assert
	mov	x0, x19
	bl	_CANNOT_STORE_REGISTER
	cbz	x0, LBB0_5
LBB0_4:
	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_5:
Lloh6:
	adrp	x21, _registers_ptid@GOTPAGE
Lloh7:
	ldr	x21, [x21, _registers_ptid@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x22, _inferior_ptid@GOTPAGE
Lloh9:
	ldr	x22, [x22, _inferior_ptid@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ptid_equal
	cbnz	w0, LBB0_7
; %bb.6:
	bl	_registers_changed
	ldr	w8, [x22]
	str	w8, [x21]
LBB0_7:
	mov	x0, x19
	bl	_DEPRECATED_REGISTER_RAW_SIZE
	mov	x21, x0
	mov	x0, x19
	bl	_real_register
Lloh10:
	adrp	x22, _current_regcache@GOTPAGE
Lloh11:
	ldr	x22, [x22, _current_regcache@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_register_cached
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_register_buffer
	mov	x1, x20
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_4
LBB0_10:
	bl	_target_prepare_to_store
LBB0_11:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_register_buffer
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	mov	x0, x19
	mov	w1, #1
	bl	_set_register_cached
	mov	x0, x19
	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
	b	_target_store_registers
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_REGS,4,2                   ; @NUM_REGS
	.comm	_NUM_PSEUDO_REGS,4,2            ; @NUM_PSEUDO_REGS
	.comm	_registers_ptid,4,2             ; @registers_ptid
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_current_regcache,4,2           ; @current_regcache
	.no_dead_strip	_legacy_write_register_gen
.subsections_via_symbols
