	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_usbpd_charger_get_prop
_cros_usbpd_charger_get_prop:           ## @cros_usbpd_charger_get_prop
	.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
	addl	$-128, %ebx
	cmpl	$9, %ebx
	ja	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	32(%rax), %rax
	movq	(%rax), %r12
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_2:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_cros_usbpd_charger_get_port_status
	testl	%eax, %eax
	js	LBB0_6
## %bb.3:
	cmpl	$9, %ebx
	ja	LBB0_7
## %bb.4:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	imull	$1000, 16(%r15), %eax           ## imm = 0x3E8
	jmp	LBB0_20
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_8:
	movl	20(%r15), %eax
	jmp	LBB0_20
LBB0_9:
	movl	4(%r15), %eax
	jmp	LBB0_20
LBB0_10:
	movl	28(%r15), %eax
	jmp	LBB0_20
LBB0_11:
	movl	24(%r15), %eax
	jmp	LBB0_20
LBB0_12:
	movq	_input_voltage_limit@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_input_current_limit@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movq	_EC_POWER_LIMIT_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_16
## %bb.15:
	movl	$-1, (%r14)
	jmp	LBB0_21
LBB0_16:
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	jmp	LBB0_20
LBB0_17:
	movq	8(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.18:
	cmpl	$0, (%r15)
	je	LBB0_2
LBB0_19:
	movl	(%r15), %eax
LBB0_20:
	movl	%eax, (%r14)
LBB0_21:
	xorl	%eax, %eax
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	imull	$1000, 12(%r15), %eax           ## imm = 0x3E8
	jmp	LBB0_20
LBB0_24:
	imull	$1000, 8(%r15), %eax            ## imm = 0x3E8
	jmp	LBB0_20
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_17
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.long	L0_0_set_2
.set L0_1_set_5, LBB0_5-LJTI0_1
.set L0_1_set_23, LBB0_23-LJTI0_1
.set L0_1_set_8, LBB0_8-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_12, LBB0_12-LJTI0_1
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_24, LBB0_24-LJTI0_1
LJTI0_1:
	.long	L0_1_set_5
	.long	L0_1_set_23
	.long	L0_1_set_8
	.long	L0_1_set_9
	.long	L0_1_set_19
	.long	L0_1_set_10
	.long	L0_1_set_11
	.long	L0_1_set_12
	.long	L0_1_set_13
	.long	L0_1_set_24
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get port status (err:0x%x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_input_current_limit,4,2        ## @input_current_limit
	.comm	_EC_POWER_LIMIT_NONE,4,2        ## @EC_POWER_LIMIT_NONE
	.comm	_input_voltage_limit,4,2        ## @input_voltage_limit
	.no_dead_strip	_cros_usbpd_charger_get_prop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cros_usbpd_charger_get_prop
_cros_usbpd_charger_get_prop:           ; @cros_usbpd_charger_get_prop
	.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
	sub	w22, w21, #128
	cmp	w22, #9
	b.hi	LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #32]
	ldr	x21, [x8]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x22]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x20
	mov	w1, #1
	bl	_cros_usbpd_charger_get_port_status
	tbnz	w0, #31, LBB0_6
; %bb.3:
	cmp	w22, #9
	b.hi	LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, lJTI0_1@PAGE
Lloh3:
	add	x8, x8, lJTI0_1@PAGEOFF
	adr	x9, LBB0_5
	ldrb	w10, [x8, x22]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:
	mov	w0, #0
	ldr	w8, [x20, #16]
	b	LBB0_17
LBB0_6:
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_8:
	mov	w0, #0
	ldr	w8, [x20, #20]
	b	LBB0_21
LBB0_9:
	mov	w0, #0
	ldr	w8, [x20, #4]
	b	LBB0_21
LBB0_10:
	mov	w0, #0
	ldr	w8, [x20, #28]
	b	LBB0_21
LBB0_11:
	mov	w0, #0
	ldr	w8, [x20, #24]
	b	LBB0_21
LBB0_12:
Lloh9:
	adrp	x8, _input_voltage_limit@GOTPAGE
Lloh10:
	ldr	x8, [x8, _input_voltage_limit@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh11:
	adrp	x8, _input_current_limit@GOTPAGE
Lloh12:
	ldr	x8, [x8, _input_current_limit@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _EC_POWER_LIMIT_NONE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _EC_POWER_LIMIT_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	mov	w8, #-1
	b	LBB0_21
LBB0_16:
	mov	w0, #0
LBB0_17:
	mov	w9, #1000
	mul	w8, w8, w9
	b	LBB0_21
LBB0_18:
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_20
; %bb.19:
	ldr	w8, [x20]
	cbz	w8, LBB0_2
LBB0_20:
	mov	w0, #0
	ldr	w8, [x20]
LBB0_21:
	str	w8, [x19]
LBB0_22:
	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
LBB0_23:
	mov	w0, #0
	ldr	w8, [x20, #12]
	b	LBB0_17
LBB0_24:
	mov	w0, #0
	ldr	w8, [x20, #8]
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_23-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_20-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
	.byte	(LBB0_11-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_13-LBB0_5)>>2
	.byte	(LBB0_24-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get port status (err:0x%x)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_input_current_limit,4,2        ; @input_current_limit
	.comm	_EC_POWER_LIMIT_NONE,4,2        ; @EC_POWER_LIMIT_NONE
	.comm	_input_voltage_limit,4,2        ; @input_voltage_limit
	.no_dead_strip	_cros_usbpd_charger_get_prop
.subsections_via_symbols
