	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dbg_find_slot
_dbg_find_slot:                         ## @dbg_find_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	%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
	movl	%esi, %r12d
	cmpl	$129, %edi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %edi
	jne	LBB0_11
## %bb.3:
	movq	_dbg_watchpoint_num@GOTPCREL(%rip), %rdx
	movq	_DBG_REG_BASE_WCR@GOTPCREL(%rip), %rax
	movq	_DBG_REG_BASE_WVR@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_dbg_breakpoint_num@GOTPCREL(%rip), %rdx
	movq	_DBG_REG_BASE_BCR@GOTPCREL(%rip), %rax
	movq	_DBG_REG_BASE_BVR@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rdx), %r14d
	movl	$-1, %ebx
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.5:
	movl	(%rax), %r15d
	movl	(%rcx), %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	%ebx, %r14d
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_dbg_wb_read_reg
	cmpl	%r12d, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_dbg_wb_read_reg
	movq	_DBG_WB_CTRL_E@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_db_printf
LBB0_9:
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dbg_breakpoint_num,4,2         ## @dbg_breakpoint_num
	.comm	_DBG_REG_BASE_BVR,4,2           ## @DBG_REG_BASE_BVR
	.comm	_DBG_REG_BASE_BCR,4,2           ## @DBG_REG_BASE_BCR
	.comm	_dbg_watchpoint_num,4,2         ## @dbg_watchpoint_num
	.comm	_DBG_REG_BASE_WVR,4,2           ## @DBG_REG_BASE_WVR
	.comm	_DBG_REG_BASE_WCR,4,2           ## @DBG_REG_BASE_WCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported debug type\n"

	.comm	_DBG_WB_CTRL_E,4,2              ## @DBG_WB_CTRL_E
	.no_dead_strip	_dbg_find_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_slot
_dbg_find_slot:                         ; @dbg_find_slot
	.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	x19, x1
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_8
; %bb.2:
Lloh0:
	adrp	x8, _dbg_watchpoint_num@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dbg_watchpoint_num@GOTPAGEOFF]
Lloh2:
	adrp	x9, _DBG_REG_BASE_WCR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DBG_REG_BASE_WCR@GOTPAGEOFF]
Lloh4:
	adrp	x10, _DBG_REG_BASE_WVR@GOTPAGE
Lloh5:
	ldr	x10, [x10, _DBG_REG_BASE_WVR@GOTPAGEOFF]
Lloh6:
	ldr	w23, [x8]
	cbnz	w23, LBB0_4
	b	LBB0_9
LBB0_3:
Lloh7:
	adrp	x8, _dbg_breakpoint_num@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dbg_breakpoint_num@GOTPAGEOFF]
Lloh9:
	adrp	x9, _DBG_REG_BASE_BCR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DBG_REG_BASE_BCR@GOTPAGEOFF]
Lloh11:
	adrp	x10, _DBG_REG_BASE_BVR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _DBG_REG_BASE_BVR@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
	cbz	w23, LBB0_9
LBB0_4:
	mov	w20, #0
	ldr	w21, [x9]
	ldr	w22, [x10]
Lloh14:
	adrp	x24, _DBG_WB_CTRL_E@GOTPAGE
Lloh15:
	ldr	x24, [x24, _DBG_WB_CTRL_E@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w20, w20, #1
	cmp	w23, w20
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x20
	bl	_dbg_wb_read_reg
	cmp	w0, w19
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_dbg_wb_read_reg
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_5
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_db_printf
LBB0_9:
	mov	w20, #-1
LBB0_10:
	mov	x0, x20
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_dbg_breakpoint_num,4,2         ; @dbg_breakpoint_num
	.comm	_DBG_REG_BASE_BVR,4,2           ; @DBG_REG_BASE_BVR
	.comm	_DBG_REG_BASE_BCR,4,2           ; @DBG_REG_BASE_BCR
	.comm	_dbg_watchpoint_num,4,2         ; @dbg_watchpoint_num
	.comm	_DBG_REG_BASE_WVR,4,2           ; @DBG_REG_BASE_WVR
	.comm	_DBG_REG_BASE_WCR,4,2           ; @DBG_REG_BASE_WCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported debug type\n"

	.comm	_DBG_WB_CTRL_E,4,2              ; @DBG_WB_CTRL_E
	.no_dead_strip	_dbg_find_slot
.subsections_via_symbols
