	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq2415x_get_current_limit
_bq2415x_get_current_limit:             ## @bq2415x_get_current_limit
	.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_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ2415X_MASK_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ2415X_SHIFT_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_bq2415x_i2c_read_mask
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	cmpl	$4, %eax
	jae	LBB0_2
## %bb.3:
	cltq
	leaq	L_switch.table.bq2415x_get_current_limit(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
LBB0_4:
	popq	%rbp
	retq
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BQ2415X_REG_CONTROL,4,2        ## @BQ2415X_REG_CONTROL
	.comm	_BQ2415X_MASK_LIMIT,4,2         ## @BQ2415X_MASK_LIMIT
	.comm	_BQ2415X_SHIFT_LIMIT,4,2        ## @BQ2415X_SHIFT_LIMIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bq2415x_get_current_limit
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.bq2415x_get_current_limit
L_switch.table.bq2415x_get_current_limit:
	.long	100                             ## 0x64
	.long	500                             ## 0x1f4
	.long	800                             ## 0x320
	.long	1800                            ## 0x708

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq2415x_get_current_limit
_bq2415x_get_current_limit:             ; @bq2415x_get_current_limit
	.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_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BQ2415X_REG_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BQ2415X_MASK_LIMIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BQ2415X_MASK_LIMIT@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _BQ2415X_SHIFT_LIMIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BQ2415X_SHIFT_LIMIT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_bq2415x_i2c_read_mask
	tbnz	w0, #31, LBB0_3
; %bb.1:
	cmp	w0, #4
	b.hs	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, l_switch.table.bq2415x_get_current_limit@PAGE
Lloh10:
	add	x8, x8, l_switch.table.bq2415x_get_current_limit@PAGEOFF
	ldr	w0, [x8, w0, sxtw #2]
LBB0_3:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BQ2415X_REG_CONTROL,4,2        ; @BQ2415X_REG_CONTROL
	.comm	_BQ2415X_MASK_LIMIT,4,2         ; @BQ2415X_MASK_LIMIT
	.comm	_BQ2415X_SHIFT_LIMIT,4,2        ; @BQ2415X_SHIFT_LIMIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bq2415x_get_current_limit
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.bq2415x_get_current_limit
l_switch.table.bq2415x_get_current_limit:
	.long	100                             ; 0x64
	.long	500                             ; 0x1f4
	.long	800                             ; 0x320
	.long	1800                            ; 0x708

.subsections_via_symbols
