	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_dest_dev
_parse_dest_dev:                        ## @parse_dest_dev
	.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
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	%rsi, %rdi
	callq	_dm_shift_arg
	movq	_FMODE_READ@GOTPCREL(%rip), %rcx
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%rbx, %rcx
	callq	_dm_get_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_4
LBB0_2:
	movl	(%rbx), %edi
	callq	_get_dev_size
	movq	%rax, %rcx
	movq	8(%rbx), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rcx
	jge	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	callq	_dm_put_device
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FMODE_READ,4,2                 ## @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error opening destination device"

L_.str.1:                               ## @.str.1
	.asciz	"Device size larger than destination device"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_parse_dest_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_dest_dev
_parse_dest_dev:                        ; @parse_dest_dev
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_dm_shift_arg
	mov	x1, x0
Lloh0:
	adrp	x8, _FMODE_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FMODE_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FMODE_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FMODE_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	mov	x3, x20
	bl	_dm_get_device
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19]
	b	LBB0_5
LBB0_2:
	ldr	w0, [x20]
	bl	_get_dev_size
	mov	x8, x0
	ldr	x0, [x20, #8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_4
; %bb.3:
	ldr	w1, [x20]
	bl	_dm_put_device
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19]
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FMODE_READ,4,2                 ; @FMODE_READ
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error opening destination device"

l_.str.1:                               ; @.str.1
	.asciz	"Device size larger than destination device"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_parse_dest_dev
.subsections_via_symbols
