	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24190_battery_set_property
_bq24190_battery_set_property:          ## @bq24190_battery_set_property
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_power_supply_get_drvdata
	movq	%rax, %r12
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_dbg
	movl	(%r12), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$128, %r15d
	je	LBB0_5
## %bb.3:
	cmpl	$129, %r15d
	jne	LBB0_6
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bq24190_battery_set_online
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_bq24190_battery_set_temp_alert_max
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	(%r12), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r12), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: /sys/class/power_supply/bq24190-battery is deprecated\n"

L_.str.1:                               ## @.str.1
	.asciz	"prop: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bq24190_battery_set_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bq24190_battery_set_property
_bq24190_battery_set_property:          ; @bq24190_battery_set_property
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	bl	_power_supply_get_drvdata
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cmp	w21, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w21, #129
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	bl	_bq24190_battery_set_online
	mov	x22, x0
	b	LBB0_7
LBB0_4:
	mov	x22, x0
	b	LBB0_8
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_bq24190_battery_set_temp_alert_max
	mov	x22, x0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: /sys/class/power_supply/bq24190-battery is deprecated\n"

l_.str.1:                               ; @.str.1
	.asciz	"prop: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bq24190_battery_set_property
.subsections_via_symbols
