	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_dp_bind
_rockchip_dp_bind:                      ## @rockchip_dp_bind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 48(%r15)
	movq	%rbx, 40(%r15)
	movq	%r15, %rdi
	callq	_rockchip_dp_drm_create_encoder
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdx
	addq	$16, %rdx
	movq	%r15, 32(%r15)
	movq	40(%r15), %rsi
	movq	48(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_rockchip_dp_poweron_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	_rockchip_dp_powerdown@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_rockchip_dp_get_modes@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r14, %rdi
	callq	_analogix_dp_bind
	movl	%eax, 8(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	8(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	(%r15), %rax
	movq	%r15, %rdi
	callq	*(%rax)
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create drm encoder\n"

	.comm	_rockchip_dp_poweron_start,4,2  ## @rockchip_dp_poweron_start
	.comm	_rockchip_dp_powerdown,4,2      ## @rockchip_dp_powerdown
	.comm	_rockchip_dp_get_modes,4,2      ## @rockchip_dp_get_modes
	.no_dead_strip	_rockchip_dp_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_dp_bind
_rockchip_dp_bind:                      ; @rockchip_dp_bind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	mov	x0, x20
	bl	_of_device_get_match_data
	cbz	x0, LBB0_3
; %bb.1:
	stp	x21, x0, [x19, #40]
	mov	x0, x19
	bl	_rockchip_dp_drm_create_encoder
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	b	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
	ldp	x1, x8, [x19, #40]
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh5:
	adrp	x8, _rockchip_dp_poweron_start@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rockchip_dp_poweron_start@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _rockchip_dp_powerdown@GOTPAGE
Lloh9:
	ldr	x9, [x9, _rockchip_dp_powerdown@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _rockchip_dp_get_modes@GOTPAGE
Lloh12:
	ldr	x10, [x10, _rockchip_dp_get_modes@GOTPAGEOFF]
	stp	w9, w8, [x19, #20]
Lloh13:
	ldr	w8, [x10]
	mov	x2, x19
	str	w8, [x2, #16]!
	str	x19, [x19, #32]
	mov	x0, x20
	bl	_analogix_dp_bind
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19, #8]
	bl	_PTR_ERR
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	b	LBB0_8
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x21
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create drm encoder\n"

	.comm	_rockchip_dp_poweron_start,4,2  ; @rockchip_dp_poweron_start
	.comm	_rockchip_dp_powerdown,4,2      ; @rockchip_dp_powerdown
	.comm	_rockchip_dp_get_modes,4,2      ; @rockchip_dp_get_modes
	.no_dead_strip	_rockchip_dp_bind
.subsections_via_symbols
