	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_topology_map
_handle_topology_map:                   ## @handle_topology_map
	.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	32(%rbp), %r13
	movq	24(%rbp), %r12
	movq	16(%rbp), %rbx
	movl	%edx, %edi
	callq	_TCODE_IS_READ_REQUEST
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r13d, %eax
	orl	%ebx, %eax
	testb	$3, %al
	je	LBB0_4
## %bb.3:
	movq	_RCODE_ADDRESS_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_RCODE_TYPE_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_topology_map_region@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	shrq	$2, %rbx
	movslq	%ebx, %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_memcpy
	movq	_RCODE_COMPLETE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	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	_RCODE_TYPE_ERROR,4,2           ## @RCODE_TYPE_ERROR
	.comm	_RCODE_ADDRESS_ERROR,4,2        ## @RCODE_ADDRESS_ERROR
	.comm	_topology_map_region,8,3        ## @topology_map_region
	.comm	_RCODE_COMPLETE,4,2             ## @RCODE_COMPLETE
	.no_dead_strip	_handle_topology_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_topology_map
_handle_topology_map:                   ; @handle_topology_map
	.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	x21, x7
	mov	x23, x6
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x29, #16]
	mov	x0, x2
	bl	_TCODE_IS_READ_REQUEST
	cbz	w0, LBB0_3
; %bb.1:
	orr	w8, w22, w23
	tst	x8, #0x3
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _RCODE_ADDRESS_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCODE_ADDRESS_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _RCODE_TYPE_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RCODE_TYPE_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _topology_map_region@GOTPAGE
Lloh5:
	ldr	x8, [x8, _topology_map_region@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	sub	x8, x23, x8
	ldr	x9, [x20]
	lsr	x8, x8, #2
	add	x1, x9, w8, sxtw #2
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
Lloh7:
	adrp	x8, _RCODE_COMPLETE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RCODE_COMPLETE@GOTPAGEOFF]
LBB0_5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RCODE_TYPE_ERROR,4,2           ; @RCODE_TYPE_ERROR
	.comm	_RCODE_ADDRESS_ERROR,4,2        ; @RCODE_ADDRESS_ERROR
	.comm	_topology_map_region,8,3        ; @topology_map_region
	.comm	_RCODE_COMPLETE,4,2             ; @RCODE_COMPLETE
	.no_dead_strip	_handle_topology_map
.subsections_via_symbols
