	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrfld_extcon_cable_detect
_mrfld_extcon_cable_detect:             ## @mrfld_extcon_cable_detect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_BCOVE_SCHGRIRQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	-12(%rbp), %eax
	movl	(%rbx), %ecx
	xorl	%eax, %ecx
	je	LBB0_2
## %bb.3:
	movq	_BCOVE_CHGRIRQ_USBIDDET@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_mrfld_extcon_role_detect
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movl	-12(%rbp), %eax
LBB0_6:
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_BCOVE_SCHGRIRQ1,4,2            ## @BCOVE_SCHGRIRQ1
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_BCOVE_CHGRIRQ_USBIDDET,4,2     ## @BCOVE_CHGRIRQ_USBIDDET
	.no_dead_strip	_mrfld_extcon_cable_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrfld_extcon_cable_detect
_mrfld_extcon_cable_detect:             ; @mrfld_extcon_cable_detect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _BCOVE_SCHGRIRQ1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCOVE_SCHGRIRQ1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
	ldr	w8, [sp, #12]
	ldr	w9, [x19]
	eor	w9, w9, w8
	cbz	w9, LBB0_7
; %bb.3:
Lloh3:
	adrp	x10, _BCOVE_CHGRIRQ_USBIDDET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _BCOVE_CHGRIRQ_USBIDDET@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_mrfld_extcon_role_detect
	cbnz	w0, LBB0_1
; %bb.5:
	ldr	w8, [sp, #12]
LBB0_6:
	mov	w0, #0
	str	w8, [x19]
	b	LBB0_1
LBB0_7:
Lloh6:
	adrp	x8, _ENODATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BCOVE_SCHGRIRQ1,4,2            ; @BCOVE_SCHGRIRQ1
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_BCOVE_CHGRIRQ_USBIDDET,4,2     ; @BCOVE_CHGRIRQ_USBIDDET
	.no_dead_strip	_mrfld_extcon_cable_detect
.subsections_via_symbols
