	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp20x_usb_power_get_property
_axp20x_usb_power_get_property:         ## @axp20x_usb_power_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	callq	_power_supply_get_drvdata
	movq	%rax, %r15
	leal	-128(%rbx), %eax
	cmpl	$6, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_CONFIG_AXP20X_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_22
## %bb.3:
	movl	12(%r15), %edi
	jmp	LBB0_17
LBB0_4:
	movl	(%r15), %edi
	movq	_AXP20X_VBUS_IPSOUT_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_28
## %bb.5:
	movl	-28(%rbp), %edi
	callq	_AXP20X_VBUS_VHOLD_uV
	jmp	LBB0_26
LBB0_6:
	movl	(%r15), %edi
	movq	_AXP20X_PWR_INPUT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_28
## %bb.7:
	cmpl	$130, %ebx
	je	LBB0_29
## %bb.8:
	cmpl	$131, %ebx
	je	LBB0_30
## %bb.9:
	cmpl	$132, %ebx
	jne	LBB0_32
## %bb.10:
	movq	_AXP20X_PWR_STATUS_VBUS_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -32(%rbp)
	je	LBB0_33
## %bb.11:
	movq	_POWER_SUPPLY_HEALTH_GOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	4(%r15), %eax
	movq	_AXP202_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.12:
	movl	(%r15), %edi
	movq	_AXP20X_USB_OTG_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_28
## %bb.13:
	movq	_AXP20X_USB_STATUS_VBUS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	jne	LBB0_27
## %bb.35:
	movq	_POWER_SUPPLY_HEALTH_UNSPEC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_26
LBB0_15:
	movq	_CONFIG_AXP20X_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testl	%eax, %eax
	je	LBB0_24
## %bb.16:
	movl	8(%r15), %edi
LBB0_17:
	movq	%r14, %rsi
	callq	_iio_read_channel_processed
	testl	%eax, %eax
	jne	LBB0_28
## %bb.18:
	imull	$1000, (%r14), %eax             ## imm = 0x3E8
	jmp	LBB0_26
LBB0_19:
	movl	4(%r15), %eax
	movq	_AXP813_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_axp813_get_current_max         ## TAILCALL
LBB0_21:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_axp20x_get_current_max         ## TAILCALL
LBB0_22:
	movl	(%r15), %edi
	movq	_AXP20X_VBUS_V_ADC_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edx
	callq	_axp20x_read_variable_width
	testl	%eax, %eax
	js	LBB0_28
## %bb.23:
	imull	$1700, %eax, %eax               ## imm = 0x6A4
	jmp	LBB0_26
LBB0_24:
	movl	(%r15), %edi
	movq	_AXP20X_VBUS_I_ADC_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edx
	callq	_axp20x_read_variable_width
	testl	%eax, %eax
	js	LBB0_28
## %bb.25:
	imull	$375, %eax, %eax                ## imm = 0x177
LBB0_26:
	movl	%eax, (%r14)
LBB0_27:
	xorl	%eax, %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_AXP20X_PWR_STATUS_VBUS_PRESENT@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_30:
	movq	_AXP20X_PWR_STATUS_VBUS_USED@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-32(%rbp), %eax
	setne	%cl
	movl	%ecx, (%r14)
	jmp	LBB0_27
