	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dbg_find_free_slot
_dbg_find_free_slot:                    ## @dbg_find_free_slot
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	cmpl	$129, %edi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %r15d
	jne	LBB0_10
## %bb.3:
	movq	_dbg_watchpoint_num@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_dbg_breakpoint_num@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r12d
	movl	$-1, %r14d
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_dbg_check_slot_free
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	%ebx, %r12d
	jne	LBB0_6
	jmp	LBB0_9
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_db_printf
	movl	$-1, %r14d
	jmp	LBB0_9
LBB0_7:
	movl	%ebx, %r14d
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dbg_breakpoint_num,4,2         ## @dbg_breakpoint_num
	.comm	_dbg_watchpoint_num,4,2         ## @dbg_watchpoint_num
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported debug type\n"

	.no_dead_strip	_dbg_find_free_slot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dbg_find_free_slot
_dbg_find_free_slot:                    ; @dbg_find_free_slot
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w19, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _dbg_watchpoint_num@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dbg_watchpoint_num@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cbnz	w21, LBB0_4
	b	LBB0_8
LBB0_3:
Lloh3:
	adrp	x8, _dbg_breakpoint_num@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dbg_breakpoint_num@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	cbz	w21, LBB0_8
LBB0_4:
	mov	w20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_dbg_check_slot_free
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	cmp	w21, w20
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_db_printf
LBB0_8:
	mov	w20, #-1
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dbg_breakpoint_num,4,2         ; @dbg_breakpoint_num
	.comm	_dbg_watchpoint_num,4,2         ; @dbg_watchpoint_num
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported debug type\n"

	.no_dead_strip	_dbg_find_free_slot
.subsections_via_symbols
