	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2400m_dnload_init
_i2400m_dnload_init:                    ## @i2400m_dnload_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_i2400m_dev
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	cmpq	$0, (%r12)
	je	LBB0_1
## %bb.5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2400m_dnload_init_signed
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_9
## %bb.6:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %r15d
	je	LBB0_9
## %bb.7:
	movl	8(%r12), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_dev_err
	jmp	LBB0_9
LBB0_1:
	movq	_I2400M_BCF_MOD_ID_POKES@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	callq	_i2400m_dnload_init_nonsigned
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_9
## %bb.3:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %r15d
	je	LBB0_9
## %bb.4:
	movl	8(%r12), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_I2400M_BCF_MOD_ID_POKES,4,2    ## @I2400M_BCF_MOD_ID_POKES
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fw %s: non-signed download initialization failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"fw %s: signed boot download initialization failed: %d\n"

	.no_dead_strip	_i2400m_dnload_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2400m_dnload_init
_i2400m_dnload_init:                    ; @i2400m_dnload_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_i2400m_dev
	mov	x20, x0
	ldr	w0, [x19]
	bl	_le32_to_cpu
	ldr	x8, [x21]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_i2400m_dnload_init_signed
	mov	x19, x0
	tbz	w0, #31, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w19, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	w2, [x21, #8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x20
	mov	x3, x19
	bl	_dev_err
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _I2400M_BCF_MOD_ID_POKES@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2400M_BCF_MOD_ID_POKES@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:
	mov	w19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x21
	bl	_i2400m_dnload_init_nonsigned
	mov	x19, x0
	tbz	w0, #31, LBB0_7
; %bb.9:
Lloh8:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w19, w8
	b.eq	LBB0_7
; %bb.10:
	ldr	w2, [x21, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_I2400M_BCF_MOD_ID_POKES,4,2    ; @I2400M_BCF_MOD_ID_POKES
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fw %s: non-signed download initialization failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"fw %s: signed boot download initialization failed: %d\n"

	.no_dead_strip	_i2400m_dnload_init
.subsections_via_symbols
