	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77843_muic_dock_handler
_max77843_muic_dock_handler:            ## @max77843_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_MAX77843_MUIC_CONTROL1_SW_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%ebx, %ecx
	callq	_max77843_muic_set_path
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_EXTCON_DISP_MHL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_extcon_set_state_sync
	movl	(%r14), %edi
	movq	_EXTCON_USB_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_extcon_set_state_sync
	movl	(%r14), %edi
	movq	_EXTCON_DOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_extcon_set_state_sync
	xorl	%eax, %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"external connector is %s (adc: 0x10)\n"

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

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

	.comm	_MAX77843_MUIC_CONTROL1_SW_USB,4,2 ## @MAX77843_MUIC_CONTROL1_SW_USB
	.comm	_EXTCON_DISP_MHL,4,2            ## @EXTCON_DISP_MHL
	.comm	_EXTCON_USB_HOST,4,2            ## @EXTCON_USB_HOST
	.comm	_EXTCON_DOCK,4,2                ## @EXTCON_DOCK
	.no_dead_strip	_max77843_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 max77843_muic_dock_handler
_max77843_muic_dock_handler:            ; @max77843_muic_dock_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, 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	w1, #0
	csel	x2, x9, x8, eq
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh6:
	adrp	x8, _MAX77843_MUIC_CONTROL1_SW_USB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX77843_MUIC_CONTROL1_SW_USB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x19
	bl	_max77843_muic_set_path
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _EXTCON_DISP_MHL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXTCON_DISP_MHL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_extcon_set_state_sync
	ldr	w0, [x20]
Lloh12:
	adrp	x8, _EXTCON_USB_HOST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXTCON_USB_HOST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_extcon_set_state_sync
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _EXTCON_DOCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXTCON_DOCK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_extcon_set_state_sync
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"external connector is %s (adc: 0x10)\n"

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

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

	.comm	_MAX77843_MUIC_CONTROL1_SW_USB,4,2 ; @MAX77843_MUIC_CONTROL1_SW_USB
	.comm	_EXTCON_DISP_MHL,4,2            ; @EXTCON_DISP_MHL
	.comm	_EXTCON_USB_HOST,4,2            ; @EXTCON_USB_HOST
	.comm	_EXTCON_DOCK,4,2                ; @EXTCON_DOCK
	.no_dead_strip	_max77843_muic_dock_handler
.subsections_via_symbols
