	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpux_has_syscall_event         ## -- Begin function hpux_has_syscall_event
	.p2align	4, 0x90
_hpux_has_syscall_event:                ## @hpux_has_syscall_event
	.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	%rdx, %r14
	movq	%rsi, %r15
	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	$8, %ecx
	callq	_call_ttrace
	movl	%eax, %ebx
	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	%ebx, %ebx
	js	LBB0_12
LBB0_5:
	movq	_TARGET_WAITKIND_SPURIOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	$-1, (%r14)
	movl	-32(%rbp), %eax
	movq	_TTEVT_SYSCALL_ENTRY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_TARGET_WAITKIND_SYSCALL_ENTRY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_TTEVT_SYSCALL_RETURN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.8:
	movq	_TARGET_WAITKIND_SYSCALL_RETURN@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	-28(%rbp), %eax
	movl	%eax, (%r14)
	movl	$1, %eax
	jmp	LBB0_10
LBB0_12:
	xorl	%eax, %eax
LBB0_10:
	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	_TARGET_WAITKIND_SPURIOUS,4,2   ## @TARGET_WAITKIND_SPURIOUS
	.comm	_TTEVT_SYSCALL_ENTRY,4,2        ## @TTEVT_SYSCALL_ENTRY
	.comm	_TARGET_WAITKIND_SYSCALL_ENTRY,4,2 ## @TARGET_WAITKIND_SYSCALL_ENTRY
	.comm	_TTEVT_SYSCALL_RETURN,4,2       ## @TTEVT_SYSCALL_RETURN
	.comm	_TARGET_WAITKIND_SYSCALL_RETURN,4,2 ## @TARGET_WAITKIND_SYSCALL_RETURN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpux_has_syscall_event         ; -- Begin function hpux_has_syscall_event
	.p2align	2
_hpux_has_syscall_event:                ; @hpux_has_syscall_event
	.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, x2
	mov	x20, x1
	mov	x21, 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, x21
	mov	w3, #8
	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_10
LBB0_5:
Lloh11:
	adrp	x8, _TARGET_WAITKIND_SPURIOUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TARGET_WAITKIND_SPURIOUS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	w8, #-1
	str	w8, [x19]
	ldr	w8, [sp, #8]
Lloh14:
	adrp	x9, _TTEVT_SYSCALL_ENTRY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _TTEVT_SYSCALL_ENTRY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x8, _TARGET_WAITKIND_SYSCALL_ENTRY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TARGET_WAITKIND_SYSCALL_ENTRY@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x9, _TTEVT_SYSCALL_RETURN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TTEVT_SYSCALL_RETURN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh22:
	adrp	x8, _TARGET_WAITKIND_SYSCALL_RETURN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TARGET_WAITKIND_SYSCALL_RETURN@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w8, [sp, #12]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.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	_TARGET_WAITKIND_SPURIOUS,4,2   ; @TARGET_WAITKIND_SPURIOUS
	.comm	_TTEVT_SYSCALL_ENTRY,4,2        ; @TTEVT_SYSCALL_ENTRY
	.comm	_TARGET_WAITKIND_SYSCALL_ENTRY,4,2 ; @TARGET_WAITKIND_SYSCALL_ENTRY
	.comm	_TTEVT_SYSCALL_RETURN,4,2       ; @TTEVT_SYSCALL_RETURN
	.comm	_TARGET_WAITKIND_SYSCALL_RETURN,4,2 ; @TARGET_WAITKIND_SYSCALL_RETURN
.subsections_via_symbols
