	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_hdmi_imx_bind
_dw_hdmi_imx_bind:                      ## @dw_hdmi_imx_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, %r15
	movq	%rdi, %rbx
	callq	_to_platform_device
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_dw_hdmi_imx_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_of_match_node
	movq	(%rax), %r13
	movq	%r12, 16(%r14)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_drm_of_find_possible_crtcs
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	callq	_dw_hdmi_imx_parse_dt
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	addq	$8, %r13
	movq	_dw_hdmi_imx_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_drm_encoder_helper_add
	movq	_DRM_MODE_ENCODER_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_dw_hdmi_imx_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_dw_hdmi_bind
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	(%r14), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_drm_encoder_cleanup
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dw_hdmi_imx_dt_ids,4,2         ## @dw_hdmi_imx_dt_ids
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_dw_hdmi_imx_encoder_helper_funcs,4,2 ## @dw_hdmi_imx_encoder_helper_funcs
	.comm	_dw_hdmi_imx_encoder_funcs,4,2  ## @dw_hdmi_imx_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ## @DRM_MODE_ENCODER_TMDS
	.no_dead_strip	_dw_hdmi_imx_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_hdmi_imx_bind
_dw_hdmi_imx_bind:                      ; @dw_hdmi_imx_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	x22, x0
	bl	_to_platform_device
	ldr	w8, [x0]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh3:
	adrp	x8, _dw_hdmi_imx_dt_ids@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dw_hdmi_imx_dt_ids@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_of_match_node
	ldr	x24, [x0]
	str	x20, [x19, #16]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_drm_of_find_possible_crtcs
	mov	x22, x19
	str	x0, [x22, #8]!
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x19
	bl	_dw_hdmi_imx_parse_dt
	mov	x23, x0
	tbnz	w0, #31, LBB0_10
; %bb.4:
Lloh6:
	adrp	x1, _dw_hdmi_imx_encoder_helper_funcs@GOTPAGE
Lloh7:
	ldr	x1, [x1, _dw_hdmi_imx_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x22
	bl	_drm_encoder_helper_add
Lloh8:
	adrp	x8, _DRM_MODE_ENCODER_TMDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_MODE_ENCODER_TMDS@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x2, _dw_hdmi_imx_encoder_funcs@GOTPAGE
Lloh12:
	ldr	x2, [x2, _dw_hdmi_imx_encoder_funcs@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	x4, #0
	bl	_drm_encoder_init
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	x1, x22
	mov	x2, x24
	bl	_dw_hdmi_bind
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w0, [x19]
	bl	_PTR_ERR
	mov	x19, x0
	mov	x0, x22
	bl	_drm_encoder_cleanup
	mov	x0, x19
	b	LBB0_11
LBB0_6:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x23
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dw_hdmi_imx_dt_ids,4,2         ; @dw_hdmi_imx_dt_ids
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_dw_hdmi_imx_encoder_helper_funcs,4,2 ; @dw_hdmi_imx_encoder_helper_funcs
	.comm	_dw_hdmi_imx_encoder_funcs,4,2  ; @dw_hdmi_imx_encoder_funcs
	.comm	_DRM_MODE_ENCODER_TMDS,4,2      ; @DRM_MODE_ENCODER_TMDS
	.no_dead_strip	_dw_hdmi_imx_bind
.subsections_via_symbols
