	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function procfs_attach
_procfs_attach:                         ## @procfs_attach
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error_no_arg
LBB0_2:
	movq	%rbx, %rdi
	callq	_atoi
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_getpid
	cmpl	%eax, %r14d
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.5:
	xorl	%edi, %edi
	callq	_get_exec_file
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_pid_to_ptid
	movl	%eax, %edi
	callq	_target_pid_to_str
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf_unfiltered
	jmp	LBB0_8
LBB0_7:
	movl	%r14d, %edi
	callq	_pid_to_ptid
	movl	%eax, %edi
	callq	_target_pid_to_str
	movslq	%eax, %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_unfiltered
LBB0_8:
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gdb_flush
LBB0_9:
	movl	%r14d, %edi
	callq	_pid_to_ptid
	movl	%eax, %edi
	callq	_do_attach
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_procfs_ops@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_push_target                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"process-id to attach"

L_.str.1:                               ## @.str.1
	.asciz	"Attaching GDB to itself is not a good idea..."

L_.str.2:                               ## @.str.2
	.asciz	"Attaching to program `%s', %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Attaching to %s\n"

	.comm	_gdb_stdout,4,2                 ## @gdb_stdout
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_procfs_ops,4,2                 ## @procfs_ops
	.no_dead_strip	_procfs_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function procfs_attach
_procfs_attach:                         ; @procfs_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error_no_arg
LBB0_2:
	mov	x0, x19
	bl	_atoi
	mov	x19, x0
	bl	_getpid
	cmp	w19, w0
	b.ne	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_4:
	cbz	w20, LBB0_9
; %bb.5:
	mov	w0, #0
	bl	_get_exec_file
	cbz	x0, LBB0_7
; %bb.6:
	mov	x20, x0
	mov	x0, x19
	bl	_pid_to_ptid
	bl	_target_pid_to_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_pid_to_ptid
	bl	_target_pid_to_str
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	bl	_printf_unfiltered
Lloh8:
	adrp	x8, _gdb_stdout@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gdb_stdout@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_gdb_flush
LBB0_9:
	mov	x0, x19
	bl	_pid_to_ptid
	bl	_do_attach
Lloh11:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh13:
	str	w0, [x8]
Lloh14:
	adrp	x0, _procfs_ops@GOTPAGE
Lloh15:
	ldr	x0, [x0, _procfs_ops@GOTPAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_push_target
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"process-id to attach"

l_.str.1:                               ; @.str.1
	.asciz	"Attaching GDB to itself is not a good idea..."

l_.str.2:                               ; @.str.2
	.asciz	"Attaching to program `%s', %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Attaching to %s\n"

	.comm	_gdb_stdout,4,2                 ; @gdb_stdout
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_procfs_ops,4,2                 ; @procfs_ops
	.no_dead_strip	_procfs_attach
.subsections_via_symbols
