	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrfld_extcon_probe
_mrfld_extcon_probe:                    ## @mrfld_extcon_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	(%rax), %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	leaq	4(%r15), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%r12, 16(%rax)
	movq	%r13, 8(%rax)
	movq	_mrfld_extcon_cable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_devm_extcon_dev_allocate
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	4(%r14), %esi
	movq	%r12, %rdi
	callq	_devm_extcon_dev_register
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_mrfld_extcon_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movl	(%r15), %r9d
	movq	%r14, (%rsp)
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	movl	%eax, %ebx
	callq	_dev_err
	jmp	LBB0_13
LBB0_9:
	movq	_BCOVE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_13
LBB0_11:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mrfld_extcon_sw_control
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_mrfld_extcon_role_detect
	movq	_BCOVE_MIRQLVL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCOVE_LVL1_CHGR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mrfld_extcon_clear
	movq	_BCOVE_MCHGRIRQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCOVE_CHGRIRQ_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mrfld_extcon_clear
	movq	_BCOVE_USBIDCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BCOVE_USBIDCTRL_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_mrfld_extcon_set
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mrfld_extcon_cable,4,2         ## @mrfld_extcon_cable
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't register extcon device: %d\n"

	.comm	_mrfld_extcon_interrupt,4,2     ## @mrfld_extcon_interrupt
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"can't register IRQ handler: %d\n"

	.comm	_BCOVE_ID,4,2                   ## @BCOVE_ID
L_.str.2:                               ## @.str.2
	.asciz	"can't read PMIC ID: %d\n"

	.comm	_BCOVE_MIRQLVL1,4,2             ## @BCOVE_MIRQLVL1
	.comm	_BCOVE_LVL1_CHGR,4,2            ## @BCOVE_LVL1_CHGR
	.comm	_BCOVE_MCHGRIRQ1,4,2            ## @BCOVE_MCHGRIRQ1
	.comm	_BCOVE_CHGRIRQ_ALL,4,2          ## @BCOVE_CHGRIRQ_ALL
	.comm	_BCOVE_USBIDCTRL,4,2            ## @BCOVE_USBIDCTRL
	.comm	_BCOVE_USBIDCTRL_ALL,4,2        ## @BCOVE_USBIDCTRL_ALL
	.no_dead_strip	_mrfld_extcon_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrfld_extcon_probe
_mrfld_extcon_probe:                    ; @mrfld_extcon_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	ldr	w0, [x21, #4]!
	bl	_dev_get_drvdata
	ldr	x23, [x0]
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	stp	x23, x21, [x0, #8]
Lloh3:
	adrp	x8, _mrfld_extcon_cable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mrfld_extcon_cable@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_devm_extcon_dev_allocate
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_5
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	w1, [x20, #4]
	mov	x0, x21
	bl	_devm_extcon_dev_register
	tbnz	w0, #31, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _mrfld_extcon_interrupt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mrfld_extcon_interrupt@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w4, w9, w8
	ldr	w5, [x19]
	mov	x0, x21
	mov	x1, x22
	mov	x2, #0
	mov	x6, x20
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_9
; %bb.7:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_8:
	mov	x24, x0
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x24
	bl	_dev_err
	mov	x22, x24
	b	LBB0_4
LBB0_9:
Lloh22:
	adrp	x8, _BCOVE_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BCOVE_ID@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x23
	bl	_regmap_read
	cbz	w0, LBB0_12
; %bb.10:
	mov	x22, x0
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x21
	mov	x2, x22
	bl	_dev_err
	b	LBB0_4
LBB0_12:
	ldr	w8, [sp, #12]
	str	w8, [x20]
	mov	x0, x20
	mov	w1, #1
	bl	_mrfld_extcon_sw_control
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.13:
	mov	x0, x20
	bl	_mrfld_extcon_role_detect
Lloh27:
	adrp	x8, _BCOVE_MIRQLVL1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BCOVE_MIRQLVL1@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _BCOVE_LVL1_CHGR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BCOVE_LVL1_CHGR@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mrfld_extcon_clear
Lloh33:
	adrp	x8, _BCOVE_MCHGRIRQ1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BCOVE_MCHGRIRQ1@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _BCOVE_CHGRIRQ_ALL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BCOVE_CHGRIRQ_ALL@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mrfld_extcon_clear
Lloh39:
	adrp	x8, _BCOVE_USBIDCTRL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _BCOVE_USBIDCTRL@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _BCOVE_USBIDCTRL_ALL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _BCOVE_USBIDCTRL_ALL@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_mrfld_extcon_set
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mrfld_extcon_cable,4,2         ; @mrfld_extcon_cable
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't register extcon device: %d\n"

	.comm	_mrfld_extcon_interrupt,4,2     ; @mrfld_extcon_interrupt
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"can't register IRQ handler: %d\n"

	.comm	_BCOVE_ID,4,2                   ; @BCOVE_ID
l_.str.2:                               ; @.str.2
	.asciz	"can't read PMIC ID: %d\n"

	.comm	_BCOVE_MIRQLVL1,4,2             ; @BCOVE_MIRQLVL1
	.comm	_BCOVE_LVL1_CHGR,4,2            ; @BCOVE_LVL1_CHGR
	.comm	_BCOVE_MCHGRIRQ1,4,2            ; @BCOVE_MCHGRIRQ1
	.comm	_BCOVE_CHGRIRQ_ALL,4,2          ; @BCOVE_CHGRIRQ_ALL
	.comm	_BCOVE_USBIDCTRL,4,2            ; @BCOVE_USBIDCTRL
	.comm	_BCOVE_USBIDCTRL_ALL,4,2        ; @BCOVE_USBIDCTRL_ALL
	.no_dead_strip	_mrfld_extcon_probe
.subsections_via_symbols
