	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function populate_table
_populate_table:                        ## @populate_table
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)
	cmpl	$0, (%rsi)
	je	LBB0_6
## %bb.1:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	4(%rsi), %esi
	addq	%rbx, %r15
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdx
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	callq	_next_target
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax
	movl	24(%rax), %esi
	movl	8(%rax), %ecx
	movl	16(%rax), %edx
	movq	-56(%rbp), %r8
	movq	%r14, %rdi
	callq	_dm_table_add_target
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	movl	(%rdi), %esi
	incl	%r13d
	cmpl	(%rbx), %r13d
	jb	LBB0_2
## %bb.5:
	movq	%r14, %rdi
	callq	_dm_table_complete
	movl	%eax, %r12d
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_8:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
LBB0_9:
	callq	_DMWARN
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"populate_table: no targets specified"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unable to find target"

L_.str.2:                               ## @.str.2
	.asciz	"error adding target to table"

	.no_dead_strip	_populate_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function populate_table
_populate_table:                        ; @populate_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	x1, [sp, #8]
	ldr	w8, [x1]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	w23, #0
	ldr	w1, [x1, #4]
	add	x21, x20, x2
	mov	x0, x20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #8
	mov	x4, sp
	mov	x2, x21
	bl	_next_target
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x4, x8, [sp]
	ldr	w1, [x8, #24]
	ldr	w2, [x8, #16]
	ldr	w3, [x8, #8]
	mov	x0, x19
	bl	_dm_table_add_target
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #8]
	ldr	w1, [x0]
	add	w23, w23, #1
	ldr	w8, [x20]
	cmp	w23, w8
	b.lo	LBB0_2
; %bb.5:
	mov	x0, x19
	bl	_dm_table_complete
	mov	x22, x0
	b	LBB0_10
LBB0_6:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_7:
	mov	x22, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x22, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_DMWARN
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"populate_table: no targets specified"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unable to find target"

l_.str.2:                               ; @.str.2
	.asciz	"error adding target to table"

	.no_dead_strip	_populate_table
.subsections_via_symbols
