	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function disable_pots
_disable_pots:                          ## @disable_pots
	.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	8(%rdi), %rax
	movq	_pots@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_W_B_MODE_EPCM@GOTPCREL(%rip), %rax
	movq	_W_B_MODE_BSW0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	(%rdi), %edx
	movl	%edx, (%rdi)
	movq	_W_B_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_WriteW6692B
	movq	_W_B_CMDR@GOTPCREL(%rip), %rax
	movq	_W_B_CMDR_RRST@GOTPCREL(%rip), %rcx
	movq	_W_B_CMDR_RACT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_W_B_CMDR_XRST@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_WriteW6692B
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pots,4,2                       ## @pots
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_W_B_MODE_EPCM,4,2              ## @W_B_MODE_EPCM
	.comm	_W_B_MODE_BSW0,4,2              ## @W_B_MODE_BSW0
	.comm	_W_B_MODE,4,2                   ## @W_B_MODE
	.comm	_W_B_CMDR,4,2                   ## @W_B_CMDR
	.comm	_W_B_CMDR_RRST,4,2              ## @W_B_CMDR_RRST
	.comm	_W_B_CMDR_RACT,4,2              ## @W_B_CMDR_RACT
	.comm	_W_B_CMDR_XRST,4,2              ## @W_B_CMDR_XRST
	.no_dead_strip	_disable_pots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function disable_pots
_disable_pots:                          ; @disable_pots
	.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
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _pots@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pots@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _W_B_MODE_EPCM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _W_B_MODE_EPCM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _W_B_MODE_BSW0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _W_B_MODE_BSW0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	bic	w2, w9, w8
	str	w2, [x0]
Lloh9:
	adrp	x8, _W_B_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _W_B_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_WriteW6692B
Lloh12:
	adrp	x8, _W_B_CMDR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _W_B_CMDR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _W_B_CMDR_RRST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _W_B_CMDR_RRST@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _W_B_CMDR_RACT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _W_B_CMDR_RACT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _W_B_CMDR_XRST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _W_B_CMDR_XRST@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_WriteW6692B
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_pots,4,2                       ; @pots
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_W_B_MODE_EPCM,4,2              ; @W_B_MODE_EPCM
	.comm	_W_B_MODE_BSW0,4,2              ; @W_B_MODE_BSW0
	.comm	_W_B_MODE,4,2                   ; @W_B_MODE
	.comm	_W_B_CMDR,4,2                   ; @W_B_CMDR
	.comm	_W_B_CMDR_RRST,4,2              ; @W_B_CMDR_RRST
	.comm	_W_B_CMDR_RACT,4,2              ; @W_B_CMDR_RACT
	.comm	_W_B_CMDR_XRST,4,2              ; @W_B_CMDR_XRST
	.no_dead_strip	_disable_pots
.subsections_via_symbols
