	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_test_targets                ## -- Begin function dm_test_targets
	.p2align	4, 0x90
_dm_test_targets:                       ## @dm_test_targets
	.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
	xorl	%eax, %eax
	callq	_rump_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%edx, %edx
	callq	_rump_sys_open
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	callq	_prop_dictionary_internalize_from_file
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_prop_dictionary_create
	leaq	-32(%rbp), %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_prop_dictionary_externalize_to_pref
	movq	_NETBSD_DM_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r15, %rdx
	callq	_rump_sys_ioctl
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movl	-32(%rbp), %edi
	callq	_prop_dictionary_internalize
	movl	%eax, %edi
	callq	_prop_dictionary_externalize
	movq	%rax, %rdi
	callq	___USE
	movl	%r14d, %edi
	callq	_rump_sys_close
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rump init failed"

L_.str.1:                               ## @.str.1
	.asciz	"/dev/mapper/control"

	.comm	_O_RDWR,4,2                     ## @O_RDWR
L_.str.2:                               ## @.str.2
	.asciz	"Open dm device failed"

L_.str.3:                               ## @.str.3
	.asciz	"dm_targets_cmd.plist"

	.comm	_NETBSD_DM_IOCTL,4,2            ## @NETBSD_DM_IOCTL
L_.str.4:                               ## @.str.4
	.asciz	"Dm control ioctl failed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dm_test_targets                ; -- Begin function dm_test_targets
	.p2align	2
_dm_test_targets:                       ; @dm_test_targets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_rump_init
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh2:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w2, #0
	bl	_rump_sys_open
	mov	x19, x0
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_prop_dictionary_internalize_from_file
	mov	x20, x0
	bl	_prop_dictionary_create
	add	x1, sp, #8
	mov	x0, x20
	bl	_prop_dictionary_externalize_to_pref
Lloh11:
	adrp	x8, _NETBSD_DM_IOCTL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETBSD_DM_IOCTL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_rump_sys_ioctl
	mov	x20, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	w0, [sp, #8]
	bl	_prop_dictionary_internalize
	bl	_prop_dictionary_externalize
	bl	___USE
	mov	x0, x19
	bl	_rump_sys_close
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rump init failed"

l_.str.1:                               ; @.str.1
	.asciz	"/dev/mapper/control"

	.comm	_O_RDWR,4,2                     ; @O_RDWR
l_.str.2:                               ; @.str.2
	.asciz	"Open dm device failed"

l_.str.3:                               ; @.str.3
	.asciz	"dm_targets_cmd.plist"

	.comm	_NETBSD_DM_IOCTL,4,2            ; @NETBSD_DM_IOCTL
l_.str.4:                               ; @.str.4
	.asciz	"Dm control ioctl failed"

.subsections_via_symbols
