	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_muic_chg_handler
_max77693_muic_chg_handler:             ## @max77693_muic_chg_handler
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_MAX77693_CABLE_GROUP_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_max77693_muic_get_cable_type
	movl	%eax, %r15d
	cmpl	$0, -36(%rbp)
	leaq	L_.str.2(%rip), %r14
	leaq	L_.str.1(%rip), %rbx
	movq	%rbx, %rdx
	cmoveq	%r14, %rdx
	movl	(%r12), %edi
	movl	12(%r12), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	callq	_dev_info
	leal	-132(%r15), %eax
	cmpl	$6, %eax
	ja	LBB0_8
## %bb.1:
	xorl	%r14d, %r14d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_MAX77693_CABLE_GROUP_ADC_GND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	_max77693_muic_get_cable_type
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movl	4(%r12), %edi
	movq	_EXTCON_CHG_USB_DCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	callq	_extcon_set_state_sync
	movl	4(%r12), %edi
	movq	_EXTCON_DISP_MHL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-40(%rbp), %edx
	callq	_extcon_set_state_sync
LBB0_4:
	movq	_MAX77693_CABLE_GROUP_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	callq	_max77693_muic_get_cable_type
	cmpl	$130, %eax
	je	LBB0_12
## %bb.5:
	cmpl	$131, %eax
	jne	LBB0_15
## %bb.6:
	movl	4(%r12), %edi
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	callq	_extcon_set_state_sync
	movl	4(%r12), %edi
	movq	_EXTCON_CHG_USB_SDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	callq	_extcon_set_state_sync
	cmpl	$0, -40(%rbp)
	jne	LBB0_15
## %bb.7:
	movl	4(%r12), %edi
	movq	_EXTCON_DOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_14
LBB0_8:
	movl	(%r12), %edi
	cmpl	$0, -36(%rbp)
	cmoveq	%r14, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_21
