	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_capture_status_sysctl
_ddb_capture_status_sysctl:             ## @ddb_capture_status_sysctl
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	$4, -16(%rbp)
	movq	_SYSCTL_DDB_CAPTURE_BUFOFF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-28(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_2:
	movq	$4, -16(%rbp)
	movq	_SYSCTL_DDB_CAPTURE_BUFSIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_4:
	movq	$4, -16(%rbp)
	movq	_SYSCTL_DDB_CAPTURE_INPROGRESS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-20(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_6:
	movl	-28(%rbp), %esi
	movl	-24(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$0, -20(%rbp)
	leaq	L_str(%rip), %rax
	leaq	L_str.4(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_puts
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSCTL_DDB_CAPTURE_BUFOFF,4,2  ## @SYSCTL_DDB_CAPTURE_BUFOFF
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctl: %s"

	.comm	_SYSCTL_DDB_CAPTURE_BUFSIZE,4,2 ## @SYSCTL_DDB_CAPTURE_BUFSIZE
	.comm	_SYSCTL_DDB_CAPTURE_INPROGRESS,4,2 ## @SYSCTL_DDB_CAPTURE_INPROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"%u/%u bytes used\n"

L_str:                                  ## @str
	.asciz	"capture is off"

L_str.4:                                ## @str.4
	.asciz	"capture is on"

	.no_dead_strip	_ddb_capture_status_sysctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_capture_status_sysctl
_ddb_capture_status_sysctl:             ; @ddb_capture_status_sysctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w8, #4
	str	x8, [sp, #24]
Lloh0:
	adrp	x19, _SYSCTL_DDB_CAPTURE_BUFOFF@GOTPAGE
Lloh1:
	ldr	x19, [x19, _SYSCTL_DDB_CAPTURE_BUFOFF@GOTPAGEOFF]
	ldr	w0, [x19]
	sub	x1, x29, #20
	add	x2, sp, #24
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	mov	w8, #4
	str	x8, [sp, #24]
Lloh7:
	adrp	x19, _SYSCTL_DDB_CAPTURE_BUFSIZE@GOTPAGE
Lloh8:
	ldr	x19, [x19, _SYSCTL_DDB_CAPTURE_BUFSIZE@GOTPAGEOFF]
	ldr	w0, [x19]
	sub	x1, x29, #24
	add	x2, sp, #24
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_4:
	mov	w8, #4
	str	x8, [sp, #24]
Lloh14:
	adrp	x19, _SYSCTL_DDB_CAPTURE_INPROGRESS@GOTPAGE
Lloh15:
	ldr	x19, [x19, _SYSCTL_DDB_CAPTURE_INPROGRESS@GOTPAGEOFF]
	ldr	w0, [x19]
	sub	x1, x29, #28
	add	x2, sp, #24
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_6:
	ldp	w9, w8, [x29, #-24]
	stp	x8, x9, [sp]
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldur	w8, [x29, #-28]
Lloh23:
	adrp	x9, l_str.4@PAGE
Lloh24:
	add	x9, x9, l_str.4@PAGEOFF
Lloh25:
	adrp	x10, l_str@PAGE
Lloh26:
	add	x10, x10, l_str@PAGEOFF
	cmp	w8, #0
	csel	x0, x10, x9, eq
	bl	_puts
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSCTL_DDB_CAPTURE_BUFOFF,4,2  ; @SYSCTL_DDB_CAPTURE_BUFOFF
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctl: %s"

	.comm	_SYSCTL_DDB_CAPTURE_BUFSIZE,4,2 ; @SYSCTL_DDB_CAPTURE_BUFSIZE
	.comm	_SYSCTL_DDB_CAPTURE_INPROGRESS,4,2 ; @SYSCTL_DDB_CAPTURE_INPROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"%u/%u bytes used\n"

l_str:                                  ; @str
	.asciz	"capture is off"

l_str.4:                                ; @str.4
	.asciz	"capture is on"

	.no_dead_strip	_ddb_capture_status_sysctl
.subsections_via_symbols
