	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_fw_check
_i2400m_fw_check:                       ## @i2400m_fw_check
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_i2400m_dev
	movq	$0, -80(%rbp)
	addq	%r15, %rbx
	cmpq	%r15, %rbx
	jbe	LBB0_11
## %bb.1:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, %r14
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, (%rax,%rcx,8)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r15d, %rax
	leaq	(%r14,%rax,4), %r14
	incq	%r12
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r14
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jae	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rcx
	subq	%r14, %rcx
	movq	%r14, %r13
	subq	%r15, %r13
	cmpq	$9, %rcx
	jb	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	testq	%r12, %r12
	cmovnel	%ebx, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_i2400m_fw_hdr_check
	testl	%eax, %eax
	js	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	1(%rax), %rbx
	cmpq	-80(%rbp), %rbx
	jb	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-80(%rbp), %rsi
	movl	$8, %edx
	callq	_i2400m_zrealloc_2x
	testl	%eax, %eax
	jns	LBB0_8
## %bb.6:
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	xorl	%r13d, %r13d
	testq	%r12, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_12
LBB0_11:
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%rax, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EBADF@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware %s: %zu B left at @%zx, not enough for BCF header\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"firmware %s: no usable headers found\n"

	.comm	_EBADF,4,2                      ## @EBADF
	.no_dead_strip	_i2400m_fw_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_fw_check
_i2400m_fw_check:                       ; @i2400m_fw_check
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_i2400m_dev
	mov	x20, x0
	str	xzr, [sp, #24]
	add	x27, x22, x21
	cmp	x27, x22
	b.ls	LBB0_11
; %bb.1:
	mov	x21, #0
	mov	x28, #0
	add	x23, x19, #8
	mov	x24, x22
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	str	x24, [x8, x28, lsl #3]
	mov	x28, x25
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, w26, sxtw #2
	add	x21, x21, #1
	cmp	x24, x27
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x27, x24
	sub	x25, x24, x22
	cmp	x8, #9
	b.lo	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24, #4]
	bl	_le32_to_cpu
	mov	x26, x0
	ldr	w0, [x24]
	bl	_le32_to_cpu
	cmp	x21, #0
	csel	w26, w0, w26, eq
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x25
	bl	_i2400m_fw_hdr_check
	tbnz	w0, #31, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x28, #1
	ldr	x8, [sp, #24]
	cmp	x25, x8
	b.lo	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x1, sp, #24
	mov	x0, x23
	mov	w2, #8
	bl	_i2400m_zrealloc_2x
	tbz	w0, #31, LBB0_2
	b	LBB0_12
LBB0_8:
	ldr	w2, [x19]
	stp	x8, x25, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_9:
	cbz	x21, LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_12
LBB0_11:
	ldr	w2, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _EBADF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware %s: %zu B left at @%zx, not enough for BCF header\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"firmware %s: no usable headers found\n"

	.comm	_EBADF,4,2                      ; @EBADF
	.no_dead_strip	_i2400m_fw_check
.subsections_via_symbols