LBB0_9:
	movl	4(%r12), %edi
	movq	_EXTCON_CHG_USB_CDP@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_10:
	movl	4(%r12), %edi
	movq	_EXTCON_CHG_USB_SLOW@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_11:
	movl	4(%r12), %edi
	movq	_EXTCON_CHG_USB_FAST@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_12:
	movl	8(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%r12, %rdi
	callq	_max77693_muic_set_path
	testl	%eax, %eax
	js	LBB0_23
## %bb.13:
	movl	4(%r12), %edi
	movq	_EXTCON_DOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	callq	_extcon_set_state_sync
	movl	4(%r12), %edi
	movq	_EXTCON_DISP_MHL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
LBB0_14:
	callq	_extcon_set_state_sync
LBB0_15:
	cmpl	$135, %r15d
	je	LBB0_19
## %bb.16:
	cmpl	$132, %r15d
	jne	LBB0_21
## %bb.17:
	movl	8(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%r12, %rdi
	callq	_max77693_muic_set_path
	testl	%eax, %eax
	js	LBB0_23
## %bb.18:
	movl	4(%r12), %edi
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	callq	_extcon_set_state_sync
	movl	4(%r12), %edi
	movq	_EXTCON_CHG_USB_SDP@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_19:
	movl	4(%r12), %edi
	movq	_EXTCON_CHG_USB_DCP@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %esi
	movl	-36(%rbp), %edx
	callq	_extcon_set_state_sync
LBB0_21:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%eax, %r14d
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_2
	.long	L0_0_set_21
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_MAX77693_CABLE_GROUP_CHG,4,2   ## @MAX77693_CABLE_GROUP_CHG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"external connector is %s(chg_type:0x%x, prev_chg_type:0x%x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"attached"

L_.str.2:                               ## @.str.2
	.asciz	"detached"

	.comm	_MAX77693_CABLE_GROUP_ADC_GND,4,2 ## @MAX77693_CABLE_GROUP_ADC_GND
	.comm	_EXTCON_CHG_USB_DCP,4,2         ## @EXTCON_CHG_USB_DCP
	.comm	_EXTCON_DISP_MHL,4,2            ## @EXTCON_DISP_MHL
	.comm	_MAX77693_CABLE_GROUP_ADC,4,2   ## @MAX77693_CABLE_GROUP_ADC
	.comm	_EXTCON_USB,4,2                 ## @EXTCON_USB
	.comm	_EXTCON_CHG_USB_SDP,4,2         ## @EXTCON_CHG_USB_SDP
	.comm	_EXTCON_DOCK,4,2                ## @EXTCON_DOCK
	.comm	_EXTCON_CHG_USB_CDP,4,2         ## @EXTCON_CHG_USB_CDP
	.comm	_EXTCON_CHG_USB_SLOW,4,2        ## @EXTCON_CHG_USB_SLOW
	.comm	_EXTCON_CHG_USB_FAST,4,2        ## @EXTCON_CHG_USB_FAST
L_.str.3:                               ## @.str.3
	.asciz	"failed to detect %s accessory (chg_type:0x%x)\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_muic_chg_handler
_max77693_muic_chg_handler:             ; @max77693_muic_chg_handler
	.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, x0
Lloh0:
	adrp	x8, _MAX77693_CABLE_GROUP_CHG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77693_CABLE_GROUP_CHG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_max77693_muic_get_cable_type
	mov	x20, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x21, l_.str.1@PAGE
Lloh4:
	add	x21, x21, l_.str.1@PAGEOFF
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x22, l_.str.2@PAGE
Lloh6:
	add	x22, x22, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x2, x22, x21, eq
	ldr	w4, [x19, #12]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	bl	_dev_info
	sub	w8, w20, #132
	cmp	w8, #6
	b.hi	LBB0_8
; %bb.1:
	mov	w0, #0
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh11:
	adrp	x8, _MAX77693_CABLE_GROUP_ADC_GND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX77693_CABLE_GROUP_ADC_GND@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_max77693_muic_get_cable_type
	and	w8, w0, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x8, _EXTCON_CHG_USB_DCP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXTCON_CHG_USB_DCP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_extcon_set_state_sync
	ldr	w0, [x19, #4]
Lloh17:
	adrp	x8, _EXTCON_DISP_MHL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXTCON_DISP_MHL@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	bl	_extcon_set_state_sync
LBB0_4:
Lloh20:
	adrp	x8, _MAX77693_CABLE_GROUP_ADC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MAX77693_CABLE_GROUP_ADC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_max77693_muic_get_cable_type
	cmp	w0, #130
	b.eq	LBB0_12
; %bb.5:
	cmp	w0, #131
	b.ne	LBB0_15
; %bb.6:
	ldr	w0, [x19, #4]
Lloh23:
	adrp	x8, _EXTCON_USB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXTCON_USB@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_extcon_set_state_sync
	ldr	w0, [x19, #4]
Lloh26:
	adrp	x8, _EXTCON_CHG_USB_SDP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EXTCON_CHG_USB_SDP@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_extcon_set_state_sync
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_15
; %bb.7:
	ldr	w0, [x19, #4]
Lloh29:
	adrp	x8, _EXTCON_DOCK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EXTCON_DOCK@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	w2, #0
	b	LBB0_14
LBB0_8:
	ldr	w0, [x19]
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csel	x2, x22, x21, eq
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x20
	bl	_dev_err
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_9:
	ldr	w0, [x19, #4]
Lloh37:
	adrp	x8, _EXTCON_CHG_USB_CDP@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EXTCON_CHG_USB_CDP@GOTPAGEOFF]
	b	LBB0_20
LBB0_10:
	ldr	w0, [x19, #4]
Lloh39:
	adrp	x8, _EXTCON_CHG_USB_SLOW@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EXTCON_CHG_USB_SLOW@GOTPAGEOFF]
	b	LBB0_20
LBB0_11:
	ldr	w0, [x19, #4]
Lloh41:
	adrp	x8, _EXTCON_CHG_USB_FAST@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EXTCON_CHG_USB_FAST@GOTPAGEOFF]
	b	LBB0_20
LBB0_12:
	ldr	w1, [x19, #8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_max77693_muic_set_path
	tbnz	w0, #31, LBB0_22
; %bb.13:
	ldr	w0, [x19, #4]
Lloh43:
	adrp	x8, _EXTCON_DOCK@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EXTCON_DOCK@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_extcon_set_state_sync
	ldr	w0, [x19, #4]
Lloh46:
	adrp	x8, _EXTCON_DISP_MHL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EXTCON_DISP_MHL@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
LBB0_14:
	bl	_extcon_set_state_sync
LBB0_15:
	cmp	w20, #135
	b.eq	LBB0_19
; %bb.16:
	cmp	w20, #132
	b.ne	LBB0_21
; %bb.17:
	ldr	w1, [x19, #8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_max77693_muic_set_path
	tbnz	w0, #31, LBB0_22
; %bb.18:
	ldr	w0, [x19, #4]
Lloh49:
	adrp	x8, _EXTCON_USB@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EXTCON_USB@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_extcon_set_state_sync
	ldr	w0, [x19, #4]
Lloh52:
	adrp	x8, _EXTCON_CHG_USB_SDP@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EXTCON_CHG_USB_SDP@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	ldr	w0, [x19, #4]
Lloh54:
	adrp	x8, _EXTCON_CHG_USB_DCP@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EXTCON_CHG_USB_DCP@GOTPAGEOFF]
LBB0_20:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_extcon_set_state_sync
LBB0_21:
	mov	w0, #0
LBB0_22:
	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
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh54, Lloh55
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX77693_CABLE_GROUP_CHG,4,2   ; @MAX77693_CABLE_GROUP_CHG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"external connector is %s(chg_type:0x%x, prev_chg_type:0x%x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"attached"

l_.str.2:                               ; @.str.2
	.asciz	"detached"

	.comm	_MAX77693_CABLE_GROUP_ADC_GND,4,2 ; @MAX77693_CABLE_GROUP_ADC_GND
	.comm	_EXTCON_CHG_USB_DCP,4,2         ; @EXTCON_CHG_USB_DCP
	.comm	_EXTCON_DISP_MHL,4,2            ; @EXTCON_DISP_MHL
	.comm	_MAX77693_CABLE_GROUP_ADC,4,2   ; @MAX77693_CABLE_GROUP_ADC
	.comm	_EXTCON_USB,4,2                 ; @EXTCON_USB
	.comm	_EXTCON_CHG_USB_SDP,4,2         ; @EXTCON_CHG_USB_SDP
	.comm	_EXTCON_DOCK,4,2                ; @EXTCON_DOCK
	.comm	_EXTCON_CHG_USB_CDP,4,2         ; @EXTCON_CHG_USB_CDP
	.comm	_EXTCON_CHG_USB_SLOW,4,2        ; @EXTCON_CHG_USB_SLOW
	.comm	_EXTCON_CHG_USB_FAST,4,2        ; @EXTCON_CHG_USB_FAST
l_.str.3:                               ; @.str.3
	.asciz	"failed to detect %s accessory (chg_type:0x%x)\n"

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