	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function analogix_dp_set_bridge
_analogix_dp_set_bridge:                ## @analogix_dp_set_bridge
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_pm_runtime_get_sync
	movl	4(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	8(%rbx), %rdi
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	callq	*%rax
LBB0_4:
	movl	16(%rbx), %edi
	callq	_phy_power_on
	movq	%rbx, %rdi
	callq	_analogix_dp_init_dp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_analogix_dp_detect_hpd
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_11
LBB0_12:
	movq	%rbx, %rdi
	callq	_analogix_dp_commit
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
LBB0_7:
	movl	%r14d, %esi
	callq	_DRM_ERROR
LBB0_8:
	movl	16(%rbx), %edi
	callq	_phy_power_off
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	*%rax
LBB0_10:
	movl	4(%rbx), %edi
	callq	_clk_disable_unprepare
LBB0_11:
	movl	(%rbx), %edi
	callq	_pm_runtime_put_sync
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	movq	8(%rbx), %rdi
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	callq	*%rax
LBB0_16:
	movl	20(%rbx), %edi
	callq	_enable_irq
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to prepare_enable the clock clk [%d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get hpd single ret = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"dp commit error, ret = %d\n"

	.no_dead_strip	_analogix_dp_set_bridge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analogix_dp_set_bridge
_analogix_dp_set_bridge:                ; @analogix_dp_set_bridge
	.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	x19, x0
	ldr	w0, [x0]
	bl	_pm_runtime_get_sync
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_3
; %bb.2:
	blr	x8
LBB0_3:
	ldr	w0, [x19, #16]
	bl	_phy_power_on
	mov	x0, x19
	bl	_analogix_dp_init_dp
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.4:
	mov	x0, x19
	bl	_analogix_dp_detect_hpd
	cbz	w0, LBB0_7
; %bb.5:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	x20, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_ERROR
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_analogix_dp_commit
	cbz	w0, LBB0_15
; %bb.8:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	mov	x1, x20
	bl	_DRM_ERROR
LBB0_10:
	ldr	w0, [x19, #16]
	bl	_phy_power_off
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	cbz	x8, LBB0_12
; %bb.11:
	blr	x8
LBB0_12:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
LBB0_13:
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x0, [x19, #8]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_17
; %bb.16:
	blr	x8
LBB0_17:
	ldr	w0, [x19, #20]
	bl	_enable_irq
	mov	w20, #0
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to prepare_enable the clock clk [%d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get hpd single ret = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"dp commit error, ret = %d\n"

	.no_dead_strip	_analogix_dp_set_bridge
.subsections_via_symbols
