	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_dbregs                     ## -- Begin function set_dbregs
	.p2align	4, 0x90
_set_dbregs:                            ## @set_dbregs
	.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	%rsi, %rbx
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.1:
	movq	%rdi, %r14
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	xorl	%esi, %esi
	callq	_DBREG_DR7_ACCESS
	cmpl	$2, %eax
	je	LBB0_2
## %bb.3:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	__ucode32sel@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	xorl	%esi, %esi
	callq	_DBREG_DR7_LEN
	movq	_DBREG_DR7_LEN_8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
LBB0_5:
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	movl	$1, %esi
	callq	_DBREG_DR7_ACCESS
	cmpl	$2, %eax
	je	LBB0_2
## %bb.6:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	movl	$1, %esi
	callq	_DBREG_DR7_LEN
	movq	_DBREG_DR7_LEN_8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
LBB0_8:
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	movl	$2, %esi
	callq	_DBREG_DR7_ACCESS
	cmpl	$2, %eax
	je	LBB0_2
## %bb.9:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_11
## %bb.10:
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	movl	$2, %esi
	callq	_DBREG_DR7_LEN
	movq	_DBREG_DR7_LEN_8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
LBB0_11:
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	movl	$3, %esi
	callq	_DBREG_DR7_ACCESS
	cmpl	$2, %eax
	je	LBB0_2
## %bb.12:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_14
## %bb.13:
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	movl	$3, %esi
	callq	_DBREG_DR7_LEN
	movq	_DBREG_DR7_LEN_8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
LBB0_14:
	movq	(%rbx), %rax
	cmpl	$0, 24(%rax)
	js	LBB0_2
## %bb.15:
	movl	28(%rax), %edi
	testl	%edi, %edi
	js	LBB0_2
## %bb.16:
	movq	(%r14), %r14
	xorl	%esi, %esi
	callq	_DBREG_DR7_ENABLED
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	(%rcx), %eax
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_2
LBB0_18:
	movl	28(%rcx), %edi
	movl	$1, %esi
	callq	_DBREG_DR7_ENABLED
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	4(%rcx), %eax
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_2
LBB0_20:
	movl	28(%rcx), %edi
	movl	$2, %esi
	callq	_DBREG_DR7_ENABLED
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	8(%rcx), %eax
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_2
LBB0_22:
	movl	28(%rcx), %edi
	movl	$3, %esi
	callq	_DBREG_DR7_ENABLED
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	12(%rcx), %eax
	movq	_VM_MAXUSER_ADDRESS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jge	LBB0_2
LBB0_24:
	movl	(%rcx), %eax
	movl	%eax, (%r14)
	movl	4(%rcx), %eax
	movl	%eax, 4(%r14)
	movl	8(%rcx), %eax
	movl	%eax, 8(%r14)
	movl	12(%rcx), %eax
	movl	%eax, 12(%r14)
	movl	24(%rcx), %eax
	movl	%eax, 16(%r14)
	movl	28(%rcx), %eax
	movl	%eax, 20(%r14)
	movq	_PCB_DBREGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_set_pcb_flags
	jmp	LBB0_25
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_26
LBB0_27:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_load_dr0
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_load_dr1
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_load_dr2
	movq	(%rbx), %rax
	movl	12(%rax), %edi
	callq	_load_dr3
	movq	(%rbx), %rax
	movl	24(%rax), %edi
	callq	_load_dr6
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	callq	_load_dr7
LBB0_25:
	xorl	%eax, %eax
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	__ucode32sel,8,3                ## @_ucode32sel
	.comm	_DBREG_DR7_LEN_8,8,3            ## @DBREG_DR7_LEN_8
	.comm	_VM_MAXUSER_ADDRESS,4,2         ## @VM_MAXUSER_ADDRESS
	.comm	_PCB_DBREGS,4,2                 ## @PCB_DBREGS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_dbregs                     ; -- Begin function set_dbregs
	.p2align	2
