	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_select                    ## -- Begin function gdbr_select
	.p2align	4, 0x90
_gdbr_select:                           ## @gdbr_select
	.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
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	callq	_gdbr_lock_enter
	movl	$-1, %r14d
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_reg_cache@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	%r12d, (%rbx)
	movl	%r15d, 4(%rbx)
	leaq	L_.str(%rip), %rsi
	leaq	-112(%rbp), %rdi
	callq	_strcpy
	leaq	-110(%rbp), %rdi
	movl	16(%rbx), %r8d
	movl	$61, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_write_thread_id
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	$0, 12(%rbx)
	leaq	-112(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_send_msg
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_read_packet
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_send_ack
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	xorl	%r14d, %r14d
	negq	%rax
	sbbl	%r14d, %r14d
	jmp	LBB0_7
LBB0_2:
	movl	%eax, %r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_gdbr_lock_leave
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r14d, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_cache,4,2                  ## @reg_cache
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hg"

L_.str.1:                               ## @.str.1
	.asciz	"OK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_select                    ; -- Begin function gdbr_select
	.p2align	2
_gdbr_select:                           ; @gdbr_select
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	bl	_gdbr_lock_enter
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _reg_cache@GOTPAGE
Lloh4:
	ldr	x8, [x8, _reg_cache@GOTPAGEOFF]
Lloh5:
	str	wzr, [x8]
	stp	w21, w20, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x22, sp
	mov	x0, sp
	bl	_strcpy
	orr	x0, x22, #0x2
	ldr	w4, [x19, #16]
	mov	w1, #61
	mov	x2, x21
	mov	x3, x20
	bl	_write_thread_id
	tbnz	w0, #31, LBB0_7
; %bb.2:
	str	wzr, [x19, #12]
	mov	x1, sp
	mov	x0, x19
	bl	_send_msg
	tbnz	x0, #63, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_read_packet
	tbnz	x0, #63, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_send_ack
	tbnz	x0, #63, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	csetm	w20, ne
	b	LBB0_8
LBB0_6:
	mov	w20, #-1
	b	LBB0_8
LBB0_7:
	mov	x20, x0
LBB0_8:
	mov	x0, x19
	bl	_gdbr_lock_leave
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_cache,4,2                  ; @reg_cache
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hg"

l_.str.1:                               ; @.str.1
	.asciz	"OK"

.subsections_via_symbols
