	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opera1_set_voltage
_opera1_set_voltage:                    ## @opera1_set_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	leaq	_opera1_set_voltage.command_13v(%rip), %rax
	movq	%rax, -32(%rbp)
	movl	$1, -24(%rbp)
	movq	_ADDR_B600_VOLTAGE_13V@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movl	$0, -16(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_SEC_VOLTAGE_18@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_ADDR_B601_VOLTAGE_18V@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -20(%rbp)
	leaq	_opera1_set_voltage.command_18v(%rip), %rcx
	movq	%rcx, -32(%rbp)
LBB0_2:
	movq	(%rax), %rdi
	leaq	-32(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-8(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_opera1_set_voltage.command_13v,4,2 ## @opera1_set_voltage.command_13v
	.section	__DATA,__data
	.p2align	2                               ## @opera1_set_voltage.command_18v
_opera1_set_voltage.command_18v:
	.long	1                               ## 0x1

	.comm	_ADDR_B600_VOLTAGE_13V,4,2      ## @ADDR_B600_VOLTAGE_13V
	.comm	_SEC_VOLTAGE_18,4,2             ## @SEC_VOLTAGE_18
	.comm	_ADDR_B601_VOLTAGE_18V,4,2      ## @ADDR_B601_VOLTAGE_18V
	.no_dead_strip	_opera1_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opera1_set_voltage
_opera1_set_voltage:                    ; @opera1_set_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _opera1_set_voltage.command_13v@PAGE
Lloh4:
	add	x8, x8, _opera1_set_voltage.command_13v@PAGEOFF
	str	x8, [sp]
	mov	w8, #1
Lloh5:
	adrp	x9, _ADDR_B600_VOLTAGE_13V@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ADDR_B600_VOLTAGE_13V@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
	str	wzr, [sp, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _SEC_VOLTAGE_18@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEC_VOLTAGE_18@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x9, _ADDR_B601_VOLTAGE_18V@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ADDR_B601_VOLTAGE_18V@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	str	w9, [sp, #12]
Lloh14:
	adrp	x9, _opera1_set_voltage.command_18v@PAGE
Lloh15:
	add	x9, x9, _opera1_set_voltage.command_18v@PAGEOFF
	str	x9, [sp]
LBB0_2:
	ldr	x0, [x8]
	mov	x1, sp
	mov	w2, #1
	bl	_i2c_transfer
	ldur	x8, [x29, #-8]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_opera1_set_voltage.command_13v,4,2 ; @opera1_set_voltage.command_13v
	.section	__DATA,__data
	.p2align	2                               ; @opera1_set_voltage.command_18v
_opera1_set_voltage.command_18v:
	.long	1                               ; 0x1

	.comm	_ADDR_B600_VOLTAGE_13V,4,2      ; @ADDR_B600_VOLTAGE_13V
	.comm	_SEC_VOLTAGE_18,4,2             ; @SEC_VOLTAGE_18
	.comm	_ADDR_B601_VOLTAGE_18V,4,2      ; @ADDR_B601_VOLTAGE_18V
	.no_dead_strip	_opera1_set_voltage
.subsections_via_symbols
