	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_bkptexec                  ## -- Begin function proc_bkptexec
	.p2align	4, 0x90
_proc_bkptexec:                         ## @proc_bkptexec
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_REG_PC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-32(%rbp), %rdx
	callq	_proc_regget
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	leaq	-32(%rbp), %rdi
	callq	_proc_bkptregadj
	movq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_proc_bkptdel
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	(%r15), %esi
	movq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_proc_regset
	movq	_PT_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_proc_getpid
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	callq	_proc_wstatus
	movq	%rbx, %rdi
	callq	_proc_getwstat
	movl	%eax, %edi
	callq	_WIFSTOPPED
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_proc_bkptset
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	xorl	%edi, %edi
	cmpq	%r14, -40(%rbp)
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
LBB0_2:
	callq	_DPRINTFX
	movl	$-1, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PC,4,2                     ## @REG_PC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR: couldn't get PC register"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: couldn't delete breakpoint"

	.comm	_PT_STEP,4,2                    ## @PT_STEP
L_.str.2:                               ## @.str.2
	.asciz	"ERROR: ptrace step failed"

L_.str.3:                               ## @.str.3
	.asciz	"ERROR: don't know why process stopped"

L_.str.4:                               ## @.str.4
	.asciz	"ERROR: couldn't restore breakpoint"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_bkptexec                  ; -- Begin function proc_bkptexec
	.p2align	2
_proc_bkptexec:                         ; @proc_bkptexec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _REG_PC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_PC@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #8
	bl	_proc_regget
	tbnz	x0, #63, LBB0_6
; %bb.1:
	add	x0, sp, #8
	bl	_proc_bkptregadj
	ldr	x1, [sp, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_proc_bkptdel
	tbnz	x0, #63, LBB0_7
; %bb.2:
	ldr	w1, [x21]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_proc_regset
Lloh2:
	adrp	x8, _PT_STEP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PT_STEP@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_proc_getpid
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	mov	w3, #0
	bl	_ptrace
	tbnz	x0, #63, LBB0_8
; %bb.3:
	mov	x0, x20
	bl	_proc_wstatus
	mov	x0, x20
	bl	_proc_getwstat
	bl	_WIFSTOPPED
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x1, [sp, #8]
	mov	x2, sp
	mov	x0, x20
	bl	_proc_bkptset
	tbnz	x0, #63, LBB0_10
; %bb.5:
	ldr	x8, [sp]
	cmp	x8, x19
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	b	LBB0_12
LBB0_6:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_11:
	bl	_DPRINTFX
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PC,4,2                     ; @REG_PC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR: couldn't get PC register"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: couldn't delete breakpoint"

	.comm	_PT_STEP,4,2                    ; @PT_STEP
l_.str.2:                               ; @.str.2
	.asciz	"ERROR: ptrace step failed"

l_.str.3:                               ; @.str.3
	.asciz	"ERROR: don't know why process stopped"

l_.str.4:                               ; @.str.4
	.asciz	"ERROR: couldn't restore breakpoint"

.subsections_via_symbols
