	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mn88472_init
_mn88472_init:                          ## @mn88472_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	_MN88472_FIRMWARE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	movl	$5, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	movl	$11, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	movl	$12, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %rdx
	movl	$245, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_31:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testb	$1, -36(%rbp)
	jne	LBB0_5
LBB0_20:
	movl	4(%r14), %eax
	cmpl	$129, %eax
	je	LBB0_21
## %bb.22:
	cmpl	$130, %eax
	jne	LBB0_32
## %bb.23:
	xorl	%edx, %edx
	jmp	LBB0_24
LBB0_5:
	leaq	-48(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_dev_info
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	$245, %esi
	movl	$3, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	-48(%rbp), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.10:
	movl	(%r14), %edi
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	decl	%edi
	movl	%r12d, %esi
	callq	_min
	movq	16(%r14), %rcx
	movl	(%rcx), %edi
	movq	-48(%rbp), %rcx
	movslq	(%rcx), %rdx
	movslq	%r12d, %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_12
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r14), %edi
	subl	%edi, %r12d
	incl	%r12d
	testl	%r12d, %r12d
	jg	LBB0_11
LBB0_15:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %rdx
	movl	$248, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.16:
	testb	$16, -36(%rbp)
	jne	LBB0_17
## %bb.18:
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	$245, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.19:
	movq	-48(%rbp), %rdi
	callq	_release_firmware
	jmp	LBB0_20
LBB0_21:
	movl	$29, %edx
LBB0_24:
	movl	%edx, -36(%rbp)
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	movl	$8, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.25:
	movl	8(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_26
## %bb.27:
	cmpl	$131, %eax
	jne	LBB0_32
## %bb.28:
	movl	$225, %edx
	jmp	LBB0_29
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_26:
	movl	$227, %edx
LBB0_29:
	movl	%edx, -36(%rbp)
	movq	16(%r14), %rax
	movl	(%rax), %edi
	movl	$217, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.30:
	movl	$1, 12(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_31
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movq	-48(%rbp), %rdi
	callq	_release_firmware
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MN88472_FIRMWARE,8,3           ## @MN88472_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"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.4:                               ## @.str.4
	.asciz	"firmware did not run\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed=%d\n"

	.no_dead_strip	_mn88472_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mn88472_init
_mn88472_init:                          ; @mn88472_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x19, [x0]
	mov	x0, x19
	bl	_i2c_get_clientdata
	mov	x20, x0
Lloh0:
	adrp	x8, _MN88472_FIRMWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MN88472_FIRMWARE@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #8]
	mov	w1, #5
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #8]
	mov	w1, #11
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #8]
	mov	w1, #12
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	add	x2, sp, #28
	mov	w1, #245
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_4:
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.5@PAGE
Lloh6:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldrb	w8, [sp, #28]
	tbnz	w8, #0, LBB0_10
LBB0_7:
	ldr	w8, [x20, #4]
	cmp	w8, #129
	b.eq	LBB0_21
; %bb.8:
	cmp	w8, #130
	b.ne	LBB0_26
; %bb.9:
	mov	w2, #0
	b	LBB0_22
LBB0_10:
	add	x0, sp, #16
	mov	x1, x22
	mov	x2, x19
	bl	_request_firmware
	cbz	w0, LBB0_12
; %bb.11:
	mov	x21, x0
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
LBB0_12:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_info
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	mov	w1, #245
	mov	w2, #3
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_32
; %bb.13:
	ldr	x8, [sp, #16]
	ldr	w21, [x8]
	cmp	w21, #1
	b.lt	LBB0_17
; %bb.14:
	ldr	w8, [x20]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	w0, w8, #1
	mov	x1, x21
	bl	_min
	mov	x3, x0
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	ldr	x8, [sp, #16]
	ldr	x9, [x8, #8]
	ldr	w8, [x8]
	sub	w8, w8, w21
	add	x2, x9, w8, sxtw #2
	mov	w1, #246
	bl	_regmap_bulk_write
	cbnz	w0, LBB0_30
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x20]
	sub	w9, w21, w8
	add	w21, w9, #1
	cmp	w21, #0
	b.gt	LBB0_15
LBB0_17:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	add	x2, sp, #28
	mov	w1, #248
	bl	_regmap_read
	mov	x21, x0
	cbnz	w0, LBB0_32
; %bb.18:
	ldrb	w8, [sp, #28]
	tbnz	w8, #4, LBB0_31
; %bb.19:
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	mov	w1, #245
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_32
; %bb.20:
	ldr	x0, [sp, #16]
	bl	_release_firmware
	b	LBB0_7
LBB0_21:
	mov	w2, #29
LBB0_22:
	str	w2, [sp, #28]
	ldr	x8, [x20, #16]
	ldr	w0, [x8, #8]
	mov	w1, #8
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.23:
	ldr	w8, [x20, #8]
	cmp	w8, #128
	b.eq	LBB0_27
; %bb.24:
	cmp	w8, #131
	b.ne	LBB0_26
; %bb.25:
	mov	w2, #225
	b	LBB0_28
LBB0_26:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_27:
	mov	w2, #227
LBB0_28:
	str	w2, [sp, #28]
	ldr	x8, [x20, #16]
	ldr	w0, [x8]
	mov	w1, #217
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.29:
	mov	w8, #1
	str	w8, [x20, #12]
	b	LBB0_5
LBB0_30:
	mov	x22, x0
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
	b	LBB0_32
LBB0_31:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_32:
	ldr	x0, [sp, #16]
	bl	_release_firmware
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MN88472_FIRMWARE,8,3           ; @MN88472_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"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.4:                               ; @.str.4
	.asciz	"firmware did not run\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed=%d\n"

	.no_dead_strip	_mn88472_init
.subsections_via_symbols
