	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_muic_dock_handler
_max77693_muic_dock_handler:            ## @max77693_muic_dock_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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	testl	%edx, %edx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r15
	cmoveq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_dev_info
	cmpl	$130, %ebx
	je	LBB0_11
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_8
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_10
## %bb.3:
	movq	_MAX77693_CABLE_GROUP_VBVOLT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r12, %rdi
	callq	_max77693_muic_get_cable_type
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	4(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_15
LBB0_11:
	movq	_EXTCON_DOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_12
LBB0_8:
	movq	_EXTCON_DOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r14d, %r14d
	jne	LBB0_12
## %bb.9:
	movl	(%r12), %edi
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_extcon_set_state_sync
	movl	(%r12), %edi
	movq	_EXTCON_CHG_USB_SDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_extcon_set_state_sync
LBB0_12:
	movq	_MAX77693_CONTROL1_SW_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_max77693_muic_set_path
	testl	%eax, %eax
	js	LBB0_16
## %bb.13:
	movl	(%r12), %edi
	movl	%r15d, %esi
	jmp	LBB0_14
LBB0_10:
	movl	4(%r12), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_16
LBB0_6:
	movl	8(%r12), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_max77693_muic_set_path
	testl	%eax, %eax
	js	LBB0_16
## %bb.7:
	movl	(%r12), %edi
	movq	_EXTCON_DOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_extcon_set_state_sync
	movl	(%r12), %edi
	movq	_EXTCON_DISP_MHL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_14:
	movl	%r14d, %edx
	callq	_extcon_set_state_sync
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"external connector is %s (adc:0x%02x)\n"

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

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

	.comm	_MAX77693_CABLE_GROUP_VBVOLT,4,2 ## @MAX77693_CABLE_GROUP_VBVOLT
L_.str.3:                               ## @.str.3
	.asciz	"Cannot detect external power supply\n"

	.comm	_EXTCON_DOCK,4,2                ## @EXTCON_DOCK
	.comm	_EXTCON_DISP_MHL,4,2            ## @EXTCON_DISP_MHL
	.comm	_EXTCON_USB,4,2                 ## @EXTCON_USB
	.comm	_EXTCON_CHG_USB_SDP,4,2         ## @EXTCON_CHG_USB_SDP
L_.str.4:                               ## @.str.4
	.asciz	"failed to detect %s dock device\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX77693_CONTROL1_SW_AUDIO,4,2 ## @MAX77693_CONTROL1_SW_AUDIO
	.no_dead_strip	_max77693_muic_dock_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_dock_handler
_max77693_muic_dock_handler:            ; @max77693_muic_dock_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, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w2, #0
	csel	x21, x9, x8, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_dev_info
	cmp	w22, #130
	b.eq	LBB0_6
; %bb.1:
	cmp	w22, #129
	b.eq	LBB0_7
; %bb.2:
	cmp	w22, #128
	b.ne	LBB0_11
; %bb.3:
Lloh6:
	adrp	x8, _MAX77693_CABLE_GROUP_VBVOLT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX77693_CABLE_GROUP_VBVOLT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_max77693_muic_get_cable_type
	cbz	w19, LBB0_12
; %bb.4:
	cbnz	w0, LBB0_12
; %bb.5:
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	b	LBB0_15
LBB0_6:
Lloh11:
	adrp	x8, _EXTCON_DOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EXTCON_DOCK@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x8, _EXTCON_DOCK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EXTCON_DOCK@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	cbnz	w19, LBB0_9
; %bb.8:
	ldr	w0, [x20]
Lloh17:
	adrp	x8, _EXTCON_USB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EXTCON_USB@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_extcon_set_state_sync
	ldr	w0, [x20]
Lloh20:
	adrp	x8, _EXTCON_CHG_USB_SDP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EXTCON_CHG_USB_SDP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_extcon_set_state_sync
LBB0_9:
Lloh23:
	adrp	x8, _MAX77693_CONTROL1_SW_AUDIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX77693_CONTROL1_SW_AUDIO@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_max77693_muic_set_path
	tbnz	w0, #31, LBB0_16
; %bb.10:
	ldr	w0, [x20]
	mov	x1, x21
	b	LBB0_14
LBB0_11:
	ldr	w0, [x20, #4]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_dev_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_12:
	ldr	w1, [x20, #8]
	mov	x0, x20
	mov	x2, x19
	bl	_max77693_muic_set_path
	tbnz	w0, #31, LBB0_16
; %bb.13:
	ldr	w0, [x20]
Lloh31:
	adrp	x8, _EXTCON_DOCK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EXTCON_DOCK@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_extcon_set_state_sync
	ldr	w0, [x20]
Lloh34:
	adrp	x8, _EXTCON_DISP_MHL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EXTCON_DISP_MHL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
LBB0_14:
	mov	x2, x19
	bl	_extcon_set_state_sync
LBB0_15:
	mov	w0, #0
LBB0_16:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"external connector is %s (adc:0x%02x)\n"

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

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

	.comm	_MAX77693_CABLE_GROUP_VBVOLT,4,2 ; @MAX77693_CABLE_GROUP_VBVOLT
l_.str.3:                               ; @.str.3
	.asciz	"Cannot detect external power supply\n"

	.comm	_EXTCON_DOCK,4,2                ; @EXTCON_DOCK
	.comm	_EXTCON_DISP_MHL,4,2            ; @EXTCON_DISP_MHL
	.comm	_EXTCON_USB,4,2                 ; @EXTCON_USB
	.comm	_EXTCON_CHG_USB_SDP,4,2         ; @EXTCON_CHG_USB_SDP
l_.str.4:                               ; @.str.4
	.asciz	"failed to detect %s dock device\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX77693_CONTROL1_SW_AUDIO,4,2 ; @MAX77693_CONTROL1_SW_AUDIO
	.no_dead_strip	_max77693_muic_dock_handler
.subsections_via_symbols
