	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function versatile_panel_disable
_versatile_panel_disable:               ## @versatile_panel_disable
	.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	_to_versatile_panel
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	8(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%rbx), %rdi
	movq	_IB2_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB2_CTRL_LCD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IB2_CTRL_LCD_SD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disable IB2 display\n"

	.comm	_IB2_CTRL,4,2                   ## @IB2_CTRL
	.comm	_IB2_CTRL_LCD_MASK,4,2          ## @IB2_CTRL_LCD_MASK
	.comm	_IB2_CTRL_LCD_SD,4,2            ## @IB2_CTRL_LCD_SD
	.no_dead_strip	_versatile_panel_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function versatile_panel_disable
_versatile_panel_disable:               ; @versatile_panel_disable
	.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
	bl	_to_versatile_panel
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _IB2_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB2_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _IB2_CTRL_LCD_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB2_CTRL_LCD_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _IB2_CTRL_LCD_SD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB2_CTRL_LCD_SD@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	bl	_regmap_update_bits
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disable IB2 display\n"

	.comm	_IB2_CTRL,4,2                   ; @IB2_CTRL
	.comm	_IB2_CTRL_LCD_MASK,4,2          ; @IB2_CTRL_LCD_MASK
	.comm	_IB2_CTRL_LCD_SD,4,2            ; @IB2_CTRL_LCD_SD
	.no_dead_strip	_versatile_panel_disable
.subsections_via_symbols
