	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl_fw_format_ok
_rtl_fw_format_ok:                      ## @rtl_fw_format_ok
	.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	24(%rdi), %r13
	movq	8(%r13), %rax
	movq	_FW_OPCODE_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	xorl	%ebx, %ebx
	cmpq	%rcx, %rax
	jb	LBB0_28
## %bb.1:
	movq	%rdi, %r14
	movq	(%r13), %r15
	cmpl	$0, 12(%r15)
	je	LBB0_2
## %bb.20:
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_21
## %bb.22:
	xorl	%edx, %edx
	divq	%rcx
	testq	%rdx, %rdx
	jne	LBB0_28
	jmp	LBB0_24
LBB0_2:
	cmpq	$16, %rax
	jb	LBB0_28
## %bb.3:
	movq	%rax, %rcx
	andq	$-4, %rcx
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %edx
	andl	$3, %edx
	cmpq	$12, %rsi
	jae	LBB0_5
## %bb.4:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	jmp	LBB0_7
LBB0_21:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_28
LBB0_24:
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movq	_RTL_VER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strscpy
	movq	(%r13), %rax
	movq	%rax, 16(%r14)
	movq	8(%r13), %rax
	movq	(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_25
## %bb.26:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_27
LBB0_5:
	andq	$-4, %rdi
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r15,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%r15,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%r15,%rsi,8), %xmm1
	movdqu	48(%r15,%rsi,8), %xmm3
	movdqu	64(%r15,%rsi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%r15,%rsi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%r15,%rsi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%r15,%rsi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rsi
	addq	$-4, %rdi
	jne	LBB0_6
LBB0_7:
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.8:
	leaq	(%r15,%rsi,8), %rsi
	addq	$16, %rsi
	shlq	$5, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rsi,%rdi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_9
LBB0_10:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rdx
	cmpq	%rcx, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addq	(%r15,%rcx,8), %rdx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
LBB0_13:
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	jne	LBB0_28
## %bb.14:
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	cmpq	8(%r13), %rax
	ja	LBB0_28
## %bb.15:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	movq	8(%r13), %rax
	subq	%rdi, %rax
	movq	(%r12), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_16
## %bb.17:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_18
LBB0_25:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_27:
	movq	%rax, 8(%r14)
	movl	$1, %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_18:
	cmpq	%rax, %rsi
	ja	LBB0_28
## %bb.19:
	movq	%rdi, %rbx
	movl	4(%r14), %edi
	movq	%rsi, %r12
	movl	(%r15), %esi
	movq	_RTL_VER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strscpy
	movq	%r12, %rax
	shlq	$3, %rbx
	addq	(%r13), %rbx
	movq	%rbx, 16(%r14)
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_OPCODE_SIZE,8,3             ## @FW_OPCODE_SIZE
	.comm	_RTL_VER_SIZE,4,2               ## @RTL_VER_SIZE
	.no_dead_strip	_rtl_fw_format_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl_fw_format_ok
_rtl_fw_format_ok:                      ; @rtl_fw_format_ok
	.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
	ldr	x22, [x0, #24]
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x23, _FW_OPCODE_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FW_OPCODE_SIZE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.lo	LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x24, [x22]
	ldr	w10, [x24, #12]
	cbz	w10, LBB0_5
; %bb.2:
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	cbnz	x8, LBB0_14
; %bb.3:
	ldp	w1, w0, [x19]
Lloh2:
	adrp	x8, _RTL_VER_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RTL_VER_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_strscpy
	ldp	x8, x9, [x22]
	str	x8, [x19, #16]
	ldr	x8, [x23]
	udiv	x21, x9, x8
LBB0_4:
	str	x21, [x19, #8]
	mov	w0, #1
	b	LBB0_15
LBB0_5:
	cmp	x8, #16
	b.lo	LBB0_14
; %bb.6:
	and	x9, x8, #0xfffffffffffffff8
	add	x10, x24, #32
	movi.2d	v0, #0000000000000000
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x11, x11, #8
	b.ne	LBB0_7
; %bb.8:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x10, d0
	subs	x9, x8, x9
	b.eq	LBB0_11
; %bb.9:
	lsl	x8, x8, #3
	and	x8, x8, #0xffffffffffffffc0
	add	x8, x24, x8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8], #8
	add	x10, x11, x10
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	cbnz	x10, LBB0_14
; %bb.12:
	ldr	w0, [x24, #8]
	bl	_le32_to_cpu
	ldr	x8, [x22, #8]
	cmp	x0, x8
	b.hi	LBB0_14
; %bb.13:
	mov	x20, x0
	ldr	w0, [x24, #4]
	bl	_le32_to_cpu
	ldr	x8, [x22, #8]
	sub	x8, x8, x20
	ldr	x9, [x23]
	udiv	x8, x8, x9
	cmp	x0, x8
	b.ls	LBB0_16
LBB0_14:
	mov	w0, #0
LBB0_15:
	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
	ret
LBB0_16:
	mov	x21, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x24]
Lloh5:
	adrp	x8, _RTL_VER_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RTL_VER_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_strscpy
	ldr	x8, [x22]
	add	x8, x8, x20, lsl #3
	str	x8, [x19, #16]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_OPCODE_SIZE,8,3             ; @FW_OPCODE_SIZE
	.comm	_RTL_VER_SIZE,4,2               ; @RTL_VER_SIZE
	.no_dead_strip	_rtl_fw_format_ok
.subsections_via_symbols
