	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3288_iodomain_init
_rk3288_iodomain_init:                  ## @rk3288_iodomain_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	movq	_RK3288_SOC_FLASH_SUPPLY_NUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_RK3288_SOC_CON2_FLASH0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	shll	$16, %edx
	orl	%eax, %edx
	movl	4(%rdi), %edi
	movq	_RK3288_SOC_CON2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RK3288_SOC_FLASH_SUPPLY_NUM,8,3 ## @RK3288_SOC_FLASH_SUPPLY_NUM
	.comm	_RK3288_SOC_CON2_FLASH0,4,2     ## @RK3288_SOC_CON2_FLASH0
	.comm	_RK3288_SOC_CON2,4,2            ## @RK3288_SOC_CON2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't update flash0 ctrl\n"

	.no_dead_strip	_rk3288_iodomain_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3288_iodomain_init
_rk3288_iodomain_init:                  ; @rk3288_iodomain_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _RK3288_SOC_FLASH_SUPPLY_NUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RK3288_SOC_FLASH_SUPPLY_NUM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _RK3288_SOC_CON2_FLASH0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RK3288_SOC_CON2_FLASH0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w8, lsl #16
	ldr	w0, [x0, #4]
Lloh6:
	adrp	x8, _RK3288_SOC_CON2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RK3288_SOC_CON2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_regmap_write
	tbnz	w0, #31, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RK3288_SOC_FLASH_SUPPLY_NUM,8,3 ; @RK3288_SOC_FLASH_SUPPLY_NUM
	.comm	_RK3288_SOC_CON2_FLASH0,4,2     ; @RK3288_SOC_CON2_FLASH0
	.comm	_RK3288_SOC_CON2,4,2            ; @RK3288_SOC_CON2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't update flash0 ctrl\n"

	.no_dead_strip	_rk3288_iodomain_init
.subsections_via_symbols
