	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_muic_adc_ground_handler
_max77693_muic_adc_ground_handler:      ## @max77693_muic_adc_ground_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MAX77693_CABLE_GROUP_ADC_GND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_max77693_muic_get_cable_type
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_5
## %bb.1:
	leal	-130(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_2
## %bb.8:
	movl	4(%rbx), %edi
	movq	_EXTCON_DISP_MHL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_MAX77693_CONTROL1_SW_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-12(%rbp), %edx
	movq	%rbx, %rdi
	callq	_max77693_muic_set_path
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movl	4(%rbx), %edi
	movq	_EXTCON_USB_HOST@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	cmpl	$132, %eax
	jne	LBB0_9
## %bb.3:
	movq	_MAX77693_CONTROL1_SW_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-12(%rbp), %edx
	movq	%rbx, %rdi
	callq	_max77693_muic_set_path
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movl	4(%rbx), %edi
	movq	_EXTCON_USB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-12(%rbp), %edx
	callq	_extcon_set_state_sync
	movl	4(%rbx), %edi
	movq	_EXTCON_CHG_USB_SDP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movl	-12(%rbp), %edx
	callq	_extcon_set_state_sync
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_9:
	movl	(%rbx), %edi
	cmpl	$0, -12(%rbp)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX77693_CABLE_GROUP_ADC_GND,4,2 ## @MAX77693_CABLE_GROUP_ADC_GND
	.comm	_MAX77693_CONTROL1_SW_USB,4,2   ## @MAX77693_CONTROL1_SW_USB
	.comm	_EXTCON_USB_HOST,4,2            ## @EXTCON_USB_HOST
	.comm	_MAX77693_CONTROL1_SW_AUDIO,4,2 ## @MAX77693_CONTROL1_SW_AUDIO
	.comm	_EXTCON_USB,4,2                 ## @EXTCON_USB
	.comm	_EXTCON_CHG_USB_SDP,4,2         ## @EXTCON_CHG_USB_SDP
	.comm	_EXTCON_DISP_MHL,4,2            ## @EXTCON_DISP_MHL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to detect %s cable of gnd type\n"

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

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

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max77693_muic_adc_ground_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_adc_ground_handler
_max77693_muic_adc_ground_handler:      ; @max77693_muic_adc_ground_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _MAX77693_CABLE_GROUP_ADC_GND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77693_CABLE_GROUP_ADC_GND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_max77693_muic_get_cable_type
	sub	w8, w0, #128
	cmp	w8, #2
	b.lo	LBB0_3
; %bb.1:
	sub	w8, w0, #130
	cmp	w8, #2
	b.hs	LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _EXTCON_DISP_MHL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXTCON_DISP_MHL@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _MAX77693_CONTROL1_SW_USB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX77693_CONTROL1_SW_USB@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_max77693_muic_set_path
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x8, _EXTCON_USB_HOST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXTCON_USB_HOST@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	cmp	w0, #132
	b.ne	LBB0_9
; %bb.6:
Lloh10:
	adrp	x8, _MAX77693_CONTROL1_SW_AUDIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MAX77693_CONTROL1_SW_AUDIO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_max77693_muic_set_path
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _EXTCON_USB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EXTCON_USB@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_extcon_set_state_sync
	ldr	w0, [x19, #4]
Lloh16:
	adrp	x8, _EXTCON_CHG_USB_SDP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXTCON_CHG_USB_SDP@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_extcon_set_state_sync
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19]
	ldr	w8, [sp, #12]
Lloh18:
	adrp	x9, l_.str.1@PAGE
Lloh19:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh20:
	adrp	x10, l_.str.2@PAGE
Lloh21:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX77693_CABLE_GROUP_ADC_GND,4,2 ; @MAX77693_CABLE_GROUP_ADC_GND
	.comm	_MAX77693_CONTROL1_SW_USB,4,2   ; @MAX77693_CONTROL1_SW_USB
	.comm	_EXTCON_USB_HOST,4,2            ; @EXTCON_USB_HOST
	.comm	_MAX77693_CONTROL1_SW_AUDIO,4,2 ; @MAX77693_CONTROL1_SW_AUDIO
	.comm	_EXTCON_USB,4,2                 ; @EXTCON_USB
	.comm	_EXTCON_CHG_USB_SDP,4,2         ; @EXTCON_CHG_USB_SDP
	.comm	_EXTCON_DISP_MHL,4,2            ; @EXTCON_DISP_MHL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to detect %s cable of gnd type\n"

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

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

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