	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_i2400m_dev
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_i2400m_boot_is_signed
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_d_printf
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2400m_dnload_init_signed
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.2:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_8
## %bb.3:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_d_printf
	movq	%r15, %rdi
	callq	_i2400m_dnload_init_nonsigned
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.5:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_8
## %bb.6:
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"signed boot\n"

	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
L_.str.1:                               ## @.str.1
	.asciz	"firmware %s: signed boot download initialization failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"non-signed boot\n"

L_.str.3:                               ## @.str.3
	.asciz	"firmware %s: non-signed 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	x21, x1
	mov	x20, x0
	bl	_i2400m_dev
	mov	x19, x0
	mov	x0, x20
	bl	_i2400m_boot_is_signed
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	bl	_d_printf
	mov	x0, x20
	mov	x1, x21
	bl	_i2400m_dnload_init_signed
	mov	x21, x0
	tbz	w0, #31, LBB0_8
; %bb.2:
Lloh2:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w21, w8
	b.eq	LBB0_8
; %bb.3:
	ldr	w2, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	bl	_d_printf
	mov	x0, x20
	bl	_i2400m_dnload_init_nonsigned
	mov	x21, x0
	tbz	w0, #31, LBB0_8
; %bb.5:
Lloh9:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w21, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w2, [x20]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x3, x21
	bl	_dev_err
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"signed boot\n"

	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
l_.str.1:                               ; @.str.1
	.asciz	"firmware %s: signed boot download initialization failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"non-signed boot\n"

l_.str.3:                               ; @.str.3
	.asciz	"firmware %s: non-signed download initialization failed: %d\n"

	.no_dead_strip	_i2400m_dnload_init
.subsections_via_symbols
