	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_local_request
_handle_local_request:                  ## @handle_local_request
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	leaq	16(%rsi), %rax
	cmpq	%rdi, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ACK_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 8(%r14)
	movq	%r14, %rdi
	callq	*16(%r14)
LBB0_2:
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	callq	_HEADER_GET_OFFSET_HIGH
	movq	(%r14), %rax
	movl	16(%rax), %edx
	movq	_CSR_REGISTER_BASE@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	movq	_CSR_CONFIG_ROM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jl	LBB0_5
## %bb.3:
	movq	_CSR_CONFIG_ROM_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_handle_local_rom
	jmp	LBB0_10
LBB0_5:
	movl	%edx, %eax
	andl	$-4, %eax
	movq	(%rbx), %rdi
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r14, %rsi
	callq	_handle_local_lock
	jmp	LBB0_10
LBB0_7:
	leaq	16(%rdi), %rax
	movq	%r14, %rsi
	cmpq	%rbx, %rax
	je	LBB0_8
## %bb.9:
	callq	_fw_core_handle_response
	jmp	LBB0_10
LBB0_8:
	callq	_fw_core_handle_request
LBB0_10:
	movq	(%rbx), %rsi
	leaq	8(%rsi), %rax
	cmpq	%rbx, %rax
	je	LBB0_12
## %bb.11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	movq	_ACK_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 8(%r14)
	movq	16(%r14), %rax
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACK_PENDING,4,2                ## @ACK_PENDING
	.comm	_CSR_REGISTER_BASE,4,2          ## @CSR_REGISTER_BASE
	.comm	_CSR_CONFIG_ROM,4,2             ## @CSR_CONFIG_ROM
	.comm	_CSR_CONFIG_ROM_END,4,2         ## @CSR_CONFIG_ROM_END
	.comm	_ACK_COMPLETE,4,2               ## @ACK_COMPLETE
	.no_dead_strip	_handle_local_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_local_request
_handle_local_request:                  ; @handle_local_request
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x1, [x0]
	add	x8, x1, #16
	cmp	x8, x0
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ACK_PENDING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACK_PENDING@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	str	w2, [x19, #8]
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
LBB0_2:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_HEADER_GET_OFFSET_HIGH
	ldr	x8, [x19]
	ldr	w8, [x8, #16]
Lloh3:
	adrp	x9, _CSR_REGISTER_BASE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CSR_REGISTER_BASE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _CSR_CONFIG_ROM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CSR_CONFIG_ROM@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _CSR_CONFIG_ROM_END@GOTPAGE
Lloh10:
	ldr	x11, [x11, _CSR_CONFIG_ROM_END@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	sub	w2, w8, w9
	cmp	w2, w10
	ccmp	w2, w11, #0, ge
	b.lt	LBB0_5
; %bb.3:
	and	w8, w2, #0xfffffffc
	ldr	x0, [x20]
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.4:
	mov	x1, x19
	bl	_handle_local_lock
	b	LBB0_9
LBB0_5:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_handle_local_rom
	b	LBB0_9
LBB0_6:
	add	x8, x0, #16
	mov	x1, x19
	cmp	x8, x20
	b.eq	LBB0_8
; %bb.7:
	bl	_fw_core_handle_response
	b	LBB0_9
LBB0_8:
	bl	_fw_core_handle_request
LBB0_9:
	ldr	x1, [x20]
	add	x8, x1, #8
	cmp	x8, x20
	b.eq	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh12:
	adrp	x8, _ACK_COMPLETE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACK_COMPLETE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	str	w2, [x19, #8]
	ldr	x3, [x19, #16]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ACK_PENDING,4,2                ; @ACK_PENDING
	.comm	_CSR_REGISTER_BASE,4,2          ; @CSR_REGISTER_BASE
	.comm	_CSR_CONFIG_ROM,4,2             ; @CSR_CONFIG_ROM
	.comm	_CSR_CONFIG_ROM_END,4,2         ; @CSR_CONFIG_ROM_END
	.comm	_ACK_COMPLETE,4,2               ; @ACK_COMPLETE
	.no_dead_strip	_handle_local_request
.subsections_via_symbols
