	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function userspace_get_resync_work
_userspace_get_resync_work:             ## @userspace_get_resync_work
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rdi
	movq	(%rdi), %rcx
	xorl	%eax, %eax
	cmpq	8(%rdi), %rcx
	jge	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	$16, -16(%rbp)
	movl	16(%rdi), %esi
	movq	_DM_ULOG_GET_RESYNC_WORK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-32(%rbp), %r9
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_userspace_do_request
	movl	-24(%rbp), %ecx
	movl	%ecx, (%rbx)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-32(%rbp), %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DM_ULOG_GET_RESYNC_WORK,4,2    ## @DM_ULOG_GET_RESYNC_WORK
	.no_dead_strip	_userspace_get_resync_work
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function userspace_get_resync_work
_userspace_get_resync_work:             ; @userspace_get_resync_work
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x0, [x0]
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
	mov	x19, x1
	mov	w8, #16
	str	x8, [sp, #24]
	ldr	w1, [x0, #16]
Lloh0:
	adrp	x8, _DM_ULOG_GET_RESYNC_WORK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DM_ULOG_GET_RESYNC_WORK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x5, sp, #8
	add	x6, sp, #24
	mov	x3, #0
	mov	w4, #0
	bl	_userspace_do_request
	ldr	w8, [sp, #16]
	ldr	w9, [sp, #8]
	str	w8, [x19]
	cmp	w0, #0
	csel	w0, w9, w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DM_ULOG_GET_RESYNC_WORK,4,2    ; @DM_ULOG_GET_RESYNC_WORK
	.no_dead_strip	_userspace_get_resync_work
.subsections_via_symbols
