	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function userspace_do_request
_userspace_do_request:                  ## @userspace_do_request
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %r13
	movq	_HZ@GOTPCREL(%rip), %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	8(%r14), %esi
	movq	16(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	-88(%rbp), %r9                  ## 8-byte Reload
	callq	_dm_consult_userspace
	movl	%eax, %r12d
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DMERR
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	callq	_set_current_state
	movl	(%rbx), %edi
	addl	%edi, %edi
	callq	_schedule_timeout
	leaq	L_.str.1(%rip), %rdi
	callq	_DMWARN
	movq	%rbx, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ebx
	movq	_DM_ULOG_CTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movq	(%rax), %r15
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r8d
	movq	$0, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r14, %rbx
	movl	%r12d, %edx
	movq	%r15, %rcx
	xorl	%r9d, %r9d
	callq	_dm_consult_userspace
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	_DMINFO
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %esi
	movq	_DM_ULOG_RESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_dm_consult_userspace
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DMERR
	movq	_ESRCH@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESRCH,4,2                      ## @ESRCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" Userspace log server not found."

	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_HZ,4,2                         ## @HZ
L_.str.1:                               ## @.str.1
	.asciz	"Attempting to contact userspace log server..."

	.comm	_DM_ULOG_CTR,4,2                ## @DM_ULOG_CTR
L_.str.2:                               ## @.str.2
	.asciz	"Reconnected to userspace log server... DM_ULOG_CTR complete"

	.comm	_DM_ULOG_RESUME,4,2             ## @DM_ULOG_RESUME
L_.str.3:                               ## @.str.3
	.asciz	"Error trying to resume userspace log: %d"

	.no_dead_strip	_userspace_do_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function userspace_do_request
_userspace_do_request:                  ; @userspace_do_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	x5, x6, [sp, #32]               ; 16-byte Folded Spill
	stp	x3, x4, [sp, #16]               ; 16-byte Folded Spill
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x20, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _HZ@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HZ@GOTPAGEOFF]
Lloh4:
	adrp	x27, l_.str.1@PAGE
Lloh5:
	add	x27, x27, l_.str.1@PAGEOFF
Lloh6:
	adrp	x22, _DM_ULOG_CTR@GOTPAGE
Lloh7:
	ldr	x22, [x22, _DM_ULOG_CTR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w1, [x25, #8]
	mov	x0, x24
	mov	x2, x23
	ldp	x3, x4, [sp, #16]               ; 16-byte Folded Reload
                                        ; kill: def $w4 killed $w4 killed $x4
	ldp	x5, x6, [sp, #32]               ; 16-byte Folded Reload
	bl	_dm_consult_userspace
Lloh8:
	adrp	x8, _ESRCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMERR
LBB0_3:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20]
	bl	_set_current_state
	ldr	w8, [x21]
	lsl	w0, w8, #1
	bl	_schedule_timeout
	mov	x0, x27
	bl	_DMWARN
	ldr	w26, [x25, #8]
	ldr	w28, [x22]
	ldr	x19, [x25]
	mov	x0, x19
	bl	_strlen
	add	w4, w0, #1
	mov	x0, x24
	mov	x1, x26
	mov	x2, x28
	mov	x3, x19
	mov	x5, #0
	mov	x6, #0
	bl	_dm_consult_userspace
	cbnz	w0, LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DMINFO
	ldr	w1, [x25, #8]
Lloh15:
	adrp	x8, _DM_ULOG_RESUME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DM_ULOG_RESUME@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	mov	x6, #0
	bl	_dm_consult_userspace
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_1
; %bb.5:
	str	x0, [sp]
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DMERR
Lloh20:
	adrp	x8, _ESRCH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ESRCH,4,2                      ; @ESRCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" Userspace log server not found."

	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_HZ,4,2                         ; @HZ
l_.str.1:                               ; @.str.1
	.asciz	"Attempting to contact userspace log server..."

	.comm	_DM_ULOG_CTR,4,2                ; @DM_ULOG_CTR
l_.str.2:                               ; @.str.2
	.asciz	"Reconnected to userspace log server... DM_ULOG_CTR complete"

	.comm	_DM_ULOG_RESUME,4,2             ; @DM_ULOG_RESUME
l_.str.3:                               ; @.str.3
	.asciz	"Error trying to resume userspace log: %d"

	.no_dead_strip	_userspace_do_request
.subsections_via_symbols
