	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_response
_handle_response:                       ## @handle_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	xorl	%eax, %eax
	leaq	-80(%rbp), %r14
	xorl	%r15d, %r15d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	movl	%r12d, %esi
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_read_copro_response
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_FSI_CRC_ERR_RETRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jg	LBB0_31
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	incl	%r15d
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_trace_fsi_master_acf_crc_rsp_error
	cmpq	$0, (%r13)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r13, %rdi
	callq	_dump_ucode_trace
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	_FSI_MASTER_EPOLL_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_clock_zeros
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_build_epoll_command
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_send_request
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	testl	%ebx, %ebx
	jne	LBB0_36
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-64(%rbp), %eax
	cmpl	$130, %eax
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	cmpq	$0, (%r13)
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_dump_ucode_trace
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_FSI_MASTER_DPOLL_CLOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_clock_zeros
	testl	%eax, %eax
	jne	LBB0_37
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	_FSI_MASTER_MAX_BUSY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_39
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_build_dpoll_command
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_send_request
	movl	%eax, %ebx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.15:
	movl	8(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_warn
	jmp	LBB0_40
LBB0_16:
	movl	%eax, %ebx
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_36
LBB0_17:
	movl	8(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_36
LBB0_18:
	cmpl	$128, %eax
	je	LBB0_26
## %bb.19:
	cmpl	$129, %eax
	je	LBB0_29
## %bb.20:
	xorl	%ebx, %ebx
	cmpl	$131, %eax
	jne	LBB0_33
## %bb.21:
	testl	%r12d, %r12d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_34
## %bb.22:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_34
## %bb.23:
	cmpl	$16, %r12d
	je	LBB0_41
## %bb.24:
	cmpl	$32, %r12d
	jne	LBB0_42
## %bb.25:
	movl	-60(%rbp), %edi
	callq	_cpu_to_be32
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_43
LBB0_26:
	movl	8(%r13), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_dbg
	cmpq	$0, (%r13)
	je	LBB0_28
## %bb.27:
	movq	%r13, %rdi
	callq	_dump_ucode_trace
LBB0_28:
	xorl	%ebx, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_32
LBB0_29:
	movl	8(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_dbg
	cmpq	$0, (%r13)
	je	LBB0_31
## %bb.30:
	movq	%r13, %rdi
	callq	_dump_ucode_trace
LBB0_31:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_32:
	subl	(%rax), %ebx
LBB0_33:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_34:
	testl	%esi, %esi
	je	LBB0_36
LBB0_35:
	movq	%r13, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_trace_fsi_master_acf_poll_response_busy
LBB0_36:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movl	%eax, %ebx
	movl	8(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_33
LBB0_39:
	movl	8(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_send_term
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_40:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	jmp	LBB0_35
LBB0_41:
	movl	-60(%rbp), %edi
	callq	_cpu_to_be16
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_43
LBB0_42:
	movl	-60(%rbp), %eax
LBB0_43:
	movl	%eax, (%r14)
	testl	%esi, %esi
	jne	LBB0_35
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_FSI_CRC_ERR_RETRIES,4,2        ## @FSI_CRC_ERR_RETRIES
	.comm	_EIO,4,2                        ## @EIO
	.comm	_FSI_MASTER_EPOLL_CLOCKS,4,2    ## @FSI_MASTER_EPOLL_CLOCKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error %d clocking zeros for E_POLL\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error %d sending E_POLL\n"

L_.str.2:                               ## @.str.2
	.asciz	"Busy, retrying...\n"

	.comm	_FSI_MASTER_DPOLL_CLOCKS,4,2    ## @FSI_MASTER_DPOLL_CLOCKS
L_.str.3:                               ## @.str.3
	.asciz	"Error %d clocking zeros for D_POLL\n"

	.comm	_FSI_MASTER_MAX_BUSY,4,2        ## @FSI_MASTER_MAX_BUSY
L_.str.4:                               ## @.str.4
	.asciz	"Error %d sending D_POLL\n"

L_.str.5:                               ## @.str.5
	.asciz	"ERR slave is stuck in busy state, issuing TERM\n"

L_.str.6:                               ## @.str.6
	.asciz	"ERRA received\n"

L_.str.7:                               ## @.str.7
	.asciz	"ERRC received\n"

	.no_dead_strip	_handle_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_response
_handle_response:                       ; @handle_response
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	w21, #0
	mov	w27, #0
Lloh0:
	adrp	x26, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EAGAIN@GOTPAGEOFF]
Lloh2:
	adrp	x28, _FSI_CRC_ERR_RETRIES@GOTPAGE
Lloh3:
	ldr	x28, [x28, _FSI_CRC_ERR_RETRIES@GOTPAGEOFF]
Lloh4:
	adrp	x24, _FSI_MASTER_EPOLL_CLOCKS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _FSI_MASTER_EPOLL_CLOCKS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #20
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x22
	bl	_read_copro_response
	ldr	w8, [x26]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x28]
	cmp	w27, w8
	b.gt	LBB0_30
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w1, w27, #1
	mov	x0, x19
	bl	_trace_fsi_master_acf_crc_rsp_error
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_dump_ucode_trace
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_clock_zeros
	cbnz	w0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #24
	mov	x1, x23
	bl	_build_epoll_command
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x22
	bl	_send_request
	add	w27, w27, #1
	cbz	w0, LBB0_1
	b	LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, x0
	cbnz	w0, LBB0_34
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #16]
	cmp	w8, #130
	b.ne	LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_dump_ucode_trace
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh8:
	adrp	x8, _FSI_MASTER_DPOLL_CLOCKS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FSI_MASTER_DPOLL_CLOCKS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_clock_zeros
	cbnz	w0, LBB0_36
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	add	w20, w21, #1
Lloh11:
	adrp	x8, _FSI_MASTER_MAX_BUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FSI_MASTER_MAX_BUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_37
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	add	x0, sp, #24
	mov	x1, x23
	bl	_build_dpoll_command
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x22
	bl	_send_request
	mov	x21, x20
	cbz	w0, LBB0_1
; %bb.14:
	mov	x25, x0
	ldr	w0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x25
	bl	_dev_warn
	mov	x21, x20
	b	LBB0_33
LBB0_15:
	mov	x25, x0
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x25
	bl	_dev_warn
	b	LBB0_34
LBB0_16:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_34
LBB0_17:
	cmp	w8, #128
	b.eq	LBB0_25
; %bb.18:
	cmp	w8, #129
	b.eq	LBB0_28
; %bb.19:
	cmp	w8, #131
	b.ne	LBB0_35
; %bb.20:
	mov	w25, #0
	cbz	w22, LBB0_32
; %bb.21:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x20, LBB0_32
; %bb.22:
	cmp	w22, #16
	b.eq	LBB0_38
; %bb.23:
	cmp	w22, #32
	b.ne	LBB0_40
; %bb.24:
	ldr	w0, [sp, #20]
	bl	_cpu_to_be32
	b	LBB0_39
LBB0_25:
	ldr	w0, [x19, #8]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_dump_ucode_trace
LBB0_27:
	ldr	w8, [x26]
	b	LBB0_31
LBB0_28:
	ldr	w0, [x19, #8]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_dump_ucode_trace
LBB0_30:
Lloh27:
	adrp	x8, _EIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
LBB0_31:
	neg	w25, w8
LBB0_32:
	cbz	w21, LBB0_34
LBB0_33:
	mov	x0, x19
	mov	x1, x21
	bl	_trace_fsi_master_acf_poll_response_busy
LBB0_34:
	mov	x0, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_35:
	mov	w25, #0
	b	LBB0_32
LBB0_36:
	mov	x25, x0
	ldr	w0, [x19, #8]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x25
	bl	_dev_warn
	b	LBB0_32
LBB0_37:
	ldr	w0, [x19, #8]
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x23
	bl	_send_term
Lloh34:
	adrp	x8, _EIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w25, w8
	mov	x21, x20
	b	LBB0_33
LBB0_38:
	ldr	w0, [sp, #20]
	bl	_cpu_to_be16
LBB0_39:
	mov	w25, #0
	str	w0, [x20]
	b	LBB0_32
LBB0_40:
	mov	w25, #0
	ldr	w8, [sp, #20]
	str	w8, [x20]
	b	LBB0_32
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_FSI_CRC_ERR_RETRIES,4,2        ; @FSI_CRC_ERR_RETRIES
	.comm	_EIO,4,2                        ; @EIO
	.comm	_FSI_MASTER_EPOLL_CLOCKS,4,2    ; @FSI_MASTER_EPOLL_CLOCKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error %d clocking zeros for E_POLL\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error %d sending E_POLL\n"

l_.str.2:                               ; @.str.2
	.asciz	"Busy, retrying...\n"

	.comm	_FSI_MASTER_DPOLL_CLOCKS,4,2    ; @FSI_MASTER_DPOLL_CLOCKS
l_.str.3:                               ; @.str.3
	.asciz	"Error %d clocking zeros for D_POLL\n"

	.comm	_FSI_MASTER_MAX_BUSY,4,2        ; @FSI_MASTER_MAX_BUSY
l_.str.4:                               ; @.str.4
	.asciz	"Error %d sending D_POLL\n"

l_.str.5:                               ; @.str.5
	.asciz	"ERR slave is stuck in busy state, issuing TERM\n"

l_.str.6:                               ; @.str.6
	.asciz	"ERRA received\n"

l_.str.7:                               ; @.str.7
	.asciz	"ERRC received\n"

	.no_dead_strip	_handle_response
.subsections_via_symbols
