	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ab8500_charger_get_usb_cur
_ab8500_charger_get_usb_cur:            ## @ab8500_charger_get_usb_cur
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	8(%rdi), %eax
	cmpl	$299, %eax                      ## imm = 0x12B
	jle	LBB0_1
## %bb.4:
	cmpl	$300, %eax                      ## imm = 0x12C
	je	LBB0_10
## %bb.5:
	cmpl	$400, %eax                      ## imm = 0x190
	je	LBB0_11
## %bb.6:
	cmpl	$500, %eax                      ## imm = 0x1F4
	jne	LBB0_12
## %bb.7:
	movq	_USB_CH_IP_CUR_LVL_0P5@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	cmpl	$100, %eax
	je	LBB0_8
## %bb.2:
	cmpl	$200, %eax
	jne	LBB0_12
## %bb.3:
	movq	_USB_CH_IP_CUR_LVL_0P19@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_USB_CH_IP_CUR_LVL_0P29@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	_USB_CH_IP_CUR_LVL_0P38@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_USB_CH_IP_CUR_LVL_0P09@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ecx
	movl	%ecx, (%rdi)
	xorl	%eax, %eax
LBB0_13:
	movl	%ecx, 4(%rdi)
	popq	%rbp
	retq
LBB0_12:
	movq	_USB_CH_IP_CUR_LVL_0P05@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rdi)
	movq	_EPERM@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_CH_IP_CUR_LVL_0P09,4,2     ## @USB_CH_IP_CUR_LVL_0P09
	.comm	_USB_CH_IP_CUR_LVL_0P19,4,2     ## @USB_CH_IP_CUR_LVL_0P19
	.comm	_USB_CH_IP_CUR_LVL_0P29,4,2     ## @USB_CH_IP_CUR_LVL_0P29
	.comm	_USB_CH_IP_CUR_LVL_0P38,4,2     ## @USB_CH_IP_CUR_LVL_0P38
	.comm	_USB_CH_IP_CUR_LVL_0P5,4,2      ## @USB_CH_IP_CUR_LVL_0P5
	.comm	_USB_CH_IP_CUR_LVL_0P05,4,2     ## @USB_CH_IP_CUR_LVL_0P05
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_ab8500_charger_get_usb_cur
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ab8500_charger_get_usb_cur
_ab8500_charger_get_usb_cur:            ; @ab8500_charger_get_usb_cur
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #8]
	cmp	w8, #299
	b.le	LBB0_5
; %bb.1:
	cmp	w8, #300
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #400
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #500
	b.ne	LBB0_13
; %bb.4:
	mov	w8, #0
Lloh0:
	adrp	x9, _USB_CH_IP_CUR_LVL_0P5@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_CH_IP_CUR_LVL_0P5@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	cmp	w8, #100
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #200
	b.ne	LBB0_13
; %bb.7:
	mov	w8, #0
Lloh2:
	adrp	x9, _USB_CH_IP_CUR_LVL_0P19@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USB_CH_IP_CUR_LVL_0P19@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	mov	w8, #0
Lloh4:
	adrp	x9, _USB_CH_IP_CUR_LVL_0P29@GOTPAGE
Lloh5:
	ldr	x9, [x9, _USB_CH_IP_CUR_LVL_0P29@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	mov	w8, #0
Lloh6:
	adrp	x9, _USB_CH_IP_CUR_LVL_0P38@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_CH_IP_CUR_LVL_0P38@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	mov	w8, #0
Lloh8:
	adrp	x9, _USB_CH_IP_CUR_LVL_0P09@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_CH_IP_CUR_LVL_0P09@GOTPAGEOFF]
LBB0_11:
	ldr	w9, [x9]
	str	w9, [x0]
LBB0_12:
	str	w9, [x0, #4]
	mov	x0, x8
	ret
LBB0_13:
Lloh10:
	adrp	x8, _USB_CH_IP_CUR_LVL_0P05@GOTPAGE
Lloh11:
	ldr	x8, [x8, _USB_CH_IP_CUR_LVL_0P05@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x8]
	str	w9, [x0]
Lloh13:
	adrp	x8, _EPERM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_CH_IP_CUR_LVL_0P09,4,2     ; @USB_CH_IP_CUR_LVL_0P09
	.comm	_USB_CH_IP_CUR_LVL_0P19,4,2     ; @USB_CH_IP_CUR_LVL_0P19
	.comm	_USB_CH_IP_CUR_LVL_0P29,4,2     ; @USB_CH_IP_CUR_LVL_0P29
	.comm	_USB_CH_IP_CUR_LVL_0P38,4,2     ; @USB_CH_IP_CUR_LVL_0P38
	.comm	_USB_CH_IP_CUR_LVL_0P5,4,2      ; @USB_CH_IP_CUR_LVL_0P5
	.comm	_USB_CH_IP_CUR_LVL_0P05,4,2     ; @USB_CH_IP_CUR_LVL_0P05
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_ab8500_charger_get_usb_cur
.subsections_via_symbols
