	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq2415x_get_battery_regulation_voltage
_bq2415x_get_battery_regulation_voltage: ## @bq2415x_get_battery_regulation_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BQ2415X_REG_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ2415X_MASK_VO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ2415X_SHIFT_VO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_bq2415x_i2c_read_mask
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	leal	(%rax,%rax,4), %ecx
	leal	3500(,%rcx,4), %ecx
	cmovnsl	%ecx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BQ2415X_REG_VOLTAGE,4,2        ## @BQ2415X_REG_VOLTAGE
	.comm	_BQ2415X_MASK_VO,4,2            ## @BQ2415X_MASK_VO
	.comm	_BQ2415X_SHIFT_VO,4,2           ## @BQ2415X_SHIFT_VO
	.no_dead_strip	_bq2415x_get_battery_regulation_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq2415x_get_battery_regulation_voltage
_bq2415x_get_battery_regulation_voltage: ; @bq2415x_get_battery_regulation_voltage
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _BQ2415X_REG_VOLTAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BQ2415X_REG_VOLTAGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BQ2415X_MASK_VO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BQ2415X_MASK_VO@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _BQ2415X_SHIFT_VO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BQ2415X_SHIFT_VO@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_bq2415x_i2c_read_mask
	mov	w8, #20
	mul	w8, w0, w8
	add	w8, w8, #3500
	cmp	w0, #0
	csel	w0, w0, w8, lt
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ2415X_REG_VOLTAGE,4,2        ; @BQ2415X_REG_VOLTAGE
	.comm	_BQ2415X_MASK_VO,4,2            ; @BQ2415X_MASK_VO
	.comm	_BQ2415X_SHIFT_VO,4,2           ; @BQ2415X_SHIFT_VO
	.no_dead_strip	_bq2415x_get_battery_regulation_voltage
.subsections_via_symbols
