	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_suspend
_do_suspend:                            ## @do_suspend
	.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), %r15
	movl	(%r15), %ebx
	callq	_find_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_DM_SKIP_LOCKFS_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_DM_NOFLUSH_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DM_SUSPEND_NOFLUSH_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_dm_suspended_md
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	%eax, %ebx
	andl	%eax, %r13d
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	xorl	%eax, %eax
	cmpl	$1, %r13d
	sbbl	%eax, %eax
	orl	%ecx, %eax
	andl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%ebx, %ebx
	cmovel	%ebx, %r15d
	orl	%eax, %r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_dm_suspend
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	___dev_status
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r12, %rdi
	callq	_dm_put
	jmp	LBB0_6
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	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	_ENXIO,4,2                      ## @ENXIO
	.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
	.no_dead_strip	_do_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_suspend
_do_suspend:                            ; @do_suspend
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
Lloh0:
	adrp	x23, _DM_SUSPEND_LOCKFS_FLAG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DM_SUSPEND_LOCKFS_FLAG@GOTPAGEOFF]
	ldr	w21, [x23]
	bl	_find_device
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w22, [x20]
Lloh2:
	adrp	x8, _DM_SKIP_LOCKFS_FLAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DM_SKIP_LOCKFS_FLAG@GOTPAGEOFF]
Lloh4:
	ldr	w26, [x8]
	ldr	w23, [x23]
Lloh5:
	adrp	x8, _DM_NOFLUSH_FLAG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DM_NOFLUSH_FLAG@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
Lloh8:
	adrp	x8, _DM_SUSPEND_NOFLUSH_FLAG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DM_SUSPEND_NOFLUSH_FLAG@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	bl	_dm_suspended_md
	cbnz	w0, LBB0_3
; %bb.2:
	tst	w26, w22
	mov	w8, #-1
	csinv	w8, w8, w23, eq
	and	w8, w8, w21
	tst	w24, w22
	csel	w9, wzr, w25, eq
	orr	w1, w9, w8
	mov	x0, x19
	bl	_dm_suspend
	mov	x21, x0
	cbnz	w0, LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	___dev_status
	mov	w21, #0
LBB0_4:
	mov	x0, x19
	bl	_dm_put
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_SUSPEND_LOCKFS_FLAG,4,2     ; @DM_SUSPEND_LOCKFS_FLAG
	.comm	_ENXIO,4,2                      ; @ENXIO
	.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
	.no_dead_strip	_do_suspend
.subsections_via_symbols
