	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_bkptset                   ## -- Begin function proc_bkptset
	.p2align	4, 0x90
_proc_bkptset:                          ## @proc_bkptset
	.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	$0, (%rdx)
	movq	(%rdi), %rax
	movq	_PS_DEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_PS_UNDEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_PS_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	callq	_DPRINTFX
	movq	(%r12), %rbx
	movq	_PS_STOP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	_proc_stop
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_13
LBB0_6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	movq	_PIOD_READ_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%r13, -80(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	_BREAKPOINT_INSTR_SZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	_PT_IO@GOTPCREL(%rip), %rax
	movq	%r13, %rbx
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_proc_getpid
	leaq	-96(%rbp), %rcx
	xorl	%r14d, %r14d
	movl	%r13d, %edi
	movq	%rcx, %r13
	movl	%eax, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rax
	movq	%rax, (%r15)
	movq	_BREAKPOINT_INSTR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PIOD_WRITE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%rbx, -80(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -96(%rbp)
	movq	_BREAKPOINT_INSTR_SZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movq	_PT_IO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_proc_getpid
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_ptrace
	testq	%rax, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jns	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r14d
	jmp	LBB0_13
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_10:
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_DPRINTF
	movl	$-1, %r14d
LBB0_11:
	cmpq	%rbx, %r15
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_proc_continue
LBB0_13:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_DEAD,8,3                    ## @PS_DEAD
	.comm	_PS_UNDEAD,8,3                  ## @PS_UNDEAD
	.comm	_PS_IDLE,8,3                    ## @PS_IDLE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"adding breakpoint at 0x%lx"

	.comm	_PS_STOP,8,3                    ## @PS_STOP
	.comm	_PIOD_READ_I,4,2                ## @PIOD_READ_I
	.comm	_BREAKPOINT_INSTR_SZ,8,3        ## @BREAKPOINT_INSTR_SZ
	.comm	_PT_IO,4,2                      ## @PT_IO
L_.str.1:                               ## @.str.1
	.asciz	"ERROR: couldn't read instruction at address 0x%jx"

	.comm	_BREAKPOINT_INSTR,8,3           ## @BREAKPOINT_INSTR
	.comm	_PIOD_WRITE_I,4,2               ## @PIOD_WRITE_I
L_.str.2:                               ## @.str.2
	.asciz	"ERROR: couldn't write instruction at address 0x%jx"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_bkptset                   ; -- Begin function proc_bkptset
	.p2align	2
_proc_bkptset:                          ; @proc_bkptset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	xzr, [x2]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PS_DEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PS_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PS_UNDEAD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PS_UNDEAD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _PS_IDLE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PS_IDLE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
	mov	w21, #-1
	b	LBB0_12
LBB0_2:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTFX
	ldr	x23, [x19]
Lloh17:
	adrp	x8, _PS_STOP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PS_STOP@GOTPAGEOFF]
Lloh19:
	ldr	x24, [x8]
	cmp	x23, x24
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_proc_stop
	cbz	x0, LBB0_5
; %bb.4:
	mov	w21, #-1
	b	LBB0_12
LBB0_5:
	str	xzr, [sp, #8]
Lloh20:
	adrp	x8, _PIOD_READ_I@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PIOD_READ_I@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	x20, [sp, #32]
	add	x25, sp, #8
Lloh23:
	adrp	x26, _BREAKPOINT_INSTR_SZ@GOTPAGE
Lloh24:
	ldr	x26, [x26, _BREAKPOINT_INSTR_SZ@GOTPAGEOFF]
	ldr	x8, [x26]
	stp	x25, x8, [sp, #16]
Lloh25:
	adrp	x27, _PT_IO@GOTPAGE
Lloh26:
	ldr	x27, [x27, _PT_IO@GOTPAGEOFF]
	ldr	w22, [x27]
	mov	x0, x19
	bl	_proc_getpid
	mov	x1, x0
	add	x2, sp, #16
	mov	x0, x22
	mov	w3, #0
	bl	_ptrace
	tbnz	x0, #63, LBB0_8
; %bb.6:
	ldr	x8, [sp, #8]
Lloh27:
	adrp	x9, _BREAKPOINT_INSTR@GOTPAGE
Lloh28:
	ldr	x9, [x9, _BREAKPOINT_INSTR@GOTPAGEOFF]
	str	x8, [x21]
Lloh29:
	ldr	x8, [x9]
	str	x8, [sp, #8]
Lloh30:
	adrp	x8, _PIOD_WRITE_I@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PIOD_WRITE_I@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	ldr	x8, [x26]
	str	x25, [sp, #16]
	stp	x8, x20, [sp, #24]
	ldr	w21, [x27]
	mov	x0, x19
	bl	_proc_getpid
	mov	x1, x0
	add	x2, sp, #16
	mov	x0, x21
	mov	w3, #0
	bl	_ptrace
	mov	w21, #0
	tbz	x0, #63, LBB0_10
; %bb.7:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_9:
	mov	x1, x20
	bl	_DPRINTF
	mov	w21, #-1
LBB0_10:
	cmp	x23, x24
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_proc_continue
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_DEAD,8,3                    ; @PS_DEAD
	.comm	_PS_UNDEAD,8,3                  ; @PS_UNDEAD
	.comm	_PS_IDLE,8,3                    ; @PS_IDLE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"adding breakpoint at 0x%lx"

	.comm	_PS_STOP,8,3                    ; @PS_STOP
	.comm	_PIOD_READ_I,4,2                ; @PIOD_READ_I
	.comm	_BREAKPOINT_INSTR_SZ,8,3        ; @BREAKPOINT_INSTR_SZ
	.comm	_PT_IO,4,2                      ; @PT_IO
l_.str.1:                               ; @.str.1
	.asciz	"ERROR: couldn't read instruction at address 0x%jx"

	.comm	_BREAKPOINT_INSTR,8,3           ; @BREAKPOINT_INSTR
	.comm	_PIOD_WRITE_I,4,2               ; @PIOD_WRITE_I
l_.str.2:                               ; @.str.2
	.asciz	"ERROR: couldn't write instruction at address 0x%jx"

.subsections_via_symbols
