	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ddb_list_scripts
_ddb_list_scripts:                      ## @ddb_list_scripts
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	_SYSCTL_SCRIPTS@GOTPCREL(%rip), %r12
	movq	_EX_OSERR@GOTPCREL(%rip), %r15
	leaq	-80(%rbp), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_free
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	xorl	%esi, %esi
	leaq	-64(%rbp), %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %r13
	testq	%r13, %r13
	je	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	movq	-64(%rbp), %r13
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_bzero
	movq	%r13, -80(%rbp)
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sysctlbyname
	testl	%eax, %eax
	jns	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movq	(%r12), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_9
LBB0_10:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.12:
	movq	%rbx, -72(%rbp)
	leaq	L_.str.3(%rip), %rsi
	leaq	-72(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	leaq	L_.str.4(%rip), %r14
	leaq	-56(%rbp), %r15
	leaq	L_.str.3(%rip), %r12
	leaq	-72(%rbp), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_16
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_strsep
	cmpq	$0, -56(%rbp)
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_15
## %bb.18:
	movq	-56(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_19
LBB0_16:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_20
LBB0_11:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
LBB0_19:
	callq	_printf
LBB0_20:
	movq	%rbx, %rdi
	callq	_free
LBB0_21:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYSCTL_SCRIPTS,8,3             ## @SYSCTL_SCRIPTS
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sysctl: %s"

L_.str.1:                               ## @.str.1
	.asciz	"malloc"

	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"="

L_.str.5:                               ## @.str.5
	.asciz	"%s\n"

	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
	.no_dead_strip	_ddb_list_scripts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ddb_list_scripts
_ddb_list_scripts:                      ; @ddb_list_scripts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x0
Lloh0:
	adrp	x25, _SYSCTL_SCRIPTS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SYSCTL_SCRIPTS@GOTPAGEOFF]
Lloh2:
	adrp	x26, _EX_OSERR@GOTPAGE
Lloh3:
	ldr	x26, [x26, _EX_OSERR@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
Lloh6:
	adrp	x24, _errno@GOTPAGE
Lloh7:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh8:
	adrp	x27, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x27, [x27, _ENOMEM@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_free
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25]
	add	x2, sp, #24
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbz	w0, #31, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x25]
	str	x8, [sp]
	mov	x1, x21
	bl	_err
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x23, [sp, #24]
	cbz	x23, LBB0_21
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x23
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	mov	x1, x22
	bl	_err
	ldr	x23, [sp, #24]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_bzero
	str	x23, [sp, #16]
	ldr	x0, [x25]
	add	x2, sp, #16
	mov	x1, x20
	mov	x3, #0
	mov	w4, #0
	bl	_sysctlbyname
	tbz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x26]
	ldr	x8, [x25]
	str	x8, [sp]
	mov	x1, x21
	bl	_err
	b	LBB0_1
LBB0_10:
	cbz	x19, LBB0_18
; %bb.11:
	str	x20, [sp, #40]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #40
	bl	_strsep
	cbz	x0, LBB0_17
; %bb.12:
Lloh14:
	adrp	x21, l_.str.4@PAGE
Lloh15:
	add	x21, x21, l_.str.4@PAGEOFF
Lloh16:
	adrp	x22, l_.str.3@PAGE
Lloh17:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #40
	mov	x1, x22
	bl	_strsep
	cbz	x0, LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	str	x0, [sp, #32]
	add	x0, sp, #32
	mov	x1, x21
	bl	_strsep
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_strcmp
	cbnz	x0, LBB0_13
; %bb.16:
	ldr	x1, [sp, #32]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_19
LBB0_17:
Lloh20:
	adrp	x8, _ENOENT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x24]
Lloh23:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_err
	b	LBB0_20
LBB0_18:
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
LBB0_19:
	bl	_printf
LBB0_20:
	mov	x0, x20
	bl	_free
LBB0_21:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SYSCTL_SCRIPTS,8,3             ; @SYSCTL_SCRIPTS
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sysctl: %s"

l_.str.1:                               ; @.str.1
	.asciz	"malloc"

	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"="

l_.str.5:                               ; @.str.5
	.asciz	"%s\n"

	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
	.no_dead_strip	_ddb_list_scripts
.subsections_via_symbols