_set_dbregs:                            ; @set_dbregs
	.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, x1
	cbz	x0, LBB0_25
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #0
	bl	_DBREG_DR7_ACCESS
	cmp	w0, #2
	b.eq	LBB0_24
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, __ucode32sel@GOTPAGE
Lloh1:
	ldr	x21, [x21, __ucode32sel@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #0
	bl	_DBREG_DR7_LEN
Lloh2:
	adrp	x8, _DBREG_DR7_LEN_8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DBREG_DR7_LEN_8@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_24
LBB0_4:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #1
	bl	_DBREG_DR7_ACCESS
	cmp	w0, #2
	b.eq	LBB0_24
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #1
	bl	_DBREG_DR7_LEN
Lloh5:
	adrp	x8, _DBREG_DR7_LEN_8@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DBREG_DR7_LEN_8@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_24
LBB0_7:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #2
	bl	_DBREG_DR7_ACCESS
	cmp	w0, #2
	b.eq	LBB0_24
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #2
	bl	_DBREG_DR7_LEN
Lloh8:
	adrp	x8, _DBREG_DR7_LEN_8@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBREG_DR7_LEN_8@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_24
LBB0_10:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #3
	bl	_DBREG_DR7_ACCESS
	cmp	w0, #2
	b.eq	LBB0_24
; %bb.11:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #3
	bl	_DBREG_DR7_LEN
Lloh11:
	adrp	x8, _DBREG_DR7_LEN_8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBREG_DR7_LEN_8@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_24
LBB0_13:
	ldr	x8, [x19]
	ldr	w9, [x8, #24]
	tbnz	w9, #31, LBB0_24
; %bb.14:
	ldr	w0, [x8, #28]
	tbnz	w0, #31, LBB0_24
; %bb.15:
	ldr	x20, [x20]
	mov	w1, #0
	bl	_DBREG_DR7_ENABLED
	ldr	x8, [x19]
Lloh14:
	adrp	x21, _VM_MAXUSER_ADDRESS@GOTPAGE
Lloh15:
	ldr	x21, [x21, _VM_MAXUSER_ADDRESS@GOTPAGEOFF]
	cbz	x0, LBB0_17
; %bb.16:
	ldr	w9, [x8]
	ldr	w10, [x21]
	cmp	w9, w10
	b.ge	LBB0_24
LBB0_17:
	ldr	w0, [x8, #28]
	mov	w1, #1
	bl	_DBREG_DR7_ENABLED
	ldr	x8, [x19]
	cbz	x0, LBB0_19
; %bb.18:
	ldr	w9, [x8, #4]
	ldr	w10, [x21]
	cmp	w9, w10
	b.ge	LBB0_24
LBB0_19:
	ldr	w0, [x8, #28]
	mov	w1, #2
	bl	_DBREG_DR7_ENABLED
	ldr	x8, [x19]
	cbz	x0, LBB0_21
; %bb.20:
	ldr	w9, [x8, #8]
	ldr	w10, [x21]
	cmp	w9, w10
	b.ge	LBB0_24
LBB0_21:
	ldr	w0, [x8, #28]
	mov	w1, #3
	bl	_DBREG_DR7_ENABLED
	ldr	x8, [x19]
	cbz	x0, LBB0_23
; %bb.22:
	ldr	w9, [x8, #12]
	ldr	w10, [x21]
	cmp	w9, w10
	b.ge	LBB0_24
LBB0_23:
	ldr	w9, [x8]
	str	w9, [x20]
	ldr	w9, [x8, #4]
	str	w9, [x20, #4]
	ldr	w9, [x8, #8]
	str	w9, [x20, #8]
	ldr	w9, [x8, #12]
	str	w9, [x20, #12]
	ldr	w9, [x8, #24]
	str	w9, [x20, #16]
	ldr	w8, [x8, #28]
	str	w8, [x20, #20]
Lloh16:
	adrp	x8, _PCB_DBREGS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCB_DBREGS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_set_pcb_flags
	b	LBB0_26
LBB0_24:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_27
LBB0_25:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_load_dr0
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_load_dr1
	ldr	x8, [x19]
	ldr	w0, [x8, #8]
	bl	_load_dr2
	ldr	x8, [x19]
	ldr	w0, [x8, #12]
	bl	_load_dr3
	ldr	x8, [x19]
	ldr	w0, [x8, #24]
	bl	_load_dr6
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	bl	_load_dr7
LBB0_26:
	mov	w0, #0
LBB0_27:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	__ucode32sel,8,3                ; @_ucode32sel
	.comm	_DBREG_DR7_LEN_8,8,3            ; @DBREG_DR7_LEN_8
	.comm	_VM_MAXUSER_ADDRESS,4,2         ; @VM_MAXUSER_ADDRESS
	.comm	_PCB_DBREGS,4,2                 ; @PCB_DBREGS
.subsections_via_symbols
