	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hydra_get_8390_hdr
_hydra_get_8390_hdr:                    ## @hydra_get_8390_hdr
	.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
	movl	(%rdi), %eax
	movq	_HYDRA_NIC_BASE@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movq	_NESM_START_PG@GOTPCREL(%rip), %rcx
	subl	(%rcx), %edx
	movq	%rsi, %r14
	shll	$8, %edx
	addl	%eax, %edx
	movslq	%edx, %rbx
	movq	%rbx, %rdi
	callq	_z_readw
	movw	%ax, (%r14)
	movswl	%ax, %edi
	callq	_WORDSWAP
	movw	%ax, (%r14)
	addq	$2, %rbx
	movq	%rbx, %rdi
	callq	_z_readw
	movw	%ax, 2(%r14)
	movswl	%ax, %edi
	callq	_WORDSWAP
	movw	%ax, 2(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HYDRA_NIC_BASE,4,2             ## @HYDRA_NIC_BASE
	.comm	_NESM_START_PG,4,2              ## @NESM_START_PG
	.no_dead_strip	_hydra_get_8390_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hydra_get_8390_hdr
_hydra_get_8390_hdr:                    ; @hydra_get_8390_hdr
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HYDRA_NIC_BASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HYDRA_NIC_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w8, w8, w9
Lloh3:
	adrp	x9, _NESM_START_PG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NESM_START_PG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w9, w2, w9
	add	w8, w8, w9, lsl #8
	sxtw	x20, w8
	mov	x0, x20
	bl	_z_readw
	strh	w0, [x19]
	sxth	w0, w0
	bl	_WORDSWAP
	strh	w0, [x19]
	add	x0, x20, #2
	bl	_z_readw
	strh	w0, [x19, #2]
	sxth	w0, w0
	bl	_WORDSWAP
	strh	w0, [x19, #2]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HYDRA_NIC_BASE,4,2             ; @HYDRA_NIC_BASE
	.comm	_NESM_START_PG,4,2              ; @NESM_START_PG
	.no_dead_strip	_hydra_get_8390_hdr
.subsections_via_symbols
