	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hppa_insert_hw_watchpoint      ## -- Begin function hppa_insert_hw_watchpoint
	.p2align	4, 0x90
_hppa_insert_hw_watchpoint:             ## @hppa_insert_hw_watchpoint
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movl	%edi, %r14d
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_2:
	xorl	%eax, %eax
	callq	_require_memory_page_dictionary
	movq	_memory_page_dictionary@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movslq	8(%rax), %r13
	leaq	(%rbx,%r13), %rax
	decq	%rax
	movq	%rax, %rcx
	orq	%r13, %rcx
	shrq	$32, %rcx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%r13
	movq	%rax, %rbx
	testq	%rbx, %rbx
	jg	LBB0_6
	jmp	LBB0_8
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %ebx
	testq	%rbx, %rbx
	jle	LBB0_8
LBB0_6:
	movl	%r15d, %eax
	cltd
	idivl	%r13d
	subl	%edx, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	%r15d, %esi
	callq	_get_dictionary_entry_of_page
	incl	(%rax)
	addl	%r13d, %r15d
	decq	%rbx
	jne	LBB0_7
LBB0_8:
	testq	%r12, %r12
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %edi
	callq	_hppa_enable_syscall_events
LBB0_10:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read or access hardware watchpoints not supported on HP-UX"

	.comm	_memory_page_dictionary,16,3    ## @memory_page_dictionary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hppa_insert_hw_watchpoint      ; -- Begin function hppa_insert_hw_watchpoint
	.p2align	2
_hppa_insert_hw_watchpoint:             ; @hppa_insert_hw_watchpoint
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cbz	w3, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	bl	_require_memory_page_dictionary
Lloh2:
	adrp	x8, _memory_page_dictionary@GOTPAGE
Lloh3:
	ldr	x8, [x8, _memory_page_dictionary@GOTPAGEOFF]
	ldr	x22, [x8]
	ldrsw	x23, [x8, #8]
	add	x8, x21, x23
	sub	x8, x8, #1
	sdiv	x21, x8, x23
	cmp	x21, #1
	b.lt	LBB0_5
; %bb.3:
	sdiv	w8, w20, w23
	mul	w20, w8, w23
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_get_dictionary_entry_of_page
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	add	w20, w20, w23
	subs	x21, x21, #1
	b.ne	LBB0_4
LBB0_5:
	cbnz	x22, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_hppa_enable_syscall_events
LBB0_7:
	mov	w0, #1
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read or access hardware watchpoints not supported on HP-UX"

	.comm	_memory_page_dictionary,16,3    ; @memory_page_dictionary
.subsections_via_symbols
