	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_registers
_handle_registers:                      ## @handle_registers
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	24(%rbp), %ebx
	leal	-128(%rbx), %eax
	cmpl	$7, %eax
	ja	LBB0_15
## %bb.1:
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	$150, %ecx
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.14:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_17
LBB0_2:
	movq	32(%rbp), %r12
	movl	$9, %ecx
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.6:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	40(%rbp), %r12
	movl	%edx, %edi
	callq	_TCODE_IS_READ_REQUEST
	cmpq	$4, %r12
	jne	LBB0_8
## %bb.7:
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	8(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	cmpl	$128, %ebx
	je	LBB0_10
## %bb.11:
	shrq	$25, %rax
LBB0_10:
	movq	%rax, %rdi
	callq	_cpu_to_be32
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_17
LBB0_3:
	cmpl	$6, %eax
	jne	LBB0_15
## %bb.4:
	movq	_TCODE_READ_QUADLET_REQUEST@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_12
## %bb.5:
	movq	(%r15), %rdi
	callq	_cpu_to_be32
	movl	%eax, (%r12)
	jmp	LBB0_17
LBB0_15:
	movq	_RCODE_ADDRESS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	movq	_TCODE_WRITE_QUADLET_REQUEST@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_8
## %bb.13:
	movl	(%r12), %edi
	callq	_be32_to_cpu
	movq	_BROADCAST_CHANNEL_VALID@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cltq
	movq	_BROADCAST_CHANNEL_INITIAL@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	orq	%rax, %rcx
	movq	%rcx, (%r15)
	jmp	LBB0_17
LBB0_8:
	movq	_RCODE_TYPE_ERROR@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r13d
LBB0_17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fw_send_response               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR_REGISTER_BASE,8,3          ## @CSR_REGISTER_BASE
	.comm	_RCODE_COMPLETE,4,2             ## @RCODE_COMPLETE
	.comm	_RCODE_TYPE_ERROR,4,2           ## @RCODE_TYPE_ERROR
	.comm	_TCODE_READ_QUADLET_REQUEST,4,2 ## @TCODE_READ_QUADLET_REQUEST
	.comm	_TCODE_WRITE_QUADLET_REQUEST,4,2 ## @TCODE_WRITE_QUADLET_REQUEST
	.comm	_BROADCAST_CHANNEL_VALID,4,2    ## @BROADCAST_CHANNEL_VALID
	.comm	_BROADCAST_CHANNEL_INITIAL,4,2  ## @BROADCAST_CHANNEL_INITIAL
	.comm	_RCODE_ADDRESS_ERROR,4,2        ## @RCODE_ADDRESS_ERROR
	.no_dead_strip	_handle_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_registers
_handle_registers:                      ; @handle_registers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CSR_REGISTER_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CSR_REGISTER_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w23, w7, w8
	sub	w8, w23, #128
	cmp	w8, #7
	b.hi	LBB0_12
; %bb.1:
Lloh3:
	adrp	x9, _RCODE_COMPLETE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RCODE_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x9]
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #150
	tst	w9, w10
	b.eq	LBB0_3
; %bb.2:
	bl	_BUG
	b	LBB0_17
LBB0_3:
	ldr	x22, [x29, #16]
	mov	w10, #9
	tst	w9, w10
	b.eq	LBB0_8
; %bb.4:
	ldr	x24, [x29, #24]
	mov	x0, x2
	bl	_TCODE_IS_READ_REQUEST
	cmp	x24, #4
	b.ne	LBB0_15
; %bb.5:
	cbz	w0, LBB0_15
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
	cmp	w23, #128
	b.eq	LBB0_11
; %bb.7:
	lsr	x0, x0, #25
	b	LBB0_11
LBB0_8:
	cmp	w8, #6
	b.ne	LBB0_12
; %bb.9:
Lloh6:
	adrp	x8, _TCODE_READ_QUADLET_REQUEST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCODE_READ_QUADLET_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_13
; %bb.10:
	ldr	x0, [x20]
LBB0_11:
	bl	_cpu_to_be32
	str	w0, [x22]
	b	LBB0_17
LBB0_12:
Lloh9:
	adrp	x8, _RCODE_ADDRESS_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RCODE_ADDRESS_ERROR@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh11:
	adrp	x8, _TCODE_WRITE_QUADLET_REQUEST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCODE_WRITE_QUADLET_REQUEST@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_15
; %bb.14:
	ldr	w0, [x22]
	bl	_be32_to_cpu
Lloh14:
	adrp	x8, _BROADCAST_CHANNEL_VALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BROADCAST_CHANNEL_VALID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w0
	sxtw	x8, w8
Lloh17:
	adrp	x9, _BROADCAST_CHANNEL_INITIAL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BROADCAST_CHANNEL_INITIAL@GOTPAGEOFF]
Lloh19:
	ldrsw	x9, [x9]
	orr	x8, x8, x9
	str	x8, [x20]
	b	LBB0_17
LBB0_15:
Lloh20:
	adrp	x8, _RCODE_TYPE_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RCODE_TYPE_ERROR@GOTPAGEOFF]
LBB0_16:
	ldr	w21, [x8]
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fw_send_response
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR_REGISTER_BASE,8,3          ; @CSR_REGISTER_BASE
	.comm	_RCODE_COMPLETE,4,2             ; @RCODE_COMPLETE
	.comm	_RCODE_TYPE_ERROR,4,2           ; @RCODE_TYPE_ERROR
	.comm	_TCODE_READ_QUADLET_REQUEST,4,2 ; @TCODE_READ_QUADLET_REQUEST
	.comm	_TCODE_WRITE_QUADLET_REQUEST,4,2 ; @TCODE_WRITE_QUADLET_REQUEST
	.comm	_BROADCAST_CHANNEL_VALID,4,2    ; @BROADCAST_CHANNEL_VALID
	.comm	_BROADCAST_CHANNEL_INITIAL,4,2  ; @BROADCAST_CHANNEL_INITIAL
	.comm	_RCODE_ADDRESS_ERROR,4,2        ; @RCODE_ADDRESS_ERROR
	.no_dead_strip	_handle_registers
.subsections_via_symbols
