	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9150_fg_soc_event_config
_da9150_fg_soc_event_config:            ## @da9150_fg_soc_event_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DA9150_QIF_SOC_PCT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DA9150_QIF_SOC_PCT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_da9150_fg_read_attr_sync
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_2
## %bb.1:
	movq	_DA9150_QIF_DISCHARGE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DA9150_QIF_DISCHARGE_LIMIT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incl	%ecx
	jmp	LBB0_5
LBB0_2:
	movl	4(%rbx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_4
## %bb.3:
	movq	_DA9150_QIF_DISCHARGE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DA9150_QIF_DISCHARGE_LIMIT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incl	%ecx
	movq	%rbx, %rdi
	callq	_da9150_fg_write_attr_sync
	movq	_DA9150_QIF_CHARGE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DA9150_QIF_CHARGE_LIMIT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	jmp	LBB0_5
LBB0_4:
	movq	_DA9150_QIF_CHARGE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DA9150_QIF_CHARGE_LIMIT_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_da9150_fg_write_attr_sync      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9150_QIF_SOC_PCT,4,2         ## @DA9150_QIF_SOC_PCT
	.comm	_DA9150_QIF_SOC_PCT_SIZE,4,2    ## @DA9150_QIF_SOC_PCT_SIZE
	.comm	_DA9150_QIF_DISCHARGE_LIMIT,4,2 ## @DA9150_QIF_DISCHARGE_LIMIT
	.comm	_DA9150_QIF_DISCHARGE_LIMIT_SIZE,4,2 ## @DA9150_QIF_DISCHARGE_LIMIT_SIZE
	.comm	_DA9150_QIF_CHARGE_LIMIT,4,2    ## @DA9150_QIF_CHARGE_LIMIT
	.comm	_DA9150_QIF_CHARGE_LIMIT_SIZE,4,2 ## @DA9150_QIF_CHARGE_LIMIT_SIZE
	.no_dead_strip	_da9150_fg_soc_event_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9150_fg_soc_event_config
_da9150_fg_soc_event_config:            ; @da9150_fg_soc_event_config
	.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
Lloh0:
	adrp	x8, _DA9150_QIF_SOC_PCT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9150_QIF_SOC_PCT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DA9150_QIF_SOC_PCT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9150_QIF_SOC_PCT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_da9150_fg_read_attr_sync
	ldr	w8, [x19]
	cmp	w0, w8
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _DA9150_QIF_DISCHARGE_LIMIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DA9150_QIF_DISCHARGE_LIMIT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x9, _DA9150_QIF_DISCHARGE_LIMIT_SIZE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DA9150_QIF_DISCHARGE_LIMIT_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
	add	w3, w8, #1
	b	LBB0_5
LBB0_2:
	ldr	w3, [x19, #4]
	cmp	w0, w3
	b.le	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _DA9150_QIF_DISCHARGE_LIMIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DA9150_QIF_DISCHARGE_LIMIT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _DA9150_QIF_DISCHARGE_LIMIT_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DA9150_QIF_DISCHARGE_LIMIT_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	w3, w3, #1
	mov	x0, x19
	bl	_da9150_fg_write_attr_sync
Lloh18:
	adrp	x8, _DA9150_QIF_CHARGE_LIMIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DA9150_QIF_CHARGE_LIMIT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _DA9150_QIF_CHARGE_LIMIT_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DA9150_QIF_CHARGE_LIMIT_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	w3, [x19]
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x8, _DA9150_QIF_CHARGE_LIMIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DA9150_QIF_CHARGE_LIMIT@GOTPAGEOFF]
Lloh26:
	adrp	x9, _DA9150_QIF_CHARGE_LIMIT_SIZE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _DA9150_QIF_CHARGE_LIMIT_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	ldr	w2, [x9]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_da9150_fg_write_attr_sync
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9150_QIF_SOC_PCT,4,2         ; @DA9150_QIF_SOC_PCT
	.comm	_DA9150_QIF_SOC_PCT_SIZE,4,2    ; @DA9150_QIF_SOC_PCT_SIZE
	.comm	_DA9150_QIF_DISCHARGE_LIMIT,4,2 ; @DA9150_QIF_DISCHARGE_LIMIT
	.comm	_DA9150_QIF_DISCHARGE_LIMIT_SIZE,4,2 ; @DA9150_QIF_DISCHARGE_LIMIT_SIZE
	.comm	_DA9150_QIF_CHARGE_LIMIT,4,2    ; @DA9150_QIF_CHARGE_LIMIT
	.comm	_DA9150_QIF_CHARGE_LIMIT_SIZE,4,2 ; @DA9150_QIF_CHARGE_LIMIT_SIZE
	.no_dead_strip	_da9150_fg_soc_event_config
.subsections_via_symbols
