	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max14577_muic_jig_handler
_max14577_muic_jig_handler:             ## @max14577_muic_jig_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	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	testl	%edx, %edx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r12
	cmoveq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	callq	_dev_dbg
	addl	$-128, %ebx
	cmpl	$3, %ebx
	jae	LBB0_1
## %bb.2:
	movslq	%ebx, %rax
	leaq	l_switch.table.max14577_muic_jig_handler(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_max14577_muic_set_path
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movq	_EXTCON_JIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	callq	_extcon_set_state_sync
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movl	4(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL1_SW_OPEN,4,2              ## @CTRL1_SW_OPEN
	.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	_CTRL1_SW_USB,4,2               ## @CTRL1_SW_USB
	.comm	_CTRL1_SW_UART,4,2              ## @CTRL1_SW_UART
L_.str.3:                               ## @.str.3
	.asciz	"failed to detect %s jig cable\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EXTCON_JIG,4,2                 ## @EXTCON_JIG
	.no_dead_strip	_max14577_muic_jig_handler
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.max14577_muic_jig_handler
l_switch.table.max14577_muic_jig_handler:
	.quad	_CTRL1_SW_USB
	.quad	_CTRL1_SW_USB
	.quad	_CTRL1_SW_UART

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max14577_muic_jig_handler
_max14577_muic_jig_handler:             ; @max14577_muic_jig_handler
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.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_dbg
	sub	w8, w22, #128
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, l_switch.table.max14577_muic_jig_handler@PAGE
Lloh7:
	add	x9, x9, l_switch.table.max14577_muic_jig_handler@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_max14577_muic_set_path
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _EXTCON_JIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EXTCON_JIG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_extcon_set_state_sync
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20, #4]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x21
	bl	_dev_err
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL1_SW_OPEN,4,2              ; @CTRL1_SW_OPEN
	.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	_CTRL1_SW_USB,4,2               ; @CTRL1_SW_USB
	.comm	_CTRL1_SW_UART,4,2              ; @CTRL1_SW_UART
l_.str.3:                               ; @.str.3
	.asciz	"failed to detect %s jig cable\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EXTCON_JIG,4,2                 ; @EXTCON_JIG
	.no_dead_strip	_max14577_muic_jig_handler
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.max14577_muic_jig_handler
l_switch.table.max14577_muic_jig_handler:
	.quad	_CTRL1_SW_USB
	.quad	_CTRL1_SW_USB
	.quad	_CTRL1_SW_UART

.subsections_via_symbols
