	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function connect_change
_connect_change:                        ## @connect_change
	.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, %r14
	movq	16(%rdi), %rax
	movl	(%rax), %ebx
	movq	_ICFG_FSM_CTRL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movl	%eax, %r12d
	cmpl	$128, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_5
## %bb.2:
	movq	_DRD_HOST_MODE@GOTPCREL(%rip), %rbx
	movq	_DRD_DEVICE_MODE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	orl	(%rbx), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%r12d, %edi
	callq	_writel
	movl	(%rbx), %edi
	notl	%edi
	andl	%r12d, %edi
	orl	(%r13), %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	_ICFG_DRD_P0CTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_ICFG_DEV_BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	movl	%eax, %edi
	jmp	LBB0_3
LBB0_4:
	movq	_DRD_HOST_MODE@GOTPCREL(%rip), %r13
	movq	_DRD_DEVICE_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	(%r13), %eax
	notl	%eax
	andl	%eax, %r12d
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	movl	%r12d, %edi
	callq	_writel
	movl	(%rbx), %edi
	notl	%edi
	andl	%r12d, %edi
	orl	(%r13), %edi
	movq	(%r15), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	8(%r14), %rdi
	callq	_readl
	movq	_OHCI_OVRCUR_POL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	8(%r14), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_ICFG_DRD_P0CTL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_readl
	movq	_ICFG_DEV_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_5:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ICFG_FSM_CTRL,8,3              ## @ICFG_FSM_CTRL
	.comm	_DRD_HOST_MODE,4,2              ## @DRD_HOST_MODE
	.comm	_DRD_DEVICE_MODE,4,2            ## @DRD_DEVICE_MODE
	.comm	_ICFG_DRD_P0CTL,8,3             ## @ICFG_DRD_P0CTL
	.comm	_ICFG_DEV_BIT,4,2               ## @ICFG_DEV_BIT
	.comm	_OHCI_OVRCUR_POL,4,2            ## @OHCI_OVRCUR_POL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid extcon event\n"

	.no_dead_strip	_connect_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function connect_change
_connect_change:                        ; @connect_change
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w20, [x8]
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _ICFG_FSM_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ICFG_FSM_CTRL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
	cmp	w20, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w20, #129
	b.ne	LBB0_5
; %bb.2:
Lloh2:
	adrp	x22, _DRD_HOST_MODE@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DRD_HOST_MODE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh4:
	adrp	x23, _DRD_DEVICE_MODE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DRD_DEVICE_MODE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
	bic	w20, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	w8, [x22]
	bic	w8, w20, w8
	ldr	w9, [x23]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
Lloh6:
	adrp	x20, _ICFG_DRD_P0CTL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ICFG_DRD_P0CTL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh8:
	adrp	x8, _ICFG_DEV_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICFG_DEV_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x22, _DRD_HOST_MODE@GOTPAGE
Lloh12:
	ldr	x22, [x22, _DRD_HOST_MODE@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh13:
	adrp	x23, _DRD_DEVICE_MODE@GOTPAGE
Lloh14:
	ldr	x23, [x23, _DRD_DEVICE_MODE@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
	bic	w20, w0, w8
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	ldr	w8, [x23]
	bic	w8, w20, w8
	ldr	w9, [x22]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19, #8]
	bl	_readl
Lloh15:
	adrp	x8, _OHCI_OVRCUR_POL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OHCI_OVRCUR_POL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x1, [x19, #8]
	bl	_writel
	ldr	x8, [x19]
Lloh18:
	adrp	x20, _ICFG_DRD_P0CTL@GOTPAGE
Lloh19:
	ldr	x20, [x20, _ICFG_DRD_P0CTL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh20:
	adrp	x8, _ICFG_DEV_BIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICFG_DEV_BIT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	bic	w0, w0, w8
LBB0_4:
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
LBB0_5:
Lloh23:
	adrp	x0, l_.str@PAGE
Lloh24:
	add	x0, x0, l_.str@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ICFG_FSM_CTRL,8,3              ; @ICFG_FSM_CTRL
	.comm	_DRD_HOST_MODE,4,2              ; @DRD_HOST_MODE
	.comm	_DRD_DEVICE_MODE,4,2            ; @DRD_DEVICE_MODE
	.comm	_ICFG_DRD_P0CTL,8,3             ; @ICFG_DRD_P0CTL
	.comm	_ICFG_DEV_BIT,4,2               ; @ICFG_DEV_BIT
	.comm	_OHCI_OVRCUR_POL,4,2            ; @OHCI_OVRCUR_POL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid extcon event\n"

	.no_dead_strip	_connect_change
.subsections_via_symbols
