	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hydra_block_input
_hydra_block_input:                     ## @hydra_block_input
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %eax
	movq	(%rdi), %r15
	movq	_HYDRA_NIC_BASE@GOTPCREL(%rip), %rdx
	subq	(%rdx), %r15
	movslq	%ecx, %rsi
	addq	%r15, %rsi
	movq	_NESM_START_PG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	movslq	%ecx, %rcx
	subq	%rcx, %rsi
	movl	%eax, %r12d
	andl	$1, %r12d
	addl	%eax, %r12d
	movslq	%r12d, %rax
	addq	%rsi, %rax
	movq	_NESM_STOP_PG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$8, %ecx
	movslq	%ecx, %rbx
	addq	%r15, %rbx
	cmpq	%rbx, %rax
	jbe	LBB0_2
## %bb.1:
	subq	%rsi, %rbx
	movq	(%r14), %rdi
	movl	%ebx, %edx
	callq	_z_memcpy_fromio
	subl	%ebx, %r12d
	movslq	%ebx, %rdi
	addq	(%r14), %rdi
	movq	%r15, %rsi
	jmp	LBB0_3
LBB0_2:
	movq	(%r14), %rdi
LBB0_3:
	movl	%r12d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_z_memcpy_fromio                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HYDRA_NIC_BASE,8,3             ## @HYDRA_NIC_BASE
	.comm	_NESM_START_PG,4,2              ## @NESM_START_PG
	.comm	_NESM_STOP_PG,4,2               ## @NESM_STOP_PG
	.no_dead_strip	_hydra_block_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hydra_block_input
_hydra_block_input:                     ; @hydra_block_input
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x8, x1
Lloh0:
	adrp	x9, _HYDRA_NIC_BASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HYDRA_NIC_BASE@GOTPAGEOFF]
	ldr	x10, [x0]
Lloh2:
	ldr	x9, [x9]
	sub	x20, x10, x9
	add	x9, x20, w3, sxtw
Lloh3:
	adrp	x10, _NESM_START_PG@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NESM_START_PG@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w10, w10, #8
	sub	x1, x9, w10, sxtw
	and	w9, w8, #0x1
	add	w21, w9, w8
	add	x9, x1, w21, sxtw
Lloh6:
	adrp	x8, _NESM_STOP_PG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NESM_STOP_PG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w8, #8
	add	x8, x20, w8, sxtw
	cmp	x9, x8
	b.ls	LBB0_2
; %bb.1:
	sub	x22, x8, x1
	ldr	x0, [x19]
	mov	x2, x22
	bl	_z_memcpy_fromio
	sub	w2, w21, w22
	ldr	x8, [x19]
	add	x0, x8, w22, sxtw
	mov	x1, x20
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19]
	mov	x2, x21
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_z_memcpy_fromio
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HYDRA_NIC_BASE,8,3             ; @HYDRA_NIC_BASE
	.comm	_NESM_START_PG,4,2              ; @NESM_START_PG
	.comm	_NESM_STOP_PG,4,2               ; @NESM_STOP_PG
	.no_dead_strip	_hydra_block_input
.subsections_via_symbols
