	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_muic_get_cable_type
_max77693_muic_get_cable_type:          ## @max77693_muic_get_cable_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_15
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_11:
	movq	(%rdi), %rsi
	movq	_MAX77693_STATUS1_ADC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rsi), %eax
	movq	_MAX77693_STATUS1_ADC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_MAX77693_MUIC_ADC_OPEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.12:
	movq	_MAX77693_STATUS2_CHGTYP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	4(%rsi), %edi
	movq	_MAX77693_STATUS2_CHGTYP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edi
	movq	_MAX77693_CHARGER_TYPE_NONE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	(%rcx), %edi
	je	LBB0_14
LBB0_13:
	movl	$1, %eax
LBB0_14:
	movl	%eax, (%rdx)
	movq	_MAX77693_STATUS2_VBVOLT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rsi), %eax
	movq	_MAX77693_STATUS2_VBVOLT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	(%rdi), %r8
	movq	_MAX77693_STATUS1_ADC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	(%r8), %esi
	movq	_MAX77693_STATUS1_ADC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %esi
	movq	_MAX77693_MUIC_ADC_OPEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %esi
	jne	LBB0_7
## %bb.6:
	movl	$0, (%rdx)
	movl	12(%rdi), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rdi)
	popq	%rbp
	retq
LBB0_2:
	movq	(%rdi), %rcx
	movq	_MAX77693_STATUS1_ADC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rcx), %eax
	movq	_MAX77693_STATUS1_ADC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_MAX77693_MUIC_ADC_OPEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movl	$0, (%rdx)
	movl	8(%rdi), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rdi)
	popq	%rbp
	retq
LBB0_15:
	movl	20(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	movq	(%rdi), %rcx
	movq	_MAX77693_STATUS2_CHGTYP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rcx), %eax
	movq	_MAX77693_STATUS2_CHGTYP_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_MAX77693_CHARGER_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	$0, (%rdx)
	movl	16(%rdi), %eax
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rdi)
	popq	%rbp
	retq
LBB0_7:
	movl	$1, (%rdx)
	movl	(%r8), %r9d
	movq	_MAX77693_STATUS1_ADCLOW_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r9d, %eax
	movq	_MAX77693_STATUS1_ADCLOW_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_MAX77693_STATUS1_ADC1K_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r9d
	movq	_MAX77693_STATUS1_ADC1K_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r9d
	movq	_MAX77693_STATUS2_VBVOLT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	4(%r8), %edx
	movq	_MAX77693_STATUS2_VBVOLT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	shll	$2, %edx
	addl	%eax, %eax
	orl	%r9d, %eax
	orl	%edx, %eax
	orl	$256, %eax                      ## imm = 0x100
	movl	%esi, 8(%rdi)
	movl	%eax, 12(%rdi)
	popq	%rbp
	retq
LBB0_4:
	movl	$1, (%rdx)
	movl	%eax, 8(%rdi)
	popq	%rbp
	retq
LBB0_10:
	movl	$1, (%rdx)
	movl	%eax, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_11
	.long	L0_0_set_8
	.long	L0_0_set_5
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_MAX77693_STATUS1_ADC_MASK,4,2  ## @MAX77693_STATUS1_ADC_MASK
	.comm	_MAX77693_STATUS1_ADC_SHIFT,4,2 ## @MAX77693_STATUS1_ADC_SHIFT
	.comm	_MAX77693_MUIC_ADC_OPEN,4,2     ## @MAX77693_MUIC_ADC_OPEN
	.comm	_MAX77693_STATUS1_ADCLOW_MASK,4,2 ## @MAX77693_STATUS1_ADCLOW_MASK
	.comm	_MAX77693_STATUS1_ADCLOW_SHIFT,4,2 ## @MAX77693_STATUS1_ADCLOW_SHIFT
	.comm	_MAX77693_STATUS1_ADC1K_MASK,4,2 ## @MAX77693_STATUS1_ADC1K_MASK
	.comm	_MAX77693_STATUS1_ADC1K_SHIFT,4,2 ## @MAX77693_STATUS1_ADC1K_SHIFT
	.comm	_MAX77693_STATUS2_VBVOLT_MASK,4,2 ## @MAX77693_STATUS2_VBVOLT_MASK
	.comm	_MAX77693_STATUS2_VBVOLT_SHIFT,4,2 ## @MAX77693_STATUS2_VBVOLT_SHIFT
	.comm	_MAX77693_STATUS2_CHGTYP_MASK,4,2 ## @MAX77693_STATUS2_CHGTYP_MASK
	.comm	_MAX77693_STATUS2_CHGTYP_SHIFT,4,2 ## @MAX77693_STATUS2_CHGTYP_SHIFT
	.comm	_MAX77693_CHARGER_TYPE_NONE,4,2 ## @MAX77693_CHARGER_TYPE_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown cable group (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max77693_muic_get_cable_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_muic_get_cable_type