LBB0_32:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_28
LBB0_33:
	movq	_POWER_SUPPLY_HEALTH_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_26
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_6
	.long	L0_0_set_15
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_AXP20X_VBUS_IPSOUT_MGMT,4,2    ## @AXP20X_VBUS_IPSOUT_MGMT
	.comm	_CONFIG_AXP20X_ADC,4,2          ## @CONFIG_AXP20X_ADC
	.comm	_AXP20X_VBUS_V_ADC_H,4,2        ## @AXP20X_VBUS_V_ADC_H
	.comm	_AXP813_ID,4,2                  ## @AXP813_ID
	.comm	_AXP20X_VBUS_I_ADC_H,4,2        ## @AXP20X_VBUS_I_ADC_H
	.comm	_AXP20X_PWR_INPUT_STATUS,4,2    ## @AXP20X_PWR_INPUT_STATUS
	.comm	_AXP20X_PWR_STATUS_VBUS_PRESENT,4,2 ## @AXP20X_PWR_STATUS_VBUS_PRESENT
	.comm	_POWER_SUPPLY_HEALTH_UNKNOWN,4,2 ## @POWER_SUPPLY_HEALTH_UNKNOWN
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ## @POWER_SUPPLY_HEALTH_GOOD
	.comm	_AXP202_ID,4,2                  ## @AXP202_ID
	.comm	_AXP20X_USB_OTG_STATUS,4,2      ## @AXP20X_USB_OTG_STATUS
	.comm	_AXP20X_USB_STATUS_VBUS_VALID,4,2 ## @AXP20X_USB_STATUS_VBUS_VALID
	.comm	_POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,4,2 ## @POWER_SUPPLY_HEALTH_UNSPEC_FAILURE
	.comm	_AXP20X_PWR_STATUS_VBUS_USED,4,2 ## @AXP20X_PWR_STATUS_VBUS_USED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_axp20x_usb_power_get_property
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp20x_usb_power_get_property
_axp20x_usb_power_get_property:         ; @axp20x_usb_power_get_property
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_power_supply_get_drvdata
	mov	x20, x0
	sub	w8, w21, #128
	cmp	w8, #6
	b.hi	LBB0_6
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _CONFIG_AXP20X_ADC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG_AXP20X_ADC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_22
; %bb.3:
	ldr	w0, [x20, #12]
	b	LBB0_17
LBB0_4:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AXP20X_VBUS_IPSOUT_MGMT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_29
; %bb.5:
	ldr	w0, [sp, #8]
	bl	_AXP20X_VBUS_VHOLD_uV
	mov	x8, x0
	b	LBB0_27
LBB0_6:
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AXP20X_PWR_INPUT_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_29
; %bb.7:
	cmp	w21, #130
	b.eq	LBB0_30
; %bb.8:
	cmp	w21, #131
	b.eq	LBB0_31
; %bb.9:
	cmp	w21, #132
	b.ne	LBB0_33
; %bb.10:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _AXP20X_PWR_STATUS_VBUS_PRESENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AXP20X_PWR_STATUS_VBUS_PRESENT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.11:
Lloh14:
	adrp	x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_GOOD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	w8, [x20, #4]
Lloh17:
	adrp	x9, _AXP202_ID@GOTPAGE
Lloh18:
	ldr	x9, [x9, _AXP202_ID@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.12:
	ldr	w0, [x20]
Lloh20:
	adrp	x8, _AXP20X_USB_OTG_STATUS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AXP20X_USB_OTG_STATUS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_regmap_read
	cbnz	w0, LBB0_29
; %bb.13:
	ldr	w8, [sp, #8]
Lloh23:
	adrp	x9, _AXP20X_USB_STATUS_VBUS_VALID@GOTPAGE
Lloh24:
	ldr	x9, [x9, _AXP20X_USB_STATUS_VBUS_VALID@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
LBB0_14:
	mov	w0, #0
	b	LBB0_29
LBB0_15:
Lloh26:
	adrp	x8, _CONFIG_AXP20X_ADC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CONFIG_AXP20X_ADC@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	w0, LBB0_24
; %bb.16:
	ldr	w0, [x20, #8]
LBB0_17:
	mov	x1, x19
	bl	_iio_read_channel_processed
	cbnz	w0, LBB0_29
; %bb.18:
	ldr	w8, [x19]
	mov	w9, #1000
	mul	w8, w8, w9
	b	LBB0_28
LBB0_19:
	ldr	w8, [x20, #4]
Lloh29:
	adrp	x9, _AXP813_ID@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AXP813_ID@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	mov	x0, x20
	mov	x1, x19
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.20:
	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
	add	sp, sp, #64
	b	_axp813_get_current_max
LBB0_21:
	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
	add	sp, sp, #64
	b	_axp20x_get_current_max
LBB0_22:
	ldr	w0, [x20]
Lloh32:
	adrp	x8, _AXP20X_VBUS_V_ADC_H@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AXP20X_VBUS_V_ADC_H@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	w2, #12
	bl	_axp20x_read_variable_width
	tbnz	w0, #31, LBB0_29
; %bb.23:
	mov	w8, #1700
	b	LBB0_26
LBB0_24:
	ldr	w0, [x20]
Lloh35:
	adrp	x8, _AXP20X_VBUS_I_ADC_H@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AXP20X_VBUS_I_ADC_H@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	w2, #12
	bl	_axp20x_read_variable_width
	tbnz	w0, #31, LBB0_29
; %bb.25:
	mov	w8, #375
LBB0_26:
	mul	w8, w0, w8
LBB0_27:
	mov	w0, #0
LBB0_28:
	str	w8, [x19]
LBB0_29:
	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
	add	sp, sp, #64
	ret
LBB0_30:
	mov	w0, #0
	ldr	w8, [sp, #12]
Lloh38:
	adrp	x9, _AXP20X_PWR_STATUS_VBUS_PRESENT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _AXP20X_PWR_STATUS_VBUS_PRESENT@GOTPAGEOFF]
	b	LBB0_32
LBB0_31:
	mov	w0, #0
	ldr	w8, [sp, #12]
Lloh40:
	adrp	x9, _AXP20X_PWR_STATUS_VBUS_USED@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AXP20X_PWR_STATUS_VBUS_USED@GOTPAGEOFF]
LBB0_32:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_28
LBB0_33:
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_29
LBB0_34:
	mov	w0, #0
Lloh45:
	adrp	x8, _POWER_SUPPLY_HEALTH_UNKNOWN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_UNKNOWN@GOTPAGEOFF]
LBB0_35:
	ldr	w8, [x8]
	b	LBB0_28
LBB0_36:
	mov	w0, #0
Lloh47:
	adrp	x8, _POWER_SUPPLY_HEALTH_UNSPEC_FAILURE@GOTPAGE
Lloh48:
	ldr	x8, [x8, _POWER_SUPPLY_HEALTH_UNSPEC_FAILURE@GOTPAGEOFF]
	b	LBB0_35
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
                                        ; -- End function
	.comm	_AXP20X_VBUS_IPSOUT_MGMT,4,2    ; @AXP20X_VBUS_IPSOUT_MGMT
	.comm	_CONFIG_AXP20X_ADC,4,2          ; @CONFIG_AXP20X_ADC
	.comm	_AXP20X_VBUS_V_ADC_H,4,2        ; @AXP20X_VBUS_V_ADC_H
	.comm	_AXP813_ID,4,2                  ; @AXP813_ID
	.comm	_AXP20X_VBUS_I_ADC_H,4,2        ; @AXP20X_VBUS_I_ADC_H
	.comm	_AXP20X_PWR_INPUT_STATUS,4,2    ; @AXP20X_PWR_INPUT_STATUS
	.comm	_AXP20X_PWR_STATUS_VBUS_PRESENT,4,2 ; @AXP20X_PWR_STATUS_VBUS_PRESENT
	.comm	_POWER_SUPPLY_HEALTH_UNKNOWN,4,2 ; @POWER_SUPPLY_HEALTH_UNKNOWN
	.comm	_POWER_SUPPLY_HEALTH_GOOD,4,2   ; @POWER_SUPPLY_HEALTH_GOOD
	.comm	_AXP202_ID,4,2                  ; @AXP202_ID
	.comm	_AXP20X_USB_OTG_STATUS,4,2      ; @AXP20X_USB_OTG_STATUS
	.comm	_AXP20X_USB_STATUS_VBUS_VALID,4,2 ; @AXP20X_USB_STATUS_VBUS_VALID
	.comm	_POWER_SUPPLY_HEALTH_UNSPEC_FAILURE,4,2 ; @POWER_SUPPLY_HEALTH_UNSPEC_FAILURE
	.comm	_AXP20X_PWR_STATUS_VBUS_USED,4,2 ; @AXP20X_PWR_STATUS_VBUS_USED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_axp20x_usb_power_get_property
.subsections_via_symbols
