	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mip4_get_fw_version
_mip4_get_fw_version:                   ## @mip4_get_fw_version
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_MIP4_R0_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_MIP4_R1_INFO_VERSION_BOOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rsi
	leaq	-48(%rbp), %rcx
	movl	$8, %edx
	movl	$16, %r8d
	callq	_mip4_i2c_xfer
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_3
LBB0_2:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mip4_parse_fw_version
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MIP4_R0_INFO,4,2               ## @MIP4_R0_INFO
	.comm	_MIP4_R1_INFO_VERSION_BOOT,4,2  ## @MIP4_R1_INFO_VERSION_BOOT
	.no_dead_strip	_mip4_get_fw_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mip4_get_fw_version
_mip4_get_fw_version:                   ; @mip4_get_fw_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _MIP4_R0_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIP4_R0_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _MIP4_R1_INFO_VERSION_BOOT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MIP4_R1_INFO_VERSION_BOOT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
	add	x1, sp, #16
	mov	x3, sp
	mov	w2, #8
	mov	w4, #16
	bl	_mip4_i2c_xfer
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #255
	mov	w2, #4
	bl	_memset
	b	LBB0_3
LBB0_2:
	mov	x0, sp
	mov	x1, x19
	bl	_mip4_parse_fw_version
LBB0_3:
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MIP4_R0_INFO,4,2               ; @MIP4_R0_INFO
	.comm	_MIP4_R1_INFO_VERSION_BOOT,4,2  ; @MIP4_R1_INFO_VERSION_BOOT
	.no_dead_strip	_mip4_get_fw_version
.subsections_via_symbols
