	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nx_get_fw_size
_nx_get_fw_size:                        ## @nx_get_fw_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_NX_UNIFIED_ROMIMAGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_NX_UNI_DIR_SECT_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NX_UNI_FIRMWARE_IDX_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nx_get_data_desc
	jmp	LBB0_3
LBB0_2:
	movq	8(%rdi), %rcx
	movq	_NX_FW_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
LBB0_3:
	movl	(%rax), %edi
	popq	%rbp
	jmp	_cpu_to_le32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NX_UNIFIED_ROMIMAGE,8,3        ## @NX_UNIFIED_ROMIMAGE
	.comm	_NX_UNI_DIR_SECT_FW,4,2         ## @NX_UNI_DIR_SECT_FW
	.comm	_NX_UNI_FIRMWARE_IDX_OFF,4,2    ## @NX_UNI_FIRMWARE_IDX_OFF
	.comm	_NX_FW_SIZE_OFFSET,8,3          ## @NX_FW_SIZE_OFFSET
	.no_dead_strip	_nx_get_fw_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nx_get_fw_size
_nx_get_fw_size:                        ; @nx_get_fw_size
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NX_UNIFIED_ROMIMAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NX_UNIFIED_ROMIMAGE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NX_UNI_DIR_SECT_FW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NX_UNI_DIR_SECT_FW@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _NX_UNI_FIRMWARE_IDX_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NX_UNI_FIRMWARE_IDX_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_nx_get_data_desc
	b	LBB0_3
LBB0_2:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _NX_FW_SIZE_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NX_FW_SIZE_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
LBB0_3:
	ldr	w0, [x0]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_cpu_to_le32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NX_UNIFIED_ROMIMAGE,8,3        ; @NX_UNIFIED_ROMIMAGE
	.comm	_NX_UNI_DIR_SECT_FW,4,2         ; @NX_UNI_DIR_SECT_FW
	.comm	_NX_UNI_FIRMWARE_IDX_OFF,4,2    ; @NX_UNI_FIRMWARE_IDX_OFF
	.comm	_NX_FW_SIZE_OFFSET,8,3          ; @NX_FW_SIZE_OFFSET
	.no_dead_strip	_nx_get_fw_size
.subsections_via_symbols