_max77693_muic_get_cable_type:          ; @max77693_muic_get_cable_type
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	w9, w1, #128
	cmp	w9, #3
	b.hi	LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _MAX77693_STATUS1_ADC_MASK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MAX77693_STATUS1_ADC_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh5:
	adrp	x10, _MAX77693_STATUS1_ADC_SHIFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _MAX77693_STATUS1_ADC_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh8:
	adrp	x10, _MAX77693_MUIC_ADC_OPEN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _MAX77693_MUIC_ADC_OPEN@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.3:
	ldr	w9, [x8, #4]
Lloh11:
	adrp	x10, _MAX77693_STATUS2_CHGTYP_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MAX77693_STATUS2_CHGTYP_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh14:
	adrp	x10, _MAX77693_STATUS2_CHGTYP_SHIFT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MAX77693_STATUS2_CHGTYP_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh17:
	adrp	x10, _MAX77693_CHARGER_TYPE_NONE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MAX77693_CHARGER_TYPE_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_12
; %bb.4:
	mov	w9, #0
	b	LBB0_13
LBB0_5:
	ldr	x8, [x0]
	ldr	w9, [x8]
Lloh20:
	adrp	x10, _MAX77693_STATUS1_ADC_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MAX77693_STATUS1_ADC_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh23:
	adrp	x10, _MAX77693_STATUS1_ADC_SHIFT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MAX77693_STATUS1_ADC_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh26:
	adrp	x10, _MAX77693_MUIC_ADC_OPEN@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MAX77693_MUIC_ADC_OPEN@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w9, w11
	b.ne	LBB0_14
; %bb.6:
	str	wzr, [x2]
	ldr	w8, [x0, #12]
	ldr	w9, [x10]
	str	w9, [x0, #12]
	b	LBB0_17
LBB0_7:
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _MAX77693_STATUS1_ADC_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MAX77693_STATUS1_ADC_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh31:
	adrp	x9, _MAX77693_STATUS1_ADC_SHIFT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MAX77693_STATUS1_ADC_SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh34:
	adrp	x9, _MAX77693_MUIC_ADC_OPEN@GOTPAGE
Lloh35:
	ldr	x9, [x9, _MAX77693_MUIC_ADC_OPEN@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, w10
	b.ne	LBB0_15
; %bb.8:
	str	wzr, [x2]
	ldr	w8, [x0, #8]
	ldr	w9, [x9]
	str	w9, [x0, #8]
	b	LBB0_17
LBB0_9:
	mov	x8, x1
	ldr	w0, [x0, #20]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x8
	bl	_dev_err
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_17
LBB0_10:
	ldr	x8, [x0]
	ldr	w8, [x8, #4]
Lloh41:
	adrp	x9, _MAX77693_STATUS2_CHGTYP_MASK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _MAX77693_STATUS2_CHGTYP_MASK@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh44:
	adrp	x9, _MAX77693_STATUS2_CHGTYP_SHIFT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _MAX77693_STATUS2_CHGTYP_SHIFT@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh47:
	adrp	x9, _MAX77693_CHARGER_TYPE_NONE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _MAX77693_CHARGER_TYPE_NONE@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w8, w10
	b.ne	LBB0_16
; %bb.11:
	str	wzr, [x2]
	ldr	w8, [x0, #16]
	ldr	w9, [x9]
	str	w9, [x0, #16]
	b	LBB0_17
LBB0_12:
	mov	w9, #1
LBB0_13:
	str	w9, [x2]
	ldr	w8, [x8, #4]
Lloh49:
	adrp	x9, _MAX77693_STATUS2_VBVOLT_MASK@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MAX77693_STATUS2_VBVOLT_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh52:
	adrp	x9, _MAX77693_STATUS2_VBVOLT_SHIFT@GOTPAGE
Lloh53:
	ldr	x9, [x9, _MAX77693_STATUS2_VBVOLT_SHIFT@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	asr	w8, w8, w9
	b	LBB0_17
LBB0_14:
	mov	w10, #1
Lloh55:
	adrp	x11, _MAX77693_STATUS1_ADCLOW_MASK@GOTPAGE
Lloh56:
	ldr	x11, [x11, _MAX77693_STATUS1_ADCLOW_MASK@GOTPAGEOFF]
	str	w10, [x2]
Lloh57:
	ldr	w10, [x11]
Lloh58:
	adrp	x11, _MAX77693_STATUS1_ADCLOW_SHIFT@GOTPAGE
Lloh59:
	ldr	x11, [x11, _MAX77693_STATUS1_ADCLOW_SHIFT@GOTPAGEOFF]
	ldp	w12, w8, [x8]
	and	w10, w10, w12
Lloh60:
	ldr	w11, [x11]
	asr	w10, w10, w11
Lloh61:
	adrp	x11, _MAX77693_STATUS1_ADC1K_MASK@GOTPAGE
Lloh62:
	ldr	x11, [x11, _MAX77693_STATUS1_ADC1K_MASK@GOTPAGEOFF]
Lloh63:
	ldr	w11, [x11]
	and	w11, w11, w12
Lloh64:
	adrp	x12, _MAX77693_STATUS1_ADC1K_SHIFT@GOTPAGE
Lloh65:
	ldr	x12, [x12, _MAX77693_STATUS1_ADC1K_SHIFT@GOTPAGEOFF]
Lloh66:
	ldr	w12, [x12]
Lloh67:
	adrp	x13, _MAX77693_STATUS2_VBVOLT_MASK@GOTPAGE
Lloh68:
	ldr	x13, [x13, _MAX77693_STATUS2_VBVOLT_MASK@GOTPAGEOFF]
	asr	w11, w11, w12
Lloh69:
	ldr	w12, [x13]
	and	w8, w12, w8
Lloh70:
	adrp	x12, _MAX77693_STATUS2_VBVOLT_SHIFT@GOTPAGE
Lloh71:
	ldr	x12, [x12, _MAX77693_STATUS2_VBVOLT_SHIFT@GOTPAGEOFF]
Lloh72:
	ldr	w12, [x12]
	asr	w8, w8, w12
	orr	w10, w11, w10, lsl #1
	orr	w8, w10, w8, lsl #2
	orr	w8, w8, #0x100
	stp	w9, w8, [x0, #8]
	b	LBB0_17
LBB0_15:
	mov	w9, #1
	str	w9, [x2]
	str	w8, [x0, #8]
	b	LBB0_17
LBB0_16:
	mov	w9, #1
	str	w9, [x2]
	str	w8, [x0, #16]
LBB0_17:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX77693_STATUS1_ADC_MASK,4,2  ; @MAX77693_STATUS1_ADC_MASK
	.comm	_MAX77693_STATUS1_ADC_SHIFT,4,2 ; @MAX77693_STATUS1_ADC_SHIFT
	.comm	_MAX77693_MUIC_ADC_OPEN,4,2     ; @MAX77693_MUIC_ADC_OPEN
	.comm	_MAX77693_STATUS1_ADCLOW_MASK,4,2 ; @MAX77693_STATUS1_ADCLOW_MASK
	.comm	_MAX77693_STATUS1_ADCLOW_SHIFT,4,2 ; @MAX77693_STATUS1_ADCLOW_SHIFT
	.comm	_MAX77693_STATUS1_ADC1K_MASK,4,2 ; @MAX77693_STATUS1_ADC1K_MASK
	.comm	_MAX77693_STATUS1_ADC1K_SHIFT,4,2 ; @MAX77693_STATUS1_ADC1K_SHIFT
	.comm	_MAX77693_STATUS2_VBVOLT_MASK,4,2 ; @MAX77693_STATUS2_VBVOLT_MASK
	.comm	_MAX77693_STATUS2_VBVOLT_SHIFT,4,2 ; @MAX77693_STATUS2_VBVOLT_SHIFT
	.comm	_MAX77693_STATUS2_CHGTYP_MASK,4,2 ; @MAX77693_STATUS2_CHGTYP_MASK
	.comm	_MAX77693_STATUS2_CHGTYP_SHIFT,4,2 ; @MAX77693_STATUS2_CHGTYP_SHIFT
	.comm	_MAX77693_CHARGER_TYPE_NONE,4,2 ; @MAX77693_CHARGER_TYPE_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown cable group (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_max77693_muic_get_cable_type
.subsections_via_symbols
