	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpux_has_execd                 ## -- Begin function hpux_has_execd
	.p2align	4, 0x90
_hpux_has_execd:                        ## @hpux_has_execd
	.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
	movq	%rsi, %r14
	movl	%edi, %ebx
	callq	_map_from_gdb_tid
	movl	%eax, %edi
	callq	_find_thread_info
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	-32(%rbp), %rdi
	movq	%rax, %rsi
	callq	_copy_ttstate_t
	jmp	LBB0_5
LBB0_2:
	movq	_TT_LWP_GET_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rdx
	movq	_TT_NIL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$4, %ecx
	callq	_call_ttrace
	movl	%eax, %r15d
	movq	_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_perror_with_name
LBB0_4:
	testl	%r15d, %r15d
	js	LBB0_8
LBB0_5:
	movq	_TTEVT_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -32(%rbp)
	je	LBB0_8
## %bb.6:
	movl	%ebx, %edi
	callq	_target_pid_to_exec_file
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_savestring
	movq	%rax, (%r14)
	movl	$1, %eax
	jmp	LBB0_9
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TT_LWP_GET_STATE,4,2           ## @TT_LWP_GET_STATE
	.comm	_TT_NIL,4,2                     ## @TT_NIL
	.comm	_errno,8,3                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ttrace"

	.comm	_TTEVT_EXEC,4,2                 ## @TTEVT_EXEC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpux_has_execd                 ; -- Begin function hpux_has_execd
	.p2align	2
_hpux_has_execd:                        ; @hpux_has_execd
	.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
	bl	_map_from_gdb_tid
	bl	_find_thread_info
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	add	x0, sp, #8
	bl	_copy_ttstate_t
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _TT_LWP_GET_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TT_LWP_GET_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _TT_NIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TT_NIL@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	add	x2, sp, #8
	mov	x1, x20
	mov	w3, #4
	bl	_call_ttrace
	mov	x21, x0
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror_with_name
LBB0_4:
	tbnz	w21, #31, LBB0_7
LBB0_5:
	ldr	w8, [sp, #8]
Lloh11:
	adrp	x9, _TTEVT_EXEC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TTEVT_EXEC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_target_pid_to_exec_file
	mov	x20, x0
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	_savestring
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TT_LWP_GET_STATE,4,2           ; @TT_LWP_GET_STATE
	.comm	_TT_NIL,4,2                     ; @TT_NIL
	.comm	_errno,8,3                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ttrace"

	.comm	_TTEVT_EXEC,4,2                 ; @TTEVT_EXEC
.subsections_via_symbols
