	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_firmware_size
_check_firmware_size:                   ## @check_firmware_size
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	_FW_HDR_DMEM_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%rdi,%rax,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	_FW_HDR_IMEM_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%r12,%rax,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_FW_HDR_MEM_USAGE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%r12,%rax,4), %r13d
	movl	$4, %edi
	callq	_BIT
	testl	%r13d, %eax
	je	LBB0_1
## %bb.2:
	movq	_FW_HDR_EMEM_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%r12,%rax,4), %edi
	callq	_le32_to_cpu
	movq	_FW_HDR_CHKSUM_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %r15d
	addl	%ecx, %ebx
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_3
LBB0_1:
	movq	_FW_HDR_CHKSUM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %r15d
	addl	%eax, %ebx
LBB0_3:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
LBB0_4:
	addl	%r15d, %ebx
	addl	%eax, %ebx
	addl	%ecx, %ebx
	movq	_FW_HDR_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	xorl	%eax, %eax
	cmpl	%r14d, %ebx
	sete	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_HDR_DMEM_SIZE,4,2           ## @FW_HDR_DMEM_SIZE
	.comm	_FW_HDR_IMEM_SIZE,4,2           ## @FW_HDR_IMEM_SIZE
	.comm	_FW_HDR_MEM_USAGE,4,2           ## @FW_HDR_MEM_USAGE
	.comm	_FW_HDR_EMEM_SIZE,4,2           ## @FW_HDR_EMEM_SIZE
	.comm	_FW_HDR_CHKSUM_SIZE,4,2         ## @FW_HDR_CHKSUM_SIZE
	.comm	_FW_HDR_SIZE,4,2                ## @FW_HDR_SIZE
	.no_dead_strip	_check_firmware_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_firmware_size
_check_firmware_size:                   ; @check_firmware_size
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _FW_HDR_DMEM_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_HDR_DMEM_SIZE@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	ldr	w0, [x0, x8, lsl #2]
	bl	_le32_to_cpu
	mov	x20, x0
Lloh3:
	adrp	x8, _FW_HDR_IMEM_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_HDR_IMEM_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	ldr	w0, [x21, x8, lsl #2]
	bl	_le32_to_cpu
	mov	x22, x0
Lloh6:
	adrp	x8, _FW_HDR_MEM_USAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FW_HDR_MEM_USAGE@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	ldr	w23, [x21, x8, lsl #2]
	mov	w0, #4
	bl	_BIT
	tst	w0, w23
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _FW_HDR_EMEM_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FW_HDR_EMEM_SIZE@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	ldr	w0, [x21, x8, lsl #2]
	bl	_le32_to_cpu
Lloh12:
	adrp	x8, _FW_HDR_CHKSUM_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_HDR_CHKSUM_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x8]
	add	w8, w10, w20
	add	w9, w10, w22
	cbnz	w0, LBB0_4
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _FW_HDR_CHKSUM_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FW_HDR_CHKSUM_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
	add	w8, w9, w20
	add	w9, w9, w22
LBB0_3:
	mov	w0, #0
	mov	w10, #0
LBB0_4:
Lloh18:
	adrp	x11, _FW_HDR_SIZE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _FW_HDR_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	add	w8, w8, w9
	add	w8, w8, w0
	add	w8, w8, w10
	add	w8, w8, w11
	cmp	w8, w19
	cset	w0, eq
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_HDR_DMEM_SIZE,4,2           ; @FW_HDR_DMEM_SIZE
	.comm	_FW_HDR_IMEM_SIZE,4,2           ; @FW_HDR_IMEM_SIZE
	.comm	_FW_HDR_MEM_USAGE,4,2           ; @FW_HDR_MEM_USAGE
	.comm	_FW_HDR_EMEM_SIZE,4,2           ; @FW_HDR_EMEM_SIZE
	.comm	_FW_HDR_CHKSUM_SIZE,4,2         ; @FW_HDR_CHKSUM_SIZE
	.comm	_FW_HDR_SIZE,4,2                ; @FW_HDR_SIZE
	.no_dead_strip	_check_firmware_size
.subsections_via_symbols
