	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smb347_battery_get_property
_smb347_battery_get_property:           ## @smb347_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
	movq	(%rax), %r12
	movq	%rax, %rdi
	callq	_smb347_update_ps_status
	testl	%eax, %eax
	js	LBB0_20
## %bb.1:
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_18
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	movl	4(%r12), %eax
	jmp	LBB0_4
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_15:
	movl	8(%r12), %eax
	jmp	LBB0_4
LBB0_13:
	movl	(%r12), %eax
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_smb347_get_charging_status
	testl	%eax, %eax
	jns	LBB0_4
	jmp	LBB0_20
LBB0_17:
	movl	16(%r12), %eax
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_smb347_is_ps_online
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_smb347_charging_status
	cmpl	$2, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$1, %eax
	jne	LBB0_12
## %bb.9:
	movq	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_16:
	movl	12(%r12), %eax
LBB0_4:
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
LBB0_19:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_11:
	movq	_POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_12:
	movq	_POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_3
	.long	L0_0_set_17
	.long	L0_0_set_5
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ## @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smb347_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 smb347_battery_get_property
_smb347_battery_get_property:           ; @smb347_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	x19, x2
	mov	x21, x1
	bl	_power_supply_get_drvdata
	mov	x20, x0
	ldr	x22, [x0]
	bl	_smb347_update_ps_status
	tbnz	w0, #31, LBB0_21
; %bb.1:
	sub	w8, w21, #128
	cmp	w8, #6
	b.hi	LBB0_4
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	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	w0, #0
	ldr	w8, [x22, #4]
	b	LBB0_20
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_5:
	mov	w0, #0
	ldr	w8, [x22, #8]
	b	LBB0_20
LBB0_6:
	mov	w0, #0
	ldr	w8, [x22]
	b	LBB0_20
LBB0_7:
	mov	x0, x20
	bl	_smb347_get_charging_status
	tbnz	w0, #31, LBB0_21
; %bb.8:
	str	w0, [x19]
	mov	w0, #0
	b	LBB0_21
LBB0_9:
	mov	w0, #0
	ldr	w8, [x22, #16]
	b	LBB0_20
LBB0_10:
	mov	x0, x20
	bl	_smb347_is_ps_online
	cbz	w0, LBB0_15
; %bb.11:
	mov	x0, x20
	bl	_smb347_charging_status
	cmp	w0, #2
	b.eq	LBB0_17
; %bb.12:
	cmp	w0, #1
	b.ne	LBB0_18
; %bb.13:
	mov	w0, #0
Lloh4:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_TRICKLE@GOTPAGEOFF]
	b	LBB0_19
LBB0_14:
	mov	w0, #0
	ldr	w8, [x22, #12]
	b	LBB0_20
LBB0_15:
Lloh6:
	adrp	x8, _ENODATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_21
LBB0_17:
	mov	w0, #0
Lloh8:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_FAST@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
	mov	w0, #0
Lloh10:
	adrp	x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _POWER_SUPPLY_CHARGE_TYPE_NONE@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
LBB0_20:
	str	w8, [x19]
LBB0_21:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.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
	.byte	(LBB0_14-LBB0_3)>>2
                                        ; -- End function
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_POWER_SUPPLY_CHARGE_TYPE_TRICKLE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_TRICKLE
	.comm	_POWER_SUPPLY_CHARGE_TYPE_FAST,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_FAST
	.comm	_POWER_SUPPLY_CHARGE_TYPE_NONE,4,2 ; @POWER_SUPPLY_CHARGE_TYPE_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smb347_battery_get_property
.subsections_via_symbols
