	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s390_remove_watchpoint         ## -- Begin function s390_remove_watchpoint
	.p2align	4, 0x90
_s390_remove_watchpoint:                ## @s390_remove_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	movq	_watch_base@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leal	(%rdi,%rsi), %edx
	decl	%edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rcx
	movq	8(%rax), %rsi
	addq	$8, %rcx
	movq	%rsi, %rax
	testq	%rsi, %rsi
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%edx, 4(%rax)
	jne	LBB0_4
## %bb.6:
	movq	8(%rax), %rdx
	movq	%rdx, (%rcx)
	movq	%rax, %rdi
	callq	_xfree
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_s390_fix_watch_points
	jmp	LBB0_7
LBB0_5:
	movq	_gdb_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf_unfiltered
	movl	$-1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_watch_base,8,3                 ## @watch_base
	.comm	_gdb_stderr,4,2                 ## @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Attempt to remove nonexistent watchpoint.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s390_remove_watchpoint         ; -- Begin function s390_remove_watchpoint
	.p2align	2
_s390_remove_watchpoint:                ; @s390_remove_watchpoint
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x9, _watch_base@GOTPAGE
Lloh1:
	ldr	x9, [x9, _watch_base@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x9]
	cbz	x0, LBB0_6
; %bb.1:
	add	w9, w8, w1
	sub	w9, w9, #1
Lloh3:
	adrp	x10, _watch_base@GOTPAGE
Lloh4:
	ldr	x10, [x10, _watch_base@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x0, #8]!
	mov	x10, x0
	mov	x0, x11
	cbz	x11, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x0]
	cmp	w11, w8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x0, #4]
	cmp	w11, w9
	b.ne	LBB0_2
; %bb.5:
	ldr	x8, [x0, #8]
	str	x8, [x10]
	bl	_xfree
	bl	_s390_fix_watch_points
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh5:
	adrp	x8, _gdb_stderr@GOTPAGE
Lloh6:
	ldr	x8, [x8, _gdb_stderr@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf_unfiltered
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_watch_base,8,3                 ; @watch_base
	.comm	_gdb_stderr,4,2                 ; @gdb_stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Attempt to remove nonexistent watchpoint.\n"

.subsections_via_symbols
