	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_copro_response
_read_copro_response:                   ## @read_copro_response
	.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	%rcx, %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_STAT_RTAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_ioread8
	movl	%eax, %r13d
	movl	%eax, %r12d
	andl	$15, %r12d
	movq	_STAT_RCRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	8(%rbx), %rdi
	movl	%r15d, %ebx
	callq	_ioread8
	movl	%eax, %r15d
	andl	$15, %r15d
	andl	$3, %r13d
	movl	%r13d, (%r14)
	xorl	%edi, %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_crc4
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	$4, %edx
	callq	_crc4
	movq	%rax, %r14
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	movq	_FSI_RESP_ACK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_5
## %bb.2:
	movq	_RSP_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	8(%rax), %rdi
	callq	_ioread32be
	movq	%rax, %r13
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_crc4
	movq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r13, (%rax)
	jmp	LBB0_6
LBB0_5:
	xorl	%r13d, %r13d
LBB0_6:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$4, %edx
	callq	_crc4
	movq	%rax, %rbx
	xorl	%r8d, %r8d
	testq	%rax, %rax
	sete	%r8b
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	movq	%r13, %rcx
	callq	_trace_fsi_master_acf_copro_response
	testq	%rbx, %rbx
	movl	$0, %eax
	je	LBB0_13
## %bb.7:
	cmpl	$15, %r12d
	jne	LBB0_9
## %bb.8:
	cmpl	$15, %r15d
	je	LBB0_10
LBB0_9:
	orl	%r15d, %r12d
	jne	LBB0_11
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_12:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAT_RTAG,8,3                  ## @STAT_RTAG
	.comm	_STAT_RCRC,8,3                  ## @STAT_RCRC
	.comm	_FSI_RESP_ACK,4,2               ## @FSI_RESP_ACK
	.comm	_RSP_DATA,8,3                   ## @RSP_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad response CRC !\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_read_copro_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_copro_response
_read_copro_response:                   ; @read_copro_response
	.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	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _STAT_RTAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STAT_RTAG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread8
	mov	x25, x0
	and	w20, w0, #0xf
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _STAT_RCRC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STAT_RCRC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread8
	and	w21, w0, #0xf
	and	w26, w25, #0x3
	str	w26, [x24]
	mov	x0, #0
	mov	w1, #1
	mov	w2, #1
	bl	_crc4
	mov	x1, x20
	mov	w2, #4
	bl	_crc4
	mov	x25, x0
	mov	x24, #0
	cbz	w23, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _FSI_RESP_ACK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FSI_RESP_ACK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _RSP_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RSP_DATA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32be
	mov	x24, x0
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	bl	_crc4
	mov	x25, x0
	cbz	x22, LBB0_4
; %bb.3:
	str	x24, [x22]
LBB0_4:
	mov	x0, x25
	mov	x1, x21
	mov	w2, #4
	bl	_crc4
	mov	x22, x0
	cmp	x0, #0
	cset	w4, eq
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x24
	bl	_trace_fsi_master_acf_copro_response
	cbz	x22, LBB0_7
; %bb.5:
	cmp	w20, #15
	ccmp	w21, #15, #0, eq
	orr	w8, w20, w21
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_8
; %bb.6:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh16:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAGAIN@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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STAT_RTAG,8,3                  ; @STAT_RTAG
	.comm	_STAT_RCRC,8,3                  ; @STAT_RCRC
	.comm	_FSI_RESP_ACK,4,2               ; @FSI_RESP_ACK
	.comm	_RSP_DATA,8,3                   ; @RSP_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad response CRC !\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_read_copro_response
.subsections_via_symbols
