	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_charger_max_usb_curr
_ab8500_charger_max_usb_curr:           ## @ab8500_charger_max_usb_curr
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, (%rdi)
	leal	-128(%r14), %eax
	cmpl	$19, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_USB_CH_IP_CUR_LVL_0P5@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_20
LBB0_3:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_USB_CH_IP_CUR_LVL_0P5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$0, 4(%rbx)
	jmp	LBB0_20
LBB0_4:
	movq	_USB_CH_IP_CUR_LVL_0P5@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_5:
	movq	_USB_CH_IP_CUR_LVL_1P5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$1, 4(%rbx)
	jmp	LBB0_19
LBB0_6:
	movl	24(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_13
LBB0_7:
	movl	32(%rbx), %edi
	callq	_is_ab8500
	testl	%eax, %eax
	je	LBB0_23
## %bb.8:
	movl	$1, 28(%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_14
LBB0_9:
	movl	24(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_err
	movq	_USB_CH_IP_CUR_LVL_0P5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_19
LBB0_10:
	cmpl	$0, 36(%rbx)
	je	LBB0_12
## %bb.11:
	movl	$1, (%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_USB_CH_IP_CUR_LVL_1P5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	jmp	LBB0_20
LBB0_12:
	movl	24(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	callq	_dev_err
	movq	_USB_CH_IP_CUR_LVL_0P05@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_14:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_15:
	subl	(%rax), %r15d
	jmp	LBB0_20
LBB0_16:
	movq	_USB_CH_IP_CUR_LVL_1P5@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_17:
	movq	_USB_CH_IP_CUR_LVL_0P9@GOTPCREL(%rip), %rax
LBB0_18:
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$0, 4(%rbx)
LBB0_19:
	xorl	%r15d, %r15d
LBB0_20:
	movq	16(%rbx), %rcx
	movq	%rcx, 8(%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	_USB_CH_IP_CUR_LVL_1P3@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movl	$145, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$1, 4(%rbx)
	jmp	LBB0_20
LBB0_22:
	movl	24(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_USB_CH_IP_CUR_LVL_0P5@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	$1, 4(%rbx)
	jmp	LBB0_20
LBB0_23:
	movl	24(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_USB_CH_IP_CUR_LVL_0P05@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	movl	24(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$131, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_17
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"USB Type - Standard host is detected through USB driver\n"

	.comm	_USB_CH_IP_CUR_LVL_0P5,8,3      ## @USB_CH_IP_CUR_LVL_0P5
	.comm	_USB_CH_IP_CUR_LVL_0P9,8,3      ## @USB_CH_IP_CUR_LVL_0P9
L_.str.1:                               ## @.str.1
	.asciz	"USB_STAT_ACA_RID_A detected\n"

	.comm	_USB_CH_IP_CUR_LVL_1P3,8,3      ## @USB_CH_IP_CUR_LVL_1P3
L_.str.2:                               ## @.str.2
	.asciz	"USB Type - 0x%02x MaxCurr: %d"

	.comm	_USB_CH_IP_CUR_LVL_1P5,8,3      ## @USB_CH_IP_CUR_LVL_1P5
L_.str.3:                               ## @.str.3
	.asciz	"USB Type - Legacy charger.\n"

L_.str.4:                               ## @.str.4
	.asciz	"USB Type - Charging not allowed\n"

	.comm	_USB_CH_IP_CUR_LVL_0P05,8,3     ## @USB_CH_IP_CUR_LVL_0P05
	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.5:                               ## @.str.5
	.asciz	"USB Type - USB_STAT_RESERVED VBUS has collapsed\n"

L_.str.6:                               ## @.str.6
	.asciz	"USB Type invalid - try charging anyway\n"

L_.str.7:                               ## @.str.7
	.asciz	"USB Type - Unknown\n"

	.no_dead_strip	_ab8500_charger_max_usb_curr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_charger_max_usb_curr
_ab8500_charger_max_usb_curr:           ; @ab8500_charger_max_usb_curr
	.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, x1
	mov	x20, x0
	str	wzr, [x0]
	sub	w8, w1, #128
	cmp	w8, #19
	b.hi	LBB0_7
; %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, _USB_CH_IP_CUR_LVL_0P5@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_0P5@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	w0, [x20, #24]
	mov	x9, x19
	stp	x9, x8, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w21, #0
	b	LBB0_23
LBB0_3:
	ldr	w0, [x20, #24]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	mov	w21, #0
Lloh9:
	adrp	x8, _USB_CH_IP_CUR_LVL_0P5@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_0P5@GOTPAGEOFF]
LBB0_5:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	str	wzr, [x20, #4]
	b	LBB0_23
LBB0_6:
	mov	w21, #0
Lloh11:
	adrp	x8, _USB_CH_IP_CUR_LVL_1P5@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_1P5@GOTPAGEOFF]
	b	LBB0_21
LBB0_7:
	ldr	w0, [x20, #24]
Lloh13:
	adrp	x1, l_.str.7@PAGE
Lloh14:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_15
LBB0_8:
	ldr	w0, [x20, #32]
	bl	_is_ab8500
	cbz	w0, LBB0_24
; %bb.9:
	mov	w8, #1
	str	w8, [x20, #28]
	ldr	w0, [x20, #24]
Lloh15:
	adrp	x1, l_.str.5@PAGE
Lloh16:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	b	LBB0_16
LBB0_10:
	ldr	w0, [x20, #24]
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	mov	w21, #0
Lloh19:
	adrp	x8, _USB_CH_IP_CUR_LVL_0P5@GOTPAGE
Lloh20:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_0P5@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	ldr	w8, [x20, #36]
	cbz	w8, LBB0_14
; %bb.12:
	mov	w8, #1
	str	w8, [x20]
	ldr	w0, [x20, #24]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	mov	w21, #0
Lloh23:
	adrp	x8, _USB_CH_IP_CUR_LVL_1P5@GOTPAGE
Lloh24:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_1P5@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	b	LBB0_23
LBB0_14:
	ldr	w0, [x20, #24]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_15:
	bl	_dev_err
Lloh27:
	adrp	x8, _USB_CH_IP_CUR_LVL_0P05@GOTPAGE
Lloh28:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_0P05@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x20, #16]
LBB0_16:
Lloh30:
	adrp	x8, _ENXIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_23
LBB0_17:
	mov	w21, #0
Lloh33:
	adrp	x8, _USB_CH_IP_CUR_LVL_1P5@GOTPAGE
Lloh34:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_1P5@GOTPAGEOFF]
	b	LBB0_5
LBB0_18:
	mov	w21, #0
Lloh35:
	adrp	x8, _USB_CH_IP_CUR_LVL_0P9@GOTPAGE
Lloh36:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_0P9@GOTPAGEOFF]
	b	LBB0_5
LBB0_19:
Lloh37:
	adrp	x8, _USB_CH_IP_CUR_LVL_1P3@GOTPAGE
Lloh38:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_1P3@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	w0, [x20, #24]
	mov	w9, #145
	stp	x9, x8, [sp]
Lloh40:
	adrp	x1, l_.str.2@PAGE
Lloh41:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w21, #0
	b	LBB0_22
LBB0_20:
	ldr	w0, [x20, #24]
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	w21, #0
Lloh44:
	adrp	x8, _USB_CH_IP_CUR_LVL_0P5@GOTPAGE
Lloh45:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_0P5@GOTPAGEOFF]
LBB0_21:
	ldr	x8, [x8]
	str	x8, [x20, #16]
LBB0_22:
	mov	w8, #1
	str	w8, [x20, #4]
LBB0_23:
	ldr	x8, [x20, #16]
	str	x8, [x20, #8]
	ldr	w0, [x20, #24]
	stp	x19, x8, [sp]
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	x0, x21
	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_24:
	ldr	w0, [x20, #24]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
Lloh50:
	adrp	x8, _USB_CH_IP_CUR_LVL_0P05@GOTPAGE
Lloh51:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_0P05@GOTPAGEOFF]
Lloh52:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	w0, [x20, #24]
	mov	w9, #131
	stp	x9, x8, [sp]
Lloh53:
	adrp	x1, l_.str.2@PAGE
Lloh54:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"USB Type - Standard host is detected through USB driver\n"

	.comm	_USB_CH_IP_CUR_LVL_0P5,8,3      ; @USB_CH_IP_CUR_LVL_0P5
	.comm	_USB_CH_IP_CUR_LVL_0P9,8,3      ; @USB_CH_IP_CUR_LVL_0P9
l_.str.1:                               ; @.str.1
	.asciz	"USB_STAT_ACA_RID_A detected\n"

	.comm	_USB_CH_IP_CUR_LVL_1P3,8,3      ; @USB_CH_IP_CUR_LVL_1P3
l_.str.2:                               ; @.str.2
	.asciz	"USB Type - 0x%02x MaxCurr: %d"

	.comm	_USB_CH_IP_CUR_LVL_1P5,8,3      ; @USB_CH_IP_CUR_LVL_1P5
l_.str.3:                               ; @.str.3
	.asciz	"USB Type - Legacy charger.\n"

l_.str.4:                               ; @.str.4
	.asciz	"USB Type - Charging not allowed\n"

	.comm	_USB_CH_IP_CUR_LVL_0P05,8,3     ; @USB_CH_IP_CUR_LVL_0P05
	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.5:                               ; @.str.5
	.asciz	"USB Type - USB_STAT_RESERVED VBUS has collapsed\n"

l_.str.6:                               ; @.str.6
	.asciz	"USB Type invalid - try charging anyway\n"

l_.str.7:                               ; @.str.7
	.asciz	"USB Type - Unknown\n"

	.no_dead_strip	_ab8500_charger_max_usb_curr
.subsections_via_symbols
