	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bq27xxx_battery_get_property
_bq27xxx_battery_get_property:          ## @bq27xxx_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	callq	_power_supply_get_drvdata
	movq	%rax, %r12
	leaq	52(%rax), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rdi
	addq	64(%r12), %rdi
	callq	_time_is_before_jiffies
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rbx
	addq	$56, %rbx
	movq	%rbx, %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	callq	_bq27xxx_battery_poll
LBB0_2:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	(%r12), %rax
	cmpl	$136, %r15d
	jne	LBB0_3
## %bb.9:
	shrq	$63, %rax
	xorl	$1, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_3:
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	addl	$-128, %r15d
	cmpl	$20, %r15d
	ja	LBB0_29
## %bb.6:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_29:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_30
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_30:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bq27xxx_battery_voltage        ## TAILCALL
LBB0_18:
	movl	28(%r12), %edi
	jmp	LBB0_12
LBB0_16:
	movl	36(%r12), %edi
	jmp	LBB0_12
LBB0_17:
	movl	32(%r12), %edi
	jmp	LBB0_12
LBB0_14:
	movl	40(%r12), %edi
	movq	%r14, %rsi
	callq	_bq27xxx_simple_value
	testl	%eax, %eax
	jne	LBB0_31
## %bb.15:
	addl	$-2731, (%r14)                  ## imm = 0xF555
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_19:
	movq	_POWER_SUPPLY_TECHNOLOGY_LION@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bq27xxx_battery_status         ## TAILCALL
LBB0_26:
	movl	12(%r12), %edi
	jmp	LBB0_12
LBB0_28:
	movq	_BQ27XXX_MANUFACTURER@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_27:
	movl	8(%r12), %edi
	jmp	LBB0_12
LBB0_25:
	movl	16(%r12), %edi
	jmp	LBB0_12
LBB0_24:
	movl	20(%r12), %edi
	jmp	LBB0_12
LBB0_10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bq27xxx_battery_current        ## TAILCALL
LBB0_21:
	movq	%r12, %rdi
	callq	_bq27xxx_battery_read_nac
	movl	%eax, %edi
	jmp	LBB0_12
LBB0_23:
	movl	48(%r12), %edi
	jmp	LBB0_12
LBB0_22:
	movl	24(%r12), %edi
	jmp	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bq27xxx_battery_capacity_level ## TAILCALL
LBB0_11:
	movl	44(%r12), %edi
LBB0_12:
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bq27xxx_simple_value           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_29
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_19
	.long	L0_0_set_7
	.long	L0_0_set_29
	.long	L0_0_set_26
	.long	L0_0_set_28
	.long	L0_0_set_27
	.long	L0_0_set_25
	.long	L0_0_set_29
	.long	L0_0_set_24
	.long	L0_0_set_10
	.long	L0_0_set_21
	.long	L0_0_set_23
	.long	L0_0_set_22
	.long	L0_0_set_13
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_HZ,4,2                         ## @HZ
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,4,2 ## @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BQ27XXX_MANUFACTURER,4,2       ## @BQ27XXX_MANUFACTURER
	.no_dead_strip	_bq27xxx_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 bq27xxx_battery_get_property
_bq27xxx_battery_get_property:          ; @bq27xxx_battery_get_property
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	bl	_power_supply_get_drvdata
	mov	x20, x0
	add	x22, x0, #52
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x20, #64]
Lloh0:
	adrp	x9, _HZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #2
	add	x0, x8, x9
	bl	_time_is_before_jiffies
	cbz	x0, LBB0_2
; %bb.1:
	add	x23, x20, #56
	mov	x0, x23
	bl	_cancel_delayed_work_sync
	mov	x0, x23
	bl	_bq27xxx_battery_poll
LBB0_2:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x8, [x20]
	cmp	w21, #136
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	lsr	x8, x8, #63
	eor	w8, w8, #0x1
	str	w8, [x19]
	b	LBB0_10
LBB0_4:
	tbnz	x8, #63, LBB0_8
; %bb.5:
	sub	w8, w21, #128
	cmp	w8, #20
	b.hi	LBB0_7
; %bb.6:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bq27xxx_battery_voltage
LBB0_12:
	ldr	w0, [x20, #28]
	b	LBB0_31
LBB0_13:
	ldr	w0, [x20, #36]
	b	LBB0_31
LBB0_14:
	ldr	w0, [x20, #32]
	b	LBB0_31
LBB0_15:
	ldr	w0, [x20, #40]
	mov	x1, x19
	bl	_bq27xxx_simple_value
	cbnz	w0, LBB0_10
; %bb.16:
	ldr	w8, [x19]
	sub	w8, w8, #2731
	str	w8, [x19]
	b	LBB0_10
LBB0_17:
	mov	w0, #0
Lloh9:
	adrp	x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _POWER_SUPPLY_TECHNOLOGY_LION@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bq27xxx_battery_status
LBB0_19:
	ldr	w0, [x20, #12]
	b	LBB0_31
LBB0_20:
	mov	w0, #0
Lloh11:
	adrp	x8, _BQ27XXX_MANUFACTURER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BQ27XXX_MANUFACTURER@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_10
LBB0_22:
	ldr	w0, [x20, #8]
	b	LBB0_31
LBB0_23:
	ldr	w0, [x20, #16]
	b	LBB0_31
LBB0_24:
	ldr	w0, [x20, #20]
	b	LBB0_31
LBB0_25:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bq27xxx_battery_current
LBB0_26:
	mov	x0, x20
	bl	_bq27xxx_battery_read_nac
	b	LBB0_31
LBB0_27:
	ldr	w0, [x20, #48]
	b	LBB0_31
LBB0_28:
	ldr	w0, [x20, #24]
	b	LBB0_31
LBB0_29:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bq27xxx_battery_capacity_level
LBB0_30:
	ldr	w0, [x20, #44]
LBB0_31:
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bq27xxx_simple_value
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_12-LBB0_7)>>2
	.byte	(LBB0_13-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
	.byte	(LBB0_18-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_19-LBB0_7)>>2
	.byte	(LBB0_20-LBB0_7)>>2
	.byte	(LBB0_22-LBB0_7)>>2
	.byte	(LBB0_23-LBB0_7)>>2
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_24-LBB0_7)>>2
	.byte	(LBB0_25-LBB0_7)>>2
	.byte	(LBB0_26-LBB0_7)>>2
	.byte	(LBB0_27-LBB0_7)>>2
	.byte	(LBB0_28-LBB0_7)>>2
	.byte	(LBB0_29-LBB0_7)>>2
	.byte	(LBB0_30-LBB0_7)>>2
                                        ; -- End function
	.comm	_HZ,4,2                         ; @HZ
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_POWER_SUPPLY_TECHNOLOGY_LION,4,2 ; @POWER_SUPPLY_TECHNOLOGY_LION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BQ27XXX_MANUFACTURER,4,2       ; @BQ27XXX_MANUFACTURER
	.no_dead_strip	_bq27xxx_battery_get_property
.subsections_via_symbols
