	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_write_register            ## -- Begin function gdbr_write_register
	.p2align	4, 0x90
_gdbr_write_register:                   ## @gdbr_write_register
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -65(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -288(%rbp)
	movaps	%xmm0, -304(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_gdbr_lock_enter
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movq	_reg_cache@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_CMD_WRITEREG@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	leaq	-304(%rbp), %rdi
	movl	$254, %esi
	movl	%r13d, %r8d
	callq	_snprintf
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r15), %ecx
	cmpl	$255, %ecx
	jb	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_eprintf
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_9
LBB0_5:
	cltq
	leaq	(%rax,%rbp), %r13
	addq	$-304, %r13                     ## imm = 0xFED0
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_pack_hex
	leaq	-304(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_send_msg
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_read_packet
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_handle_P
LBB0_8:
	movq	%rbx, %rdi
	callq	_gdbr_lock_leave
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r14d, %eax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_cache,4,2                  ## @reg_cache
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%x="

	.comm	_CMD_WRITEREG,8,3               ## @CMD_WRITEREG
L_.str.1:                               ## @.str.1
	.asciz	"command is too small\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_write_register            ; -- Begin function gdbr_write_register
	.p2align	2
_gdbr_write_register:                   ; @gdbr_write_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	movi.2d	v0, #0000000000000000
	stur	q0, [sp, #239]
	stp	q0, q0, [sp, #208]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #112]
	stp	q0, q0, [sp, #80]
	stp	q0, q0, [sp, #48]
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_gdbr_lock_enter
	cbz	w0, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _reg_cache@GOTPAGE
Lloh4:
	ldr	x8, [x8, _reg_cache@GOTPAGEOFF]
Lloh5:
	str	wzr, [x8]
Lloh6:
	adrp	x8, _CMD_WRITEREG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_WRITEREG@GOTPAGEOFF]
Lloh8:
	ldr	x3, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x23, sp
	mov	x0, sp
	mov	w1, #254
	mov	x4, x22
	bl	_snprintf
	add	w8, w0, w20
	cmp	w8, #255
	b.lo	LBB0_5
; %bb.3:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_eprintf
	b	LBB0_9
LBB0_4:
	mov	w20, #-1
	b	LBB0_11
LBB0_5:
	add	x22, x23, w0, sxtw
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_pack_hex
	mov	x1, sp
	mov	x0, x19
	bl	_send_msg
	tbnz	x0, #63, LBB0_9
; %bb.6:
	mov	x0, x19
	mov	w1, #0
	bl	_read_packet
	tbnz	x0, #63, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_handle_P
LBB0_8:
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	w20, #-1
LBB0_10:
	mov	x0, x19
	bl	_gdbr_lock_leave
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_cache,4,2                  ; @reg_cache
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%x="

	.comm	_CMD_WRITEREG,8,3               ; @CMD_WRITEREG
l_.str.1:                               ; @.str.1
	.asciz	"command is too small\n"

.subsections_via_symbols
