	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq24190_battery_get_property
_bq24190_battery_get_property:          ## @bq24190_battery_get_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, %ebx
	callq	_power_supply_get_drvdata
	movq	%rax, %r15
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_dbg
	movl	(%r15), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bq24190_battery_get_temp_alert_max
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_1:
	movl	%eax, %r12d
	jmp	LBB0_13
LBB0_7:
	movq	_POWER_SUPPLY_TECHNOLOGY_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bq24190_battery_get_status
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_10:
	movq	_POWER_SUPPLY_SCOPE_SYSTEM@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bq24190_battery_get_online
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_bq24190_battery_get_health
	movl	%eax, %r12d
	jmp	LBB0_12
LBB0_11:
	movq	_ENODATA@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movl	(%r15), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%r15), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_13:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_5
	.end_data_region
                                        ## -- 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	_POWER_SUPPLY_TECHNOLOGY_UNKNOWN,4,2 ## @POWER_SUPPLY_TECHNOLOGY_UNKNOWN
	.comm	_POWER_SUPPLY_SCOPE_SYSTEM,4,2  ## @POWER_SUPPLY_SCOPE_SYSTEM
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_bq24190_battery_get_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_get_property
_bq24190_battery_get_property:          ; @bq24190_battery_get_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	x22, 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, x22
	bl	_dev_dbg
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_4
; %bb.1:
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.2:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_bq24190_battery_get_temp_alert_max
	mov	x21, x0
	b	LBB0_12
LBB0_4:
	mov	x21, x0
	b	LBB0_13
LBB0_5:
	mov	w21, #0
Lloh6:
	adrp	x8, _POWER_SUPPLY_TECHNOLOGY_UNKNOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POWER_SUPPLY_TECHNOLOGY_UNKNOWN@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_bq24190_battery_get_status
	mov	x21, x0
	b	LBB0_12
LBB0_7:
	mov	w21, #0
Lloh8:
	adrp	x8, _POWER_SUPPLY_SCOPE_SYSTEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POWER_SUPPLY_SCOPE_SYSTEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x20]
	b	LBB0_12
LBB0_9:
	mov	x0, x19
	mov	x1, x20
	bl	_bq24190_battery_get_online
	mov	x21, x0
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_bq24190_battery_get_health
	mov	x21, x0
	b	LBB0_12
LBB0_11:
Lloh10:
	adrp	x8, _ENODATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
LBB0_13:
	mov	x0, x21
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- 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	_POWER_SUPPLY_TECHNOLOGY_UNKNOWN,4,2 ; @POWER_SUPPLY_TECHNOLOGY_UNKNOWN
	.comm	_POWER_SUPPLY_SCOPE_SYSTEM,4,2  ; @POWER_SUPPLY_SCOPE_SYSTEM
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_bq24190_battery_get_property
.subsections_via_symbols
