	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mn88473_init
_mn88473_init:                          ## @mn88473_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	%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
	movq	%rdi, %rbx
	movq	96(%rdi), %r12
	movq	%r12, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	_MN88473_FIRMWARE@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rdx
	movl	$245, %esi
	callq	_regmap_read
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_1
LBB0_4:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_20:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	testb	$1, -44(%rbp)
	jne	LBB0_2
LBB0_17:
	movq	8(%r15), %rax
	movl	8(%rax), %edi
	movl	$9, %esi
	movl	$8, %edx
	callq	_regmap_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.18:
	movq	8(%r15), %rax
	movl	8(%rax), %edi
	movl	$8, %esi
	movl	$29, %edx
	callq	_regmap_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.19:
	movl	$1, 4(%r15)
	movl	$1, 80(%rbx)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	88(%rbx), %rdx
	movq	%rcx, (%rdx)
	movl	$1, 64(%rbx)
	movq	(%rax), %rcx
	movq	72(%rbx), %rdx
	movq	%rcx, (%rdx)
	movl	$1, 48(%rbx)
	movq	(%rax), %rcx
	movq	56(%rbx), %rdx
	movq	%rcx, (%rdx)
	movl	$1, 32(%rbx)
	movq	(%rax), %rcx
	movq	40(%rbx), %rdx
	movq	%rcx, (%rdx)
	movl	$1, 16(%rbx)
	movq	(%rax), %rcx
	movq	24(%rbx), %rdx
	movq	%rcx, (%rdx)
	movl	$1, (%rbx)
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_2:
	leaq	-56(%rbp), %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_dev_info
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	$245, %esi
	movl	$3, %edx
	callq	_regmap_write
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_6
LBB0_10:
	movq	-56(%rbp), %rdi
	callq	_release_firmware
	jmp	LBB0_4
LBB0_6:
	movq	%rbx, %r13
	movq	-56(%rbp), %rdi
	movl	(%rdi), %ebx
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.7:
	movl	(%r15), %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	decl	%edi
	movl	%ebx, %esi
	callq	_min
	movq	8(%r15), %rcx
	movl	(%rcx), %edi
	movq	-56(%rbp), %rcx
	movslq	(%rcx), %rdx
	movslq	%ebx, %rsi
	subq	%rsi, %rdx
	shlq	$2, %rdx
	addq	8(%rcx), %rdx
	movl	$246, %esi
	movl	%eax, %ecx
	callq	_regmap_bulk_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r15), %edi
	subl	%edi, %ebx
	incl	%ebx
	testl	%ebx, %ebx
	jg	LBB0_8
## %bb.12:
	movq	-56(%rbp), %rdi
LBB0_13:
	callq	_release_firmware
	movq	8(%r15), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rdx
	movl	$248, %esi
	callq	_regmap_read
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.14:
	testb	$16, -44(%rbp)
	jne	LBB0_15
## %bb.16:
	movq	%r13, %rbx
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	$245, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_17
LBB0_9:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_MN88473_FIRMWARE,8,3           ## @MN88473_FIRMWARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"firmware file '%s' not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"downloading firmware from file '%s'\n"

L_.str.3:                               ## @.str.3
	.asciz	"firmware download failed %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"firmware parity check failed\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
L_.str.5:                               ## @.str.5
	.asciz	"failed=%d\n"

	.no_dead_strip	_mn88473_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mn88473_init
_mn88473_init:                          ; @mn88473_init
	.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	x20, x0
	ldr	x19, [x0, #96]
	mov	x0, x19
	bl	_i2c_get_clientdata
	mov	x21, x0
Lloh0:
	adrp	x8, _MN88473_FIRMWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MN88473_FIRMWARE@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	add	x2, sp, #28
	mov	w1, #245
	bl	_regmap_read
	mov	x22, x0
	cbz	w0, LBB0_3
LBB0_1:
	str	x22, [sp]
Lloh5:
	adrp	x1, l_.str.5@PAGE
Lloh6:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_2:
	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
LBB0_3:
	ldrb	w8, [sp, #28]
	tbnz	w8, #0, LBB0_7
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #8]
	mov	w1, #9
	mov	w2, #8
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	x8, [x21, #8]
	ldr	w0, [x8, #8]
	mov	w1, #8
	mov	w2, #29
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.6:
Lloh7:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x20, #88]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x20, #72]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x20, #56]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x20, #40]
	str	x9, [x10]
	ldr	x9, [x8]
	ldr	x10, [x20, #24]
	str	x9, [x10]
	mov	w9, #1
	str	w9, [x21, #4]
	str	w9, [x20, #80]
	str	w9, [x20, #64]
	str	w9, [x20, #48]
	str	w9, [x20, #32]
	str	w9, [x20, #16]
	str	w9, [x20]
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	str	x8, [x9]
	b	LBB0_2
LBB0_7:
	add	x0, sp, #16
	mov	x1, x23
	mov	x2, x19
	bl	_request_firmware
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
	str	x23, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_1
LBB0_9:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_info
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	mov	w1, #245
	mov	w2, #3
	bl	_regmap_write
	mov	x22, x0
	cbz	w0, LBB0_11
LBB0_10:
	ldr	x0, [sp, #16]
	bl	_release_firmware
	b	LBB0_1
LBB0_11:
	ldr	x0, [sp, #16]
	ldr	w22, [x0]
	cmp	w22, #1
	b.lt	LBB0_16
; %bb.12:
	ldr	w8, [x21]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	w0, w8, #1
	mov	x1, x22
	bl	_min
	mov	x3, x0
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	x8, [sp, #16]
	ldr	x9, [x8, #8]
	ldr	w8, [x8]
	sub	w8, w8, w22
	add	x2, x9, w8, sxtw #2
	mov	w1, #246
	bl	_regmap_bulk_write
	cbnz	w0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x21]
	sub	w9, w22, w8
	add	w22, w9, #1
	cmp	w22, #0
	b.gt	LBB0_13
; %bb.15:
	ldr	x0, [sp, #16]
LBB0_16:
	bl	_release_firmware
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	add	x2, sp, #28
	mov	w1, #248
	bl	_regmap_read
	mov	x22, x0
	cbnz	w0, LBB0_1
; %bb.17:
	ldrb	w8, [sp, #28]
	tbnz	w8, #4, LBB0_20
; %bb.18:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	mov	w1, #245
	mov	w2, #0
	bl	_regmap_write
	mov	x22, x0
	cbnz	w0, LBB0_1
	b	LBB0_4
LBB0_19:
	mov	x23, x0
	str	x23, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x22, x23
	b	LBB0_10
LBB0_20:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_1
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MN88473_FIRMWARE,8,3           ; @MN88473_FIRMWARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"firmware file '%s' not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"downloading firmware from file '%s'\n"

l_.str.3:                               ; @.str.3
	.asciz	"firmware download failed %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"firmware parity check failed\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
l_.str.5:                               ; @.str.5
	.asciz	"failed=%d\n"

	.no_dead_strip	_mn88473_init
.subsections_via_symbols
