	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_fw_boot
_dib9000_fw_boot:                       ## @dib9000_fw_boot
	.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	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$2, %ebx
	movl	$1225, %esi                     ## imm = 0x4C9
	movl	$2, %edx
	callq	_dib9000_write_word
	movq	%r12, %rdi
	movl	$1226, %esi                     ## imm = 0x4CA
	movl	$5, %edx
	callq	_dib9000_write_word
	movq	%r12, %rdi
	movl	$1542, %esi                     ## imm = 0x606
	movl	$1, %edx
	callq	_dib9000_write_word
	movq	%r12, %rdi
	movl	$1074, %esi                     ## imm = 0x432
	xorl	%edx, %edx
	callq	_dib9000_write_word
	movq	%r12, %rdi
	movl	$1075, %esi                     ## imm = 0x433
	xorl	%edx, %edx
	callq	_dib9000_write_word
	movq	%r12, %rdi
	movl	$1237, %esi                     ## imm = 0x4D5
	xorl	%edx, %edx
	callq	_dib9000_write_word
	testq	%r15, %r15
	movl	$15, %edx
	cmovnel	%ebx, %edx
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_dib9000_write_word
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	movl	$1040, %esi                     ## imm = 0x410
	movl	$2, %edx
	callq	_dib9000_write_word
LBB0_2:
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$4660, %edx                     ## imm = 0x1234
	movq	%r15, %rcx
	movl	%r13d, %r8d
	callq	_dib9000_firmware_download
LBB0_4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movl	$1, %esi
	movl	$4660, %edx                     ## imm = 0x1234
	movq	%r14, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_dib9000_firmware_download
LBB0_6:
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	callq	_dib9000_write_word
LBB0_8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movl	$1040, %esi                     ## imm = 0x410
	xorl	%edx, %edx
	callq	_dib9000_write_word
LBB0_10:
	testq	%r15, %r15
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dib9000_mbx_host_init
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_13:
	testq	%r14, %r14
	je	LBB0_17
## %bb.14:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_dib9000_mbx_host_init
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_17:
	movl	$100, %edi
	callq	_msleep
	movl	$1, (%r12)
	movq	%r12, %rdi
	callq	_dib9000_risc_check_version
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_19:
	movl	$255, 4(%r12)
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_dib9000_fw_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_fw_boot
_dib9000_fw_boot:                       ; @dib9000_fw_boot
	.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	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
	mov	w24, #2
	mov	w1, #1225
	mov	w2, #2
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #1226
	mov	w2, #5
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #1542
	mov	w2, #1
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #1074
	mov	w2, #0
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #1075
	mov	w2, #0
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #1237
	mov	w2, #0
	bl	_dib9000_write_word
	cmp	x21, #0
	mov	w8, #15
	csel	w2, w8, w24, eq
	mov	x0, x19
	mov	w1, #1024
	bl	_dib9000_write_word
	cbz	x20, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1040
	mov	w2, #2
	bl	_dib9000_write_word
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4660
	mov	x3, x21
	mov	x4, x23
	bl	_dib9000_firmware_download
LBB0_4:
	cbz	x20, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4660
	mov	x3, x20
	mov	x4, x22
	bl	_dib9000_firmware_download
LBB0_6:
	cbz	x21, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #1024
	mov	w2, #0
	bl	_dib9000_write_word
LBB0_8:
	cbz	x20, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	w1, #1040
	mov	w2, #0
	bl	_dib9000_write_word
LBB0_10:
	cbz	x21, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #0
	bl	_dib9000_mbx_host_init
	cbnz	x0, LBB0_14
LBB0_12:
	cbz	x20, LBB0_15
; %bb.13:
	mov	x0, x19
	mov	w1, #1
	bl	_dib9000_mbx_host_init
	cbz	x0, LBB0_15
LBB0_14:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	mov	w0, #100
	bl	_msleep
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_dib9000_risc_check_version
	cbz	x0, LBB0_19
; %bb.16:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
LBB0_19:
	mov	w8, #255
	str	w8, [x19, #4]
	b	LBB0_18
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_dib9000_fw_boot
.subsections_via_symbols
