	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx_pd_bind
_imx_pd_bind:                           ## @imx_pd_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, %r14
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	20(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	20(%rbx), %esi
	movl	(%r13), %edx
	movq	%rax, %rdi
	callq	_kmemdup
	movl	%eax, 24(%rbx)
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_string
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:
	movq	-48(%rbp), %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_strcmp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	_MEDIA_BUS_FMT_RGB666_1X24_CPADHI@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_6:
	movq	_MEDIA_BUS_FMT_RGB888_1X24@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_8:
	movq	_MEDIA_BUS_FMT_RGB565_1X16@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_MEDIA_BUS_FMT_RGB666_1X18@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %ecx
LBB0_14:
	movl	%ecx, 16(%rbx)
	leaq	12(%rbx), %rcx
	movq	%rbx, %r8
	addq	$8, %r8
	movq	%r12, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_drm_of_find_panel_or_bridge
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_18
LBB0_16:
	movq	%r14, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_imx_pd_register
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	xorl	%eax, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"edid"

L_.str.1:                               ## @.str.1
	.asciz	"interface-pix-fmt"

L_.str.2:                               ## @.str.2
	.asciz	"rgb24"

	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ## @MEDIA_BUS_FMT_RGB888_1X24
L_.str.3:                               ## @.str.3
	.asciz	"rgb565"

	.comm	_MEDIA_BUS_FMT_RGB565_1X16,4,2  ## @MEDIA_BUS_FMT_RGB565_1X16
L_.str.4:                               ## @.str.4
	.asciz	"bgr666"

	.comm	_MEDIA_BUS_FMT_RGB666_1X18,4,2  ## @MEDIA_BUS_FMT_RGB666_1X18
L_.str.5:                               ## @.str.5
	.asciz	"lvds666"

	.comm	_MEDIA_BUS_FMT_RGB666_1X24_CPADHI,4,2 ## @MEDIA_BUS_FMT_RGB666_1X24_CPADHI
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_imx_pd_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx_pd_bind
_imx_pd_bind:                           ; @imx_pd_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x2
	mov	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	add	x2, x0, #20
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_of_get_property
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x21, #20]
	ldr	w2, [x23]
	bl	_kmemdup
	str	w0, [x21, #24]
LBB0_3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x22
	bl	_of_property_read_string
	cbz	w0, LBB0_11
; %bb.4:
	mov	w8, #0
LBB0_5:
	str	w8, [x21, #16]
	add	x3, x21, #12
	add	x4, x21, #8
	mov	x0, x22
	mov	w1, #1
	mov	w2, #0
	bl	_drm_of_find_panel_or_bridge
	cbz	w0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_10
LBB0_7:
	str	x19, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_imx_pd_register
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_dev_set_drvdata
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	ldr	x23, [sp, #8]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_15
; %bb.12:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_16
; %bb.13:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.14:
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x23
	bl	_strcmp
Lloh20:
	adrp	x8, _MEDIA_BUS_FMT_RGB666_1X24_CPADHI@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB666_1X24_CPADHI@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w8, w8, wzr, eq
	b	LBB0_5
LBB0_15:
Lloh23:
	adrp	x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB888_1X24@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_16:
Lloh26:
	adrp	x8, _MEDIA_BUS_FMT_RGB565_1X16@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB565_1X16@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	b	LBB0_5
LBB0_17:
Lloh29:
	adrp	x8, _MEDIA_BUS_FMT_RGB666_1X18@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MEDIA_BUS_FMT_RGB666_1X18@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"edid"

l_.str.1:                               ; @.str.1
	.asciz	"interface-pix-fmt"

l_.str.2:                               ; @.str.2
	.asciz	"rgb24"

	.comm	_MEDIA_BUS_FMT_RGB888_1X24,4,2  ; @MEDIA_BUS_FMT_RGB888_1X24
l_.str.3:                               ; @.str.3
	.asciz	"rgb565"

	.comm	_MEDIA_BUS_FMT_RGB565_1X16,4,2  ; @MEDIA_BUS_FMT_RGB565_1X16
l_.str.4:                               ; @.str.4
	.asciz	"bgr666"

	.comm	_MEDIA_BUS_FMT_RGB666_1X18,4,2  ; @MEDIA_BUS_FMT_RGB666_1X18
l_.str.5:                               ; @.str.5
	.asciz	"lvds666"

	.comm	_MEDIA_BUS_FMT_RGB666_1X24_CPADHI,4,2 ; @MEDIA_BUS_FMT_RGB666_1X24_CPADHI
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_imx_pd_bind
.subsections_via_symbols
