	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_dev_bootstrap           ## -- Begin function i2400m_dev_bootstrap
	.p2align	4, 0x90
_i2400m_dev_bootstrap:                  ## @i2400m_dev_bootstrap
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r14
	callq	_i2400m_dev
	movq	%rax, %r12
	leaq	L_.str(%rip), %rdx
	movl	$5, %edi
	movq	%rax, %rsi
	movq	%r14, %rcx
	callq	_d_fnstart
	movq	(%r14), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movl	$8, %r15d
	leaq	-48(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%r15), %rbx
	addq	$8, %r15
	testq	%rbx, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_7:
	movq	-48(%rbp), %rax
	movq	8(%rax), %r15
	movq	%rbx, 8(%r14)
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2400m_fw_check
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_i2400m_fw_dnload
LBB0_9:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_release_firmware
LBB0_10:
	leaq	L_.str.3(%rip), %rdx
	movl	$5, %edi
	movq	%r12, %rsi
	movq	%r14, %rcx
	movl	%ebx, %r8d
	callq	_d_fnend
	movl	%ebx, %eax
	addq	$24, %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	"(i2400m %p)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Could not find a usable firmware image\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"fw %s: cannot load file: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"(i2400m %p) = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2400m_dev_bootstrap           ; -- Begin function i2400m_dev_bootstrap
	.p2align	2
_i2400m_dev_bootstrap:                  ; @i2400m_dev_bootstrap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	bl	_i2400m_dev
	mov	x20, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #5
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnstart
	ldr	x8, [x19]
	ldr	x22, [x8]
	cbz	x22, LBB0_6
; %bb.1:
	mov	w24, #8
Lloh2:
	adrp	x23, l_.str.2@PAGE
Lloh3:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19]
	ldr	x22, [x8, x24]
	add	x24, x24, #8
	cbz	x22, LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	mov	x1, x22
	mov	x2, x20
	bl	_request_firmware
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	w0, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	stp	x22, x0, [sp]
	mov	x0, x20
	mov	x1, x23
	bl	_dev_err
	b	LBB0_2
LBB0_6:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_7:
	ldr	x8, [sp, #24]
	ldr	x23, [x8, #8]
	str	x22, [x19, #8]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_i2400m_fw_check
	tbnz	w0, #31, LBB0_9
; %bb.8:
	ldr	x8, [sp, #24]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x3, x21
	bl	_i2400m_fw_dnload
LBB0_9:
	mov	x22, x0
	ldr	x0, [sp, #24]
	bl	_release_firmware
LBB0_10:
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #5
	mov	x1, x20
	mov	x3, x19
	mov	x4, x22
	bl	_d_fnend
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(i2400m %p)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Could not find a usable firmware image\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"fw %s: cannot load file: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"(i2400m %p) = %d\n"

.subsections_via_symbols
