	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw210x_set_voltage
_dw210x_set_voltage:                    ## @dw210x_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
	leaq	_dw210x_set_voltage.command_off(%rip), %rax
	movq	%rax, -24(%rbp)
	movq	$2, -16(%rbp)
	movq	_DW2102_VOLTAGE_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_SEC_VOLTAGE_18@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_2
## %bb.1:
	leaq	_dw210x_set_voltage.command_18v(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_SEC_VOLTAGE_13@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	jne	LBB0_5
## %bb.3:
	leaq	_dw210x_set_voltage.command_13v(%rip), %rcx
LBB0_4:
	movq	%rcx, -24(%rbp)
LBB0_5:
	movq	(%rax), %rdi
	leaq	-24(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @dw210x_set_voltage.command_13v
_dw210x_set_voltage.command_13v:
	.long	0                               ## 0x0
	.long	1                               ## 0x1

	.p2align	2                               ## @dw210x_set_voltage.command_18v
_dw210x_set_voltage.command_18v:
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.zerofill __DATA,__bss,_dw210x_set_voltage.command_off,8,2 ## @dw210x_set_voltage.command_off
	.comm	_DW2102_VOLTAGE_CTRL,4,2        ## @DW2102_VOLTAGE_CTRL
	.comm	_SEC_VOLTAGE_18,4,2             ## @SEC_VOLTAGE_18
	.comm	_SEC_VOLTAGE_13,4,2             ## @SEC_VOLTAGE_13
	.no_dead_strip	_dw210x_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dw210x_set_voltage
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dw210x_set_voltage:                    ; @dw210x_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, _dw210x_set_voltage.command_off@PAGE
Lloh1:
	add	x8, x8, _dw210x_set_voltage.command_off@PAGEOFF
	str	x8, [sp, #8]
Lloh2:
	adrp	x8, lCPI0_0@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
Lloh4:
	adrp	x8, _DW2102_VOLTAGE_CTRL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DW2102_VOLTAGE_CTRL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _SEC_VOLTAGE_18@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SEC_VOLTAGE_18@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x9, _dw210x_set_voltage.command_18v@PAGE
Lloh11:
	add	x9, x9, _dw210x_set_voltage.command_18v@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh12:
	adrp	x9, _SEC_VOLTAGE_13@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SEC_VOLTAGE_13@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_5
; %bb.3:
Lloh15:
	adrp	x9, _dw210x_set_voltage.command_13v@PAGE
Lloh16:
	add	x9, x9, _dw210x_set_voltage.command_13v@PAGEOFF
LBB0_4:
	str	x9, [sp, #8]
LBB0_5:
	ldr	x0, [x8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @dw210x_set_voltage.command_13v
_dw210x_set_voltage.command_13v:
	.long	0                               ; 0x0
	.long	1                               ; 0x1

	.p2align	2                               ; @dw210x_set_voltage.command_18v
_dw210x_set_voltage.command_18v:
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.zerofill __DATA,__bss,_dw210x_set_voltage.command_off,8,2 ; @dw210x_set_voltage.command_off
	.comm	_DW2102_VOLTAGE_CTRL,4,2        ; @DW2102_VOLTAGE_CTRL
	.comm	_SEC_VOLTAGE_18,4,2             ; @SEC_VOLTAGE_18
	.comm	_SEC_VOLTAGE_13,4,2             ; @SEC_VOLTAGE_13
	.no_dead_strip	_dw210x_set_voltage
.subsections_via_symbols
