	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wait_for_io_cmd_user
_wait_for_io_cmd_user:                  ## @wait_for_io_cmd_user
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	addq	(%rdi), %r15
	addq	$12, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	16(%rbx), %r12
	movq	%r12, %rdi
	callq	_atomic_read
	movl	%eax, %r14d
	cmpl	%eax, 8(%rbx)
	jle	LBB0_6
## %bb.1:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	20(%rbx), %r15d
	movq	%r12, %r13
	movq	%r12, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	cmpl	%r14d, %eax
	setg	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%r15d, %edi
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	callq	_wait_event_interruptible_timeout
	jmp	LBB0_4
LBB0_3:
	callq	_wait_event_timeout
LBB0_4:
	testl	%eax, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_10
## %bb.5:
	movq	%r13, %r12
	movq	%r13, %rdi
	callq	_atomic_read
	movl	%eax, %r14d
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_6:
	movl	%r13d, %edi
	movq	%r15, %rsi
	callq	_outb
	leal	1(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	20(%rbx), %ebx
	movq	%r12, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	cmpl	%r14d, %eax
	setg	%sil
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %edx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:
	movl	%ebx, %edi
	callq	_wait_event_interruptible_timeout
	jmp	LBB0_9
LBB0_8:
	movl	%ebx, %edi
	callq	_wait_event_timeout
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:
	movl	%eax, %ebx
	sarl	$31, %ebx
	andl	%eax, %ebx
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_wait_for_io_cmd_user
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wait_for_io_cmd_user
_wait_for_io_cmd_user:                  ; @wait_for_io_cmd_user
	.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	x20, x3
	mov	x24, x2
	mov	x23, x1
	mov	x21, x0
	ldr	x28, [x0]
	add	x19, x0, #12
	mov	x0, x19
	bl	_mutex_lock
	add	x22, x21, #16
	mov	x0, x22
	bl	_atomic_read
	mov	x25, x0
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x27, _HZ@GOTPAGE
Lloh1:
	ldr	x27, [x27, _HZ@GOTPAGEOFF]
	cmp	w8, w0
	b.le	LBB0_5
; %bb.1:
	ldr	w26, [x21, #20]
	mov	x0, x22
	bl	_atomic_read
	cmp	w0, w25
	cset	w1, gt
	ldr	w8, [x27]
	add	w2, w8, w8, lsl #2
	mov	x0, x26
	cbz	w20, LBB0_3
; %bb.2:
	bl	_wait_event_interruptible_timeout
	cmp	w0, #1
	b.ge	LBB0_4
	b	LBB0_8
LBB0_3:
	bl	_wait_event_timeout
	cmp	w0, #1
	b.lt	LBB0_8
LBB0_4:
	mov	x0, x22
	bl	_atomic_read
	mov	x25, x0
LBB0_5:
	add	x1, x28, x24
	mov	x0, x23
	bl	_outb
	add	w8, w25, #1
	str	w8, [x21, #8]
	ldr	w21, [x21, #20]
	mov	x0, x22
	bl	_atomic_read
	cmp	w0, w25
	cset	w1, gt
	ldr	w8, [x27]
	add	w2, w8, w8, lsl #2
	mov	x0, x21
	cbz	w20, LBB0_7
; %bb.6:
	bl	_wait_event_interruptible_timeout
	b	LBB0_8
LBB0_7:
	bl	_wait_event_timeout
LBB0_8:
	cmp	w0, #0
	csel	w20, w0, wzr, lt
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_wait_for_io_cmd_user
.subsections_via_symbols
