	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smbb_chg_otg_is_enabled
_smbb_chg_otg_is_enabled:               ## @smbb_chg_otg_is_enabled
	.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
	callq	_rdev_get_drvdata
	movq	%rax, %rbx
	movl	$0, -12(%rbp)
	movl	16(%rax), %edi
	movq	_SMBB_USB_OTG_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_2:
	movq	_OTG_CTL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	andl	-12(%rbp), %ecx
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMBB_USB_OTG_CTL,8,3           ## @SMBB_USB_OTG_CTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read OTG_CTL\n"

	.comm	_OTG_CTL_EN,4,2                 ## @OTG_CTL_EN
	.no_dead_strip	_smbb_chg_otg_is_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smbb_chg_otg_is_enabled
_smbb_chg_otg_is_enabled:               ; @smbb_chg_otg_is_enabled
	.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
	bl	_rdev_get_drvdata
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	w0, [x0, #16]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _SMBB_USB_OTG_CTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMBB_USB_OTG_CTL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	add	x2, sp, #12
	bl	_regmap_read
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_2:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _OTG_CTL_EN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OTG_CTL_EN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SMBB_USB_OTG_CTL,8,3           ; @SMBB_USB_OTG_CTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read OTG_CTL\n"

	.comm	_OTG_CTL_EN,4,2                 ; @OTG_CTL_EN
	.no_dead_strip	_smbb_chg_otg_is_enabled
.subsections_via_symbols
