	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_resume
_do_resume:                             ## @do_resume
	.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	%rdi, %r14
	movq	_DM_SUSPEND_LOCKFS_FLAG@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_down_write
	movq	%r14, %rdi
	callq	___find_device_hash_cell
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	(%rax), %r13
	movq	8(%rax), %r15
	movq	$0, (%rax)
	movq	_DM_INACTIVE_PRESENT_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_DM_SKIP_LOCKFS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DM_NOFLUSH_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_DM_SUSPEND_NOFLUSH_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dm_suspended_md
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	%eax, %r12d
	andl	%eax, %r14d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	xorl	%eax, %eax
	cmpl	$1, %r14d
	sbbl	%eax, %eax
	orl	%ecx, %eax
	andl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%r12d, %r12d
	cmovel	%r12d, %ebx
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_dm_suspend
LBB0_6:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_dm_swap_table
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.19:
	movq	%r15, %rdi
	callq	_dm_sync_table
	movq	%r13, %rdi
	callq	_dm_table_destroy
	movq	%r15, %rdi
	callq	_dm_put
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DMDEBUG_LIMIT
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_3:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_7:
	movq	%r13, %rdi
	callq	_dm_table_get_mode
	movq	_FMODE_WRITE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	andl	(%rcx), %eax
	sete	%bl
	movq	%r15, %rdi
	callq	_dm_disk
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_set_disk_ro
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	movq	%r15, %rdi
	callq	_dm_suspended_md
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%r15, %rdi
	callq	_dm_resume
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%r15, %rdi
	callq	_dm_kobject_uevent
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	_DM_UEVENT_GENERATED_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_dm_table_destroy
LBB0_15:
	testl	%ebx, %ebx
	jne	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___dev_status
LBB0_17:
	movq	%r15, %rdi
	callq	_dm_put
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_SUSPEND_LOCKFS_FLAG,4,2     ## @DM_SUSPEND_LOCKFS_FLAG
	.comm	__hash_lock,4,2                 ## @_hash_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device doesn't appear to be in the dev hash table."

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_DM_INACTIVE_PRESENT_FLAG,4,2   ## @DM_INACTIVE_PRESENT_FLAG
	.comm	_DM_SKIP_LOCKFS_FLAG,4,2        ## @DM_SKIP_LOCKFS_FLAG
	.comm	_DM_NOFLUSH_FLAG,4,2            ## @DM_NOFLUSH_FLAG
	.comm	_DM_SUSPEND_NOFLUSH_FLAG,4,2    ## @DM_SUSPEND_NOFLUSH_FLAG
	.comm	_FMODE_WRITE,4,2                ## @FMODE_WRITE
	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
	.comm	_DM_UEVENT_GENERATED_FLAG,4,2   ## @DM_UEVENT_GENERATED_FLAG
	.no_dead_strip	_do_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_resume
_do_resume:                             ; @do_resume
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, _DM_SUSPEND_LOCKFS_FLAG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DM_SUSPEND_LOCKFS_FLAG@GOTPAGEOFF]
	ldr	w21, [x23]
Lloh2:
	adrp	x0, __hash_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_down_write
	mov	x0, x19
	bl	___find_device_hash_cell
	cbz	x0, LBB0_6
; %bb.1:
	ldp	x22, x20, [x0]
	str	xzr, [x0]
Lloh4:
	adrp	x8, _DM_INACTIVE_PRESENT_FLAG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DM_INACTIVE_PRESENT_FLAG@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh7:
	adrp	x0, __hash_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_up_write
	cbz	x22, LBB0_7
; %bb.2:
	ldr	w24, [x19]
Lloh9:
	adrp	x8, _DM_SKIP_LOCKFS_FLAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DM_SKIP_LOCKFS_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
	ldr	w23, [x23]
Lloh12:
	adrp	x8, _DM_NOFLUSH_FLAG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DM_NOFLUSH_FLAG@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
Lloh15:
	adrp	x8, _DM_SUSPEND_NOFLUSH_FLAG@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DM_SUSPEND_NOFLUSH_FLAG@GOTPAGEOFF]
Lloh17:
	ldr	w26, [x8]
	mov	x0, x20
	bl	_dm_suspended_md
	cbnz	x0, LBB0_4
; %bb.3:
	tst	w27, w24
	mov	w8, #-1
	csinv	w8, w8, w23, eq
	and	w8, w8, w21
	tst	w25, w24
	csel	w9, wzr, w26, eq
	orr	w1, w9, w8
	mov	x0, x20
	bl	_dm_suspend
LBB0_4:
	mov	x0, x20
	mov	x1, x22
	bl	_dm_swap_table
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_dm_sync_table
	mov	x0, x22
	bl	_dm_table_destroy
	mov	x0, x20
	bl	_dm_put
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_6:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMDEBUG_LIMIT
Lloh20:
	adrp	x0, __hash_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_up_write
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_19
LBB0_7:
	mov	x21, #0
	b	LBB0_9
LBB0_8:
	mov	x0, x22
	bl	_dm_table_get_mode
Lloh25:
	adrp	x8, _FMODE_WRITE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FMODE_WRITE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w22, eq
	mov	x0, x20
	bl	_dm_disk
	mov	x1, x22
	bl	_set_disk_ro
LBB0_9:
	mov	x0, x20
	bl	_dm_suspended_md
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_dm_resume
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.11:
Lloh28:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_dm_kobject_uevent
	mov	w22, #0
	cbnz	w0, LBB0_14
; %bb.12:
Lloh31:
	adrp	x8, _DM_UEVENT_GENERATED_FLAG@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DM_UEVENT_GENERATED_FLAG@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_14
LBB0_13:
	mov	w22, #0
LBB0_14:
	cbz	x21, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_dm_table_destroy
LBB0_16:
	cbnz	w22, LBB0_18
; %bb.17:
	mov	x0, x20
	mov	x1, x19
	bl	___dev_status
LBB0_18:
	mov	x0, x20
	bl	_dm_put
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_SUSPEND_LOCKFS_FLAG,4,2     ; @DM_SUSPEND_LOCKFS_FLAG
	.comm	__hash_lock,4,2                 ; @_hash_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device doesn't appear to be in the dev hash table."

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_DM_INACTIVE_PRESENT_FLAG,4,2   ; @DM_INACTIVE_PRESENT_FLAG
	.comm	_DM_SKIP_LOCKFS_FLAG,4,2        ; @DM_SKIP_LOCKFS_FLAG
	.comm	_DM_NOFLUSH_FLAG,4,2            ; @DM_NOFLUSH_FLAG
	.comm	_DM_SUSPEND_NOFLUSH_FLAG,4,2    ; @DM_SUSPEND_NOFLUSH_FLAG
	.comm	_FMODE_WRITE,4,2                ; @FMODE_WRITE
	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
	.comm	_DM_UEVENT_GENERATED_FLAG,4,2   ; @DM_UEVENT_GENERATED_FLAG
	.no_dead_strip	_do_resume
.subsections_via_symbols
