	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt8973a_muic_cable_handler
_rt8973a_muic_cable_handler:            ## @rt8973a_muic_cable_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %edx
	movq	%rdi, %r14
	leal	-161(%rdx), %eax
	cmpl	$2, %eax
	jb	LBB0_4
## %bb.1:
	cmpl	$163, %edx
	je	LBB0_7
## %bb.2:
	cmpl	$164, %edx
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_rt8973a_muic_get_cable_type
	movl	%eax, %edx
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_4:
	movl	4(%r14), %edi
	cmpl	$161, %edx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_8
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movl	_rt8973a_muic_cable_handler.prev_cable_type(%rip), %edx
LBB0_9:
	movl	%edx, _rt8973a_muic_cable_handler.prev_cable_type(%rip)
	leal	-128(%rdx), %esi
	cmpl	$32, %esi
	ja	LBB0_17
## %bb.10:
	xorl	%ebx, %ebx
	movq	_EXTCON_USB_HOST@GOTPCREL(%rip), %rcx
	movq	_DM_DP_SWITCH_USB@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_16:
	movl	4(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_15
LBB0_5:
	movl	4(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_14:
	movl	4(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_15:
	xorl	%ebx, %ebx
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_dev_warn
LBB0_23:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_EXTCON_JIG@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_12:
	movq	_EXTCON_JIG@GOTPCREL(%rip), %rcx
	movq	_DM_DP_SWITCH_UART@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movl	4(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_6
LBB0_13:
	movq	_EXTCON_USB@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_18:
	movq	_EXTCON_CHG_USB_DCP@GOTPCREL(%rip), %rcx
	movq	_DM_DP_SWITCH_OPEN@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rcx), %r12d
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_rt8973a_muic_set_path
	testl	%eax, %eax
	js	LBB0_20
## %bb.21:
	movl	(%r14), %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_extcon_set_state_sync
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_23
## %bb.22:
	movl	(%r14), %edi
	movq	_EXTCON_CHG_USB_SDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_extcon_set_state_sync
	jmp	LBB0_23
LBB0_20:
	movl	%eax, %ebx
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_18
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_23
	.long	L0_0_set_19
	.long	L0_0_set_23
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_rt8973a_muic_cable_handler.prev_cable_type,4,2 ## @rt8973a_muic_cable_handler.prev_cable_type
	.comm	_DM_DP_SWITCH_UART,4,2          ## @DM_DP_SWITCH_UART
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"happen Over %s issue. Need to disconnect all cables\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"Cannot handle this event (event:%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EXTCON_USB_HOST,4,2            ## @EXTCON_USB_HOST
	.comm	_DM_DP_SWITCH_USB,4,2           ## @DM_DP_SWITCH_USB
	.comm	_EXTCON_CHG_USB_DCP,4,2         ## @EXTCON_CHG_USB_DCP
	.comm	_DM_DP_SWITCH_OPEN,4,2          ## @DM_DP_SWITCH_OPEN
	.comm	_EXTCON_JIG,4,2                 ## @EXTCON_JIG
	.comm	_EXTCON_USB,4,2                 ## @EXTCON_USB
L_.str.4:                               ## @.str.4
	.asciz	"Unknown accessory type (adc:0x%x)\n"

L_.str.5:                               ## @.str.5
	.asciz	"Audio device/button type (adc:0x%x)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot handle this cable_type (adc:0x%x)\n"

	.comm	_EXTCON_CHG_USB_SDP,4,2         ## @EXTCON_CHG_USB_SDP
	.no_dead_strip	_rt8973a_muic_cable_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt8973a_muic_cable_handler
_rt8973a_muic_cable_handler:            ; @rt8973a_muic_cable_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	x2, x1
	mov	x19, x0
	sub	w8, w1, #161
	adrp	x21, _rt8973a_muic_cable_handler.prev_cable_type@PAGE
	cmp	w8, #2
	b.lo	LBB0_4
; %bb.1:
	cmp	w2, #163
	b.eq	LBB0_5
; %bb.2:
	cmp	w2, #164
	b.ne	LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_rt8973a_muic_get_cable_type
	mov	x2, x0
	mov	w20, #1
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, l_.str.2@PAGE
Lloh1:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w2, #161
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_5:
	mov	w20, #0
	ldr	w2, [x21, _rt8973a_muic_cable_handler.prev_cable_type@PAGEOFF]
LBB0_6:
	str	w2, [x21, _rt8973a_muic_cable_handler.prev_cable_type@PAGEOFF]
	sub	w10, w2, #128
	cmp	w10, #32
	b.hi	LBB0_14
; %bb.7:
	mov	w0, #0
Lloh6:
	adrp	x8, _EXTCON_USB_HOST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXTCON_USB_HOST@GOTPAGEOFF]
Lloh8:
	adrp	x9, _DM_DP_SWITCH_USB@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DM_DP_SWITCH_USB@GOTPAGEOFF]
Lloh10:
	adrp	x11, lJTI0_0@PAGE
Lloh11:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_8
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_8:
	ldr	w0, [x19, #4]
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
	str	x2, [sp]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_warn
	b	LBB0_21
LBB0_9:
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_11:
	ldr	w0, [x19, #4]
	str	x2, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_warn
	b	LBB0_21
LBB0_12:
Lloh21:
	adrp	x8, _EXTCON_JIG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EXTCON_JIG@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
Lloh23:
	adrp	x8, _EXTCON_JIG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EXTCON_JIG@GOTPAGEOFF]
Lloh25:
	adrp	x9, _DM_DP_SWITCH_UART@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DM_DP_SWITCH_UART@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
	ldr	w0, [x19, #4]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	b	LBB0_10
LBB0_15:
Lloh29:
	adrp	x8, _EXTCON_USB@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EXTCON_USB@GOTPAGEOFF]
LBB0_16:
Lloh31:
	adrp	x9, _DM_DP_SWITCH_USB@GOTPAGE
Lloh32:
	ldr	x9, [x9, _DM_DP_SWITCH_USB@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh33:
	adrp	x8, _EXTCON_CHG_USB_DCP@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EXTCON_CHG_USB_DCP@GOTPAGEOFF]
Lloh35:
	adrp	x9, _DM_DP_SWITCH_OPEN@GOTPAGE
Lloh36:
	ldr	x9, [x9, _DM_DP_SWITCH_OPEN@GOTPAGEOFF]
LBB0_18:
	ldr	w21, [x8]
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x20
	bl	_rt8973a_muic_set_path
	tbnz	w0, #31, LBB0_22
; %bb.19:
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_extcon_set_state_sync
Lloh37:
	adrp	x8, _EXTCON_USB@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EXTCON_USB@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_21
; %bb.20:
	ldr	w0, [x19]
Lloh40:
	adrp	x8, _EXTCON_CHG_USB_SDP@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EXTCON_CHG_USB_SDP@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x2, x20
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_17-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
	.byte	(LBB0_18-LBB0_8)>>2
	.byte	(LBB0_22-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
	.byte	(LBB0_13-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_8-LBB0_8)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_rt8973a_muic_cable_handler.prev_cable_type,4,2 ; @rt8973a_muic_cable_handler.prev_cable_type
	.comm	_DM_DP_SWITCH_UART,4,2          ; @DM_DP_SWITCH_UART
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"happen Over %s issue. Need to disconnect all cables\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"Cannot handle this event (event:%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EXTCON_USB_HOST,4,2            ; @EXTCON_USB_HOST
	.comm	_DM_DP_SWITCH_USB,4,2           ; @DM_DP_SWITCH_USB
	.comm	_EXTCON_CHG_USB_DCP,4,2         ; @EXTCON_CHG_USB_DCP
	.comm	_DM_DP_SWITCH_OPEN,4,2          ; @DM_DP_SWITCH_OPEN
	.comm	_EXTCON_JIG,4,2                 ; @EXTCON_JIG
	.comm	_EXTCON_USB,4,2                 ; @EXTCON_USB
l_.str.4:                               ; @.str.4
	.asciz	"Unknown accessory type (adc:0x%x)\n"

l_.str.5:                               ; @.str.5
	.asciz	"Audio device/button type (adc:0x%x)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot handle this cable_type (adc:0x%x)\n"

	.comm	_EXTCON_CHG_USB_SDP,4,2         ; @EXTCON_CHG_USB_SDP
	.no_dead_strip	_rt8973a_muic_cable_handler
.subsections_via_symbols
