	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extcon_sync                    ## -- Begin function extcon_sync
	.p2align	4, 0x90
_extcon_sync:                           ## @extcon_sync
	.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
	subq	$296, %rsp                      ## imm = 0x128
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	callq	_find_cable_index_by_id
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %r12d
	movl	%r13d, %edi
	callq	_BIT
	xorl	%ebx, %ebx
	testl	%r12d, %eax
	setne	%bl
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r13d, %edi
	shlq	$2, %rdi
	addq	16(%r15), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_raw_notifier_call_chain
	leaq	12(%r15), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_raw_notifier_call_chain
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_zeroed_page
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	addq	$4, %r15
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_name_show
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	decl	%eax
	cmpb	$10, (%r12,%rax)
	jne	LBB0_9
## %bb.8:
	movb	$0, (%r12,%rax)
LBB0_9:
	leaq	L_.str.1(%rip), %rdx
	leaq	-176(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$120, %esi
	movq	%r12, %rcx
	callq	_snprintf
	movq	%rbx, -336(%rbp)
	movl	$1, %ebx
LBB0_10:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_state_show
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.11:
	decl	%eax
	cmpb	$10, (%r12,%rax)
	jne	LBB0_13
## %bb.12:
	movb	$0, (%r12,%rax)
LBB0_13:
	leaq	L_.str.2(%rip), %rdx
	leaq	-304(%rbp), %rdi
	movl	$120, %esi
	movq	%r12, %rcx
	callq	_snprintf
	movl	%ebx, %eax
	incl	%ebx
	leaq	-304(%rbp), %rcx
	movq	%rcx, -336(%rbp,%rax,8)
LBB0_14:
	movl	%ebx, %eax
	movq	$0, -336(%rbp,%rax,8)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-336(%rbp), %rdx
	movq	%r15, %rdi
	callq	_kobject_uevent_env
	movq	%r12, %rdi
	callq	_free_page
	jmp	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_KOBJ_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kobject_uevent
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r13d, %eax
	addq	$296, %rsp                      ## imm = 0x128
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory in extcon_set_state\n"

	.comm	_KOBJ_CHANGE,4,2                ## @KOBJ_CHANGE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"NAME=%s"

L_.str.2:                               ## @.str.2
	.asciz	"STATE=%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extcon_sync                    ; -- Begin function extcon_sync
	.p2align	2
_extcon_sync:                           ; @extcon_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x24, x23, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	bl	_find_cable_index_by_id
	mov	x20, x0
	tbnz	w0, #31, LBB0_16
; %bb.2:
	add	x19, x21, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w22, [x21]
	mov	x0, x20
	bl	_BIT
	tst	w0, w22
	cset	w22, ne
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x21, #16]
	add	x0, x8, w20, uxtw #2
	mov	x1, x22
	mov	x2, x21
	bl	_raw_notifier_call_chain
	add	x0, x21, #12
	mov	x1, x22
	mov	x2, x21
	bl	_raw_notifier_call_chain
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_get_zeroed_page
	cbz	x0, LBB0_8
; %bb.3:
	mov	x20, x0
	add	x21, x21, #4
	mov	x0, x21
	mov	x1, #0
	mov	x2, x20
	bl	_name_show
	subs	w8, w0, #1
	b.lt	LBB0_10
; %bb.4:
	ldrb	w9, [x20, x8]
	cmp	w9, #10
	b.ne	LBB0_6
; %bb.5:
	strb	wzr, [x20, x8]
LBB0_6:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x22, sp, #144
	add	x0, sp, #144
	mov	w1, #120
	mov	x3, x20
	bl	_snprintf
	str	x22, [sp]
	mov	w22, #1
	b	LBB0_11
LBB0_7:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	add	x19, x21, #4
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kobject_uevent
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_10:
	mov	w22, #0
LBB0_11:
	mov	x0, x21
	mov	x1, #0
	mov	x2, x20
	bl	_state_show
	subs	w8, w0, #1
	b.lt	LBB0_15
; %bb.12:
	ldrb	w9, [x20, x8]
	cmp	w9, #10
	b.ne	LBB0_14
; %bb.13:
	strb	wzr, [x20, x8]
LBB0_14:
Lloh17:
	adrp	x2, l_.str.2@PAGE
Lloh18:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x23, sp, #24
	add	x0, sp, #24
	mov	w1, #120
	mov	x3, x20
	bl	_snprintf
	mov	x8, sp
	str	x23, [x8, w22, uxtw #3]
	add	w22, w22, #1
LBB0_15:
	mov	x8, sp
	str	xzr, [x8, w22, uxtw #3]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh19:
	adrp	x8, _KOBJ_CHANGE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _KOBJ_CHANGE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	bl	_kobject_uevent_env
	mov	x0, x20
	bl	_free_page
	mov	w20, #0
LBB0_16:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x20
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory in extcon_set_state\n"

	.comm	_KOBJ_CHANGE,4,2                ; @KOBJ_CHANGE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"NAME=%s"

l_.str.2:                               ; @.str.2
	.asciz	"STATE=%s"

.subsections_via_symbols
