	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_muic_adc_handler
_max77693_muic_adc_handler:             ## @max77693_muic_adc_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MAX77693_CABLE_GROUP_ADC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_max77693_muic_get_cable_type
	movl	%eax, %r14d
	cmpl	$0, -44(%rbp)
	leaq	L_.str.2(%rip), %r13
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rdx
	cmoveq	%r13, %rdx
	movl	4(%rbx), %edi
	movl	8(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movl	%r14d, %eax
	addl	$-128, %eax
	cmpl	$30, %eax
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	4(%rbx), %edi
	cmpl	$0, -44(%rbp)
	cmoveq	%r13, %r12
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r12, %rdx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_3:
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_9
## %bb.4:
	movl	%r14d, (%rbx)
	jmp	LBB0_10
LBB0_5:
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_max77693_muic_jig_handler
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_6
LBB0_7:
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_max77693_muic_dock_handler
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_6
LBB0_9:
	movl	(%rbx), %r14d
LBB0_10:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_max77693_muic_dock_button_handler
	testl	%eax, %eax
	jns	LBB0_14
LBB0_6:
	movl	%eax, %r15d
	jmp	LBB0_15
LBB0_12:
	movl	4(%rbx), %edi
	cmpl	$0, -44(%rbp)
	cmoveq	%r13, %r12
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdx
	movl	%r14d, %ecx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	callq	_max77693_muic_adc_ground_handler
LBB0_14:
	xorl	%r15d, %r15d
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MAX77693_CABLE_GROUP_ADC,4,2   ## @MAX77693_CABLE_GROUP_ADC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"external connector is %s (adc:0x%02x, prev_adc:0x%x)\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"accessory is %s but it isn't used (adc:0x%x)\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.4:                               ## @.str.4
	.asciz	"failed to detect %s accessory (adc:0x%x)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_max77693_muic_adc_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_handler
_max77693_muic_adc_handler:             ; @max77693_muic_adc_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	x20, x0
Lloh0:
	adrp	x8, _MAX77693_CABLE_GROUP_ADC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX77693_CABLE_GROUP_ADC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_max77693_muic_get_cable_type
	mov	x19, x0
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x21, l_.str.1@PAGE
Lloh4:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh5:
	adrp	x22, l_.str.2@PAGE
Lloh6:
	add	x22, x22, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x2, x22, x21, eq
	ldp	w0, w8, [x20, #4]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	bl	_dev_info
	sub	w8, w19, #128
	cmp	w8, #30
	b.hi	LBB0_10
; %bb.1:
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:
	ldr	w0, [x20, #4]
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csel	x2, x22, x21, eq
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x3, x19
	bl	_dev_info
Lloh13:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_4:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_8
; %bb.5:
	str	w19, [x20]
	b	LBB0_9
LBB0_6:
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_max77693_muic_jig_handler
	tbz	w0, #31, LBB0_12
	b	LBB0_13
LBB0_7:
	ldr	w2, [sp, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_max77693_muic_dock_handler
	tbz	w0, #31, LBB0_12
	b	LBB0_13
LBB0_8:
	ldr	w19, [x20]
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	bl	_max77693_muic_dock_button_handler
	tbz	w0, #31, LBB0_12
	b	LBB0_13
LBB0_10:
	ldr	w0, [x20, #4]
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csel	x2, x22, x21, eq
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x3, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_3
LBB0_11:
	mov	x0, x20
	bl	_max77693_muic_adc_ground_handler
LBB0_12:
	mov	w0, #0
LBB0_13:
	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 AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_MAX77693_CABLE_GROUP_ADC,4,2   ; @MAX77693_CABLE_GROUP_ADC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"external connector is %s (adc:0x%02x, prev_adc:0x%x)\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"accessory is %s but it isn't used (adc:0x%x)\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.4:                               ; @.str.4
	.asciz	"failed to detect %s accessory (adc:0x%x)\n"

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