	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function raydium_i2c_power_on
_raydium_i2c_power_on:                  ## @raydium_i2c_power_on
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	$1, %esi
	callq	_gpiod_set_value_cansleep
	movl	16(%rbx), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	movl	20(%rbx), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	callq	_regulator_disable
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movl	%r14d, %edx
	callq	_dev_err
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	_RM_POWERON_DELAY_USEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	movl	(%rbx), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_gpiod_set_value_cansleep
	movq	_RM_RESET_DELAY_MSEC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to enable avdd regulator: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to enable vccio regulator: %d\n"

	.comm	_RM_POWERON_DELAY_USEC,4,2      ## @RM_POWERON_DELAY_USEC
	.comm	_RM_RESET_DELAY_MSEC,4,2        ## @RM_RESET_DELAY_MSEC
	.no_dead_strip	_raydium_i2c_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function raydium_i2c_power_on
_raydium_i2c_power_on:                  ; @raydium_i2c_power_on
	.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
	mov	x19, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_3
; %bb.1:
	mov	w1, #1
	bl	_gpiod_set_value_cansleep
	ldr	w0, [x19, #16]
	bl	_regulator_enable
	cbz	w0, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19, #20]
	bl	_regulator_enable
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x19, #16]
	bl	_regulator_disable
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x2, x20
	bl	_dev_err
	ldr	w0, [x19]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh4:
	adrp	x8, _RM_POWERON_DELAY_USEC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RM_POWERON_DELAY_USEC@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_udelay
	ldr	w0, [x19]
	mov	w1, #0
	bl	_gpiod_set_value_cansleep
Lloh7:
	adrp	x8, _RM_RESET_DELAY_MSEC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RM_RESET_DELAY_MSEC@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_msleep
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to enable avdd regulator: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to enable vccio regulator: %d\n"

	.comm	_RM_POWERON_DELAY_USEC,4,2      ; @RM_POWERON_DELAY_USEC
	.comm	_RM_RESET_DELAY_MSEC,4,2        ; @RM_RESET_DELAY_MSEC
	.no_dead_strip	_raydium_i2c_power_on
.subsections_via_symbols
