	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdmi_bind
_hdmi_bind:                             ## @hdmi_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	leaq	16(%rax), %r13
	movq	%r12, 8(%rax)
	movq	_hdmiphy_clk_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_exynos_hdmi_encoder_funcs@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	_exynos_hdmi_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_encoder_helper_add
	movq	_EXYNOS_DISPLAY_TYPE_HDMI@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_exynos_drm_set_possible_crtcs
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_exynos_drm_crtc_get_by_type
	movq	%rbx, (%rax)
	movq	%r13, %rdi
	callq	_hdmi_create_connector
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	movq	%r13, %rdi
	callq	_drm_encoder_cleanup
	movl	%ebx, %r15d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hdmiphy_clk_enable,4,2         ## @hdmiphy_clk_enable
	.comm	_exynos_hdmi_encoder_funcs,4,2  ## @exynos_hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.comm	_exynos_hdmi_encoder_helper_funcs,4,2 ## @exynos_hdmi_encoder_helper_funcs
	.comm	_EXYNOS_DISPLAY_TYPE_HDMI,4,2   ## @EXYNOS_DISPLAY_TYPE_HDMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create connector ret = %d\n"

	.no_dead_strip	_hdmi_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdmi_bind
_hdmi_bind:                             ; @hdmi_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x0
	bl	_dev_get_drvdata
	mov	x22, x0
	add	x19, x0, #16
Lloh0:
	adrp	x8, _hdmiphy_clk_enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hdmiphy_clk_enable@GOTPAGEOFF]
	str	x21, [x0, #8]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh3:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x2, _exynos_hdmi_encoder_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _exynos_hdmi_encoder_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
Lloh8:
	adrp	x1, _exynos_hdmi_encoder_helper_funcs@GOTPAGE
Lloh9:
	ldr	x1, [x1, _exynos_hdmi_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
Lloh10:
	adrp	x24, _EXYNOS_DISPLAY_TYPE_HDMI@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EXYNOS_DISPLAY_TYPE_HDMI@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_exynos_drm_set_possible_crtcs
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w1, [x24]
	mov	x0, x21
	bl	_exynos_drm_crtc_get_by_type
	str	x22, [x0]
	mov	x0, x19
	bl	_hdmi_create_connector
	mov	x23, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_DRM_DEV_ERROR
	mov	x0, x19
	bl	_drm_encoder_cleanup
	b	LBB0_4
LBB0_3:
	mov	x23, x0
LBB0_4:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_hdmiphy_clk_enable,4,2         ; @hdmiphy_clk_enable
	.comm	_exynos_hdmi_encoder_funcs,4,2  ; @exynos_hdmi_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.comm	_exynos_hdmi_encoder_helper_funcs,4,2 ; @exynos_hdmi_encoder_helper_funcs
	.comm	_EXYNOS_DISPLAY_TYPE_HDMI,4,2   ; @EXYNOS_DISPLAY_TYPE_HDMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create connector ret = %d\n"

	.no_dead_strip	_hdmi_bind
.subsections_via_symbols
