	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mrfld_extcon_sw_control
_mrfld_extcon_sw_control:               ## @mrfld_extcon_sw_control
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %eax
	movq	_BCOVE_CHGRCTRL0_SWCONTROL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%rdi), %r14
	movq	_BCOVE_CHGRCTRL0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	callq	_mrfld_extcon_set
	jmp	LBB0_3
LBB0_2:
	callq	_mrfld_extcon_clear
LBB0_3:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCOVE_CHGRCTRL0_SWCONTROL,4,2  ## @BCOVE_CHGRCTRL0_SWCONTROL
	.comm	_BCOVE_CHGRCTRL0,4,2            ## @BCOVE_CHGRCTRL0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't set SW control: %d\n"

	.no_dead_strip	_mrfld_extcon_sw_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mrfld_extcon_sw_control
_mrfld_extcon_sw_control:               ; @mrfld_extcon_sw_control
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
Lloh0:
	adrp	x9, _BCOVE_CHGRCTRL0_SWCONTROL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCOVE_CHGRCTRL0_SWCONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	ldr	x19, [x0]
Lloh3:
	adrp	x9, _BCOVE_CHGRCTRL0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BCOVE_CHGRCTRL0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	cbz	w8, LBB0_4
; %bb.1:
	bl	_mrfld_extcon_set
	mov	x20, x0
	cbz	w0, LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	_mrfld_extcon_clear
	mov	x20, x0
	cbnz	w0, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BCOVE_CHGRCTRL0_SWCONTROL,4,2  ; @BCOVE_CHGRCTRL0_SWCONTROL
	.comm	_BCOVE_CHGRCTRL0,4,2            ; @BCOVE_CHGRCTRL0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't set SW control: %d\n"

	.no_dead_strip	_mrfld_extcon_sw_control
.subsections_via_symbols
