	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r592_wait_status
_r592_wait_status:                      ## @r592_wait_status
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	_R592_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_r592_read_reg
	andl	%r15d, %eax
	xorl	%r13d, %r13d
	cmpl	%r14d, %eax
	je	LBB0_9
## %bb.1:
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_R592_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_r592_read_reg
	movl	%eax, %ecx
	andl	%r15d, %ecx
	cmpl	%r14d, %ecx
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_R592_STATUS_RECV_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_R592_STATUS_SEND_ERR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	jne	LBB0_3
LBB0_7:
	movq	_ETIME@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_R592_STATUS,4,2                ## @R592_STATUS
	.comm	_R592_STATUS_SEND_ERR,4,2       ## @R592_STATUS_SEND_ERR
	.comm	_R592_STATUS_RECV_ERR,4,2       ## @R592_STATUS_RECV_ERR
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_r592_wait_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r592_wait_status
_r592_wait_status:                      ; @r592_wait_status
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x25, [x23]
	mov	w0, #1000
	bl	_msecs_to_jiffies
	mov	x22, x0
Lloh2:
	adrp	x24, _R592_STATUS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _R592_STATUS@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_r592_read_reg
	and	w8, w0, w20
	cmp	w8, w19
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	add	x22, x22, x25
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_7
; %bb.3:
Lloh4:
	adrp	x25, _R592_STATUS_SEND_ERR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _R592_STATUS_SEND_ERR@GOTPAGEOFF]
Lloh6:
	adrp	x26, _R592_STATUS_RECV_ERR@GOTPAGE
Lloh7:
	ldr	x26, [x26, _R592_STATUS_RECV_ERR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_r592_read_reg
	and	w8, w0, w20
	cmp	w8, w19
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	ldr	w9, [x26]
	orr	w8, w9, w8
	tst	w8, w0
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_cpu_relax
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_before
	cbnz	x0, LBB0_4
LBB0_7:
Lloh8:
	adrp	x8, _ETIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_R592_STATUS,4,2                ; @R592_STATUS
	.comm	_R592_STATUS_SEND_ERR,4,2       ; @R592_STATUS_SEND_ERR
	.comm	_R592_STATUS_RECV_ERR,4,2       ; @R592_STATUS_RECV_ERR
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_r592_wait_status
.subsections_via_symbols
