	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analogix_dp_bridge_disable
_analogix_dp_bridge_disable:            ## @analogix_dp_bridge_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
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_DRM_MODE_DPMS_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	32(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_drm_panel_disable
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_DRM_ERROR                      ## TAILCALL
LBB0_3:
	movl	40(%rbx), %edi
	callq	_disable_irq
	movq	32(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	callq	*%rax
LBB0_5:
	movq	_POWER_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_analogix_dp_set_analog_power_down
	movl	24(%rbx), %edi
	callq	_phy_power_off
	movl	20(%rbx), %edi
	callq	_clk_disable_unprepare
	movl	16(%rbx), %edi
	callq	_pm_runtime_put_sync
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_analogix_dp_prepare_panel
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_7:
	movq	$0, 8(%rbx)
	movq	_DRM_MODE_DPMS_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_DPMS_ON,8,3           ## @DRM_MODE_DPMS_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable the panel\n"

	.comm	_POWER_ALL,4,2                  ## @POWER_ALL
L_.str.1:                               ## @.str.1
	.asciz	"failed to setup the panel ret = %d\n"

	.comm	_DRM_MODE_DPMS_OFF,8,3          ## @DRM_MODE_DPMS_OFF
	.no_dead_strip	_analogix_dp_bridge_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analogix_dp_bridge_disable
_analogix_dp_bridge_disable:            ; @analogix_dp_bridge_disable
	.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
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _DRM_MODE_DPMS_ON@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_DPMS_ON@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_drm_panel_disable
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_DRM_ERROR
LBB0_4:
	ldr	w0, [x19, #40]
	bl	_disable_irq
	ldr	x0, [x19, #32]
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.5:
	blr	x8
LBB0_6:
Lloh5:
	adrp	x8, _POWER_ALL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _POWER_ALL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_analogix_dp_set_analog_power_down
	ldr	w0, [x19, #24]
	bl	_phy_power_off
	ldr	w0, [x19, #20]
	bl	_clk_disable_unprepare
	ldr	w0, [x19, #16]
	bl	_pm_runtime_put_sync
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_analogix_dp_prepare_panel
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_8
; %bb.7:
	str	x0, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_8:
	str	xzr, [x19, #8]
Lloh10:
	adrp	x8, _DRM_MODE_DPMS_OFF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DRM_MODE_DPMS_OFF@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_9:
	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
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_DPMS_ON,8,3           ; @DRM_MODE_DPMS_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable the panel\n"

	.comm	_POWER_ALL,4,2                  ; @POWER_ALL
l_.str.1:                               ; @.str.1
	.asciz	"failed to setup the panel ret = %d\n"

	.comm	_DRM_MODE_DPMS_OFF,8,3          ; @DRM_MODE_DPMS_OFF
	.no_dead_strip	_analogix_dp_bridge_disable
.subsections_via_symbols
