	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds_request_bts
_ds_request_bts:                        ## @ds_request_bts
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%r8, %r8
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_2:
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	16(%rbp), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_get_tracer
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	$0, 24(%rax)
	movq	%rax, %rsi
	addq	$16, %rsi
	movq	_ds_bts@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	movq	%r13, %r9
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r12
	callq	_ds_request
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_ds_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	cmpq	$0, (%rax)
	je	LBB0_12
## %bb.8:
	movq	_EPERM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	%rcx, %r15
	movq	_ds_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irq
	movq	(%r15), %rdi
	callq	_ds_put_context
	movq	%r15, %rdi
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_6:
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:
	callq	_kfree
LBB0_10:
	movq	%rbx, %rdi
	callq	_put_tracer
LBB0_11:
	movl	%r14d, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	movq	%rcx, (%rax)
	movq	%rcx, %rbx
	movq	_ds_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irq
	movq	_ds_bts@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r13, %rdx
	movq	%r12, %rcx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_ds_init_ds_trace
	movq	(%rbx), %rdi
	movl	(%r15), %edx
	movq	%r14, %rsi
	callq	_ds_write_config
	movq	(%rbx), %rdi
	callq	_ds_install_ds_area
	movq	_bts_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_bts_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_ds_resume_bts
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ds_bts,4,2                     ## @ds_bts
	.comm	_ds_lock,4,2                    ## @ds_lock
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_bts_read,4,2                   ## @bts_read
	.comm	_bts_write,4,2                  ## @bts_write
	.no_dead_strip	_ds_request_bts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds_request_bts
_ds_request_bts:                        ; @ds_request_bts
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x4, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_12
LBB0_2:
	mov	x21, x6
	mov	x22, x5
	mov	x23, x3
	mov	x24, x2
	mov	x27, x1
	mov	x20, x0
	bl	_get_tracer
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x19, x0
	str	xzr, [x0, #24]
	add	x25, x0, #16
Lloh9:
	adrp	x28, _ds_bts@GOTPAGE
Lloh10:
	ldr	x28, [x28, _ds_bts@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x1, x25
	mov	x3, x20
	mov	x4, x27
	mov	x5, x24
	mov	x6, x23
	mov	x7, x22
	bl	_ds_request
	tbnz	w0, #31, LBB0_9
; %bb.5:
Lloh11:
	adrp	x0, _ds_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ds_lock@GOTPAGEOFF]
	bl	_spin_lock_irq
	ldr	x8, [x19]
	ldr	x9, [x8]
	cbz	x9, LBB0_13
; %bb.6:
Lloh13:
	adrp	x8, _EPERM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w26, w8
Lloh16:
	adrp	x0, _ds_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _ds_lock@GOTPAGEOFF]
	bl	_spin_unlock_irq
	ldr	x0, [x19]
	bl	_ds_put_context
	b	LBB0_10
LBB0_7:
	mov	x26, x0
	b	LBB0_12
LBB0_8:
	neg	w26, w25
	b	LBB0_11
LBB0_9:
	mov	x26, x0
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	x0, x20
	bl	_put_tracer
LBB0_12:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_13:
	str	x19, [x8]
Lloh18:
	adrp	x0, _ds_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _ds_lock@GOTPAGEOFF]
	bl	_spin_unlock_irq
	ldr	w1, [x28]
	mov	x0, x25
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	bl	_ds_init_ds_trace
	ldr	x0, [x19]
	ldr	w2, [x28]
	mov	x1, x25
	bl	_ds_write_config
	ldr	x0, [x19]
	bl	_ds_install_ds_area
Lloh20:
	adrp	x8, _bts_read@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bts_read@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _bts_write@GOTPAGE
Lloh24:
	ldr	x9, [x9, _bts_write@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	mov	x0, x19
	bl	_ds_resume_bts
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ds_bts,4,2                     ; @ds_bts
	.comm	_ds_lock,4,2                    ; @ds_lock
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_bts_read,4,2                   ; @bts_read
	.comm	_bts_write,4,2                  ; @bts_write
	.no_dead_strip	_ds_request_bts
.subsections_via_symbols
