	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24190_charger_set_charge_type
_bq24190_charger_set_charge_type:       ## @bq24190_charger_set_charge_type
	.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, %r14
	movl	(%rsi), %eax
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_8
## %bb.4:
	movl	$1, %ebx
	xorl	%r8d, %r8d
	jmp	LBB0_5
LBB0_1:
	movl	$1, %r8d
LBB0_5:
	movq	_BQ24190_REG_CCC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_bq24190_write_mask
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	_BQ24190_REG_CTTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ24190_REG_CTTC_EN_TERM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ24190_REG_CTTC_EN_TERM_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	callq	_bq24190_write_mask
	movl	$1, %ebx
	testl	%eax, %eax
	js	LBB0_9
LBB0_7:
	movq	_BQ24190_REG_POC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BQ24190_REG_POC_CHG_CONFIG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BQ24190_REG_POC_CHG_CONFIG_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_bq24190_write_mask             ## TAILCALL
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BQ24190_REG_CCC,4,2            ## @BQ24190_REG_CCC
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_MASK,4,2 ## @BQ24190_REG_CCC_FORCE_20PCT_MASK
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT,4,2 ## @BQ24190_REG_CCC_FORCE_20PCT_SHIFT
	.comm	_BQ24190_REG_CTTC,4,2           ## @BQ24190_REG_CTTC
	.comm	_BQ24190_REG_CTTC_EN_TERM_MASK,4,2 ## @BQ24190_REG_CTTC_EN_TERM_MASK
	.comm	_BQ24190_REG_CTTC_EN_TERM_SHIFT,4,2 ## @BQ24190_REG_CTTC_EN_TERM_SHIFT
	.comm	_BQ24190_REG_POC,4,2            ## @BQ24190_REG_POC
	.comm	_BQ24190_REG_POC_CHG_CONFIG_MASK,4,2 ## @BQ24190_REG_POC_CHG_CONFIG_MASK
	.comm	_BQ24190_REG_POC_CHG_CONFIG_SHIFT,4,2 ## @BQ24190_REG_POC_CHG_CONFIG_SHIFT
	.no_dead_strip	_bq24190_charger_set_charge_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq24190_charger_set_charge_type
_bq24190_charger_set_charge_type:       ; @bq24190_charger_set_charge_type
	.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
	mov	w20, #0
	ldr	w8, [x1]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_9
; %bb.3:
	mov	w4, #0
	mov	w20, #1
	b	LBB0_5
LBB0_4:
	mov	w4, #1
LBB0_5:
Lloh0:
	adrp	x8, _BQ24190_REG_CCC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BQ24190_REG_CCC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BQ24190_REG_CCC_FORCE_20PCT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BQ24190_REG_CCC_FORCE_20PCT_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_bq24190_write_mask
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh9:
	adrp	x8, _BQ24190_REG_CTTC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BQ24190_REG_CTTC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BQ24190_REG_CTTC_EN_TERM_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BQ24190_REG_CTTC_EN_TERM_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _BQ24190_REG_CTTC_EN_TERM_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BQ24190_REG_CTTC_EN_TERM_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x20
	bl	_bq24190_write_mask
	tbnz	w0, #31, LBB0_10
; %bb.7:
	mov	w20, #1
LBB0_8:
Lloh18:
	adrp	x8, _BQ24190_REG_POC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BQ24190_REG_POC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _BQ24190_REG_POC_CHG_CONFIG_MASK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BQ24190_REG_POC_CHG_CONFIG_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _BQ24190_REG_POC_CHG_CONFIG_SHIFT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BQ24190_REG_POC_CHG_CONFIG_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x4, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bq24190_write_mask
LBB0_9:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BQ24190_REG_CCC,4,2            ; @BQ24190_REG_CCC
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_MASK,4,2 ; @BQ24190_REG_CCC_FORCE_20PCT_MASK
	.comm	_BQ24190_REG_CCC_FORCE_20PCT_SHIFT,4,2 ; @BQ24190_REG_CCC_FORCE_20PCT_SHIFT
	.comm	_BQ24190_REG_CTTC,4,2           ; @BQ24190_REG_CTTC
	.comm	_BQ24190_REG_CTTC_EN_TERM_MASK,4,2 ; @BQ24190_REG_CTTC_EN_TERM_MASK
	.comm	_BQ24190_REG_CTTC_EN_TERM_SHIFT,4,2 ; @BQ24190_REG_CTTC_EN_TERM_SHIFT
	.comm	_BQ24190_REG_POC,4,2            ; @BQ24190_REG_POC
	.comm	_BQ24190_REG_POC_CHG_CONFIG_MASK,4,2 ; @BQ24190_REG_POC_CHG_CONFIG_MASK
	.comm	_BQ24190_REG_POC_CHG_CONFIG_SHIFT,4,2 ; @BQ24190_REG_POC_CHG_CONFIG_SHIFT
	.no_dead_strip	_bq24190_charger_set_charge_type
.subsections_via_symbols
