	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dispc_bind
_dispc_bind:                            ## @dispc_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	%rsi, %rbx
	callq	_to_platform_device
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dss_get_device
	movq	%rax, %r14
	movq	(%r15), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r15, 24(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 48(%r13)
	leaq	40(%r13), %rdi
	callq	_spin_lock_init
	movq	_dispc_soc_devices@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_soc_device_match
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_dispc_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	%r13, %rdi
	callq	_dispc_errata_i734_wa_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.5:
	movq	24(%r13), %rdi
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 32(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movl	32(%r13), %edi
LBB0_7:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_20:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_21
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	24(%r13), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r13)
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	testq	%r12, %r12
	je	LBB0_16
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movl	%eax, 16(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	16(%r13), %edi
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_DSSERR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_14:
	movq	%r13, %rcx
	addq	$12, %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_16:
	movq	%r13, %rdi
	callq	_dispc_init_gamma_tables
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	%r13, %rdi
	callq	_dispc_runtime_get
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_20
LBB0_18:
	movq	%r13, %rdi
	callq	__omap_dispc_initial_config
	movq	_DISPC_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_dispc_read_reg
	movl	%eax, %r12d
	movl	%eax, %edi
	movl	$7, %esi
	movl	$4, %edx
	callq	_FLD_GET
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	movl	$3, %esi
	xorl	%edx, %edx
	callq	_FLD_GET
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_dev_dbg
	movq	%r13, %rdi
	callq	_dispc_runtime_put
	movq	%r13, 8(%r14)
	movq	_dispc_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	_dispc_dump_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%r13, %rcx
	callq	_dss_debugfs_create_file
	movl	%eax, 8(%r13)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dispc_soc_devices,4,2          ## @dispc_soc_devices
	.comm	_dispc_of_match,4,2             ## @dispc_of_match
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"platform_get_irq failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"syscon-pol"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get syscon-pol regmap\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to get syscon-pol offset\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DISPC_REVISION,4,2             ## @DISPC_REVISION
L_.str.4:                               ## @.str.4
	.asciz	"OMAP DISPC rev %d.%d\n"

	.comm	_dispc_ops,4,2                  ## @dispc_ops
L_.str.5:                               ## @.str.5
	.asciz	"dispc"

	.comm	_dispc_dump_regs,4,2            ## @dispc_dump_regs
	.no_dead_strip	_dispc_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dispc_bind
_dispc_bind:                            ; @dispc_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	x19, x1
	bl	_to_platform_device
	mov	x21, x0
	mov	x0, x19
	bl	_dss_get_device
	mov	x20, x0
	ldr	x22, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	str	x21, [x0, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	str	x20, [x19, #48]
	add	x0, x19, #40
	bl	_spin_lock_init
Lloh3:
	adrp	x8, _dispc_soc_devices@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dispc_soc_devices@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_soc_device_match
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _dispc_of_match@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dispc_of_match@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_of_match_device
LBB0_3:
	ldr	w8, [x0]
	str	w8, [x19, #36]
	mov	x0, x19
	bl	_dispc_errata_i734_wa_init
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x0, [x19, #24]
Lloh9:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x21
	bl	_devm_ioremap_resource
	str	w0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #32]
LBB0_6:
	bl	_PTR_ERR
	mov	x23, x0
LBB0_7:
	mov	x0, x19
	bl	_kfree
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	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
LBB0_10:
	ldr	x0, [x19, #24]
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19]
	tbnz	x0, #63, LBB0_15
; %bb.11:
	cbz	x22, LBB0_19
; %bb.12:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_19
; %bb.13:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_syscon_regmap_lookup_by_phandle
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.14:
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w0, [x19, #16]
	b	LBB0_6
LBB0_15:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DSSERR
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_7
LBB0_17:
	add	x3, x19, #12
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbz	x0, LBB0_19
; %bb.18:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_19:
	mov	x0, x19
	bl	_dispc_init_gamma_tables
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.20:
	mov	x0, x21
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_dispc_runtime_get
	cbz	w0, LBB0_22
; %bb.21:
	mov	x23, x0
	mov	x0, x21
	bl	_pm_runtime_disable
	b	LBB0_7
LBB0_22:
	mov	x0, x19
	bl	__omap_dispc_initial_config
Lloh31:
	adrp	x8, _DISPC_REVISION@GOTPAGE
Lloh32:
	ldr	x8, [x8, _DISPC_REVISION@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dispc_read_reg
	mov	x22, x0
	mov	w1, #7
	mov	w2, #4
	bl	_FLD_GET
	mov	x23, x0
	mov	x0, x22
	mov	w1, #3
	mov	w2, #0
	bl	_FLD_GET
	mov	x3, x0
Lloh34:
	adrp	x1, l_.str.4@PAGE
Lloh35:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	bl	_dev_dbg
	mov	x0, x19
	bl	_dispc_runtime_put
Lloh36:
	adrp	x8, _dispc_ops@GOTPAGE
Lloh37:
	ldr	x8, [x8, _dispc_ops@GOTPAGEOFF]
	stp	x8, x19, [x20]
Lloh38:
	adrp	x8, _dispc_dump_regs@GOTPAGE
Lloh39:
	ldr	x8, [x8, _dispc_dump_regs@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_dss_debugfs_create_file
	mov	w23, #0
	str	w0, [x19, #8]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dispc_soc_devices,4,2          ; @dispc_soc_devices
	.comm	_dispc_of_match,4,2             ; @dispc_of_match
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"platform_get_irq failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"syscon-pol"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get syscon-pol regmap\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to get syscon-pol offset\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DISPC_REVISION,4,2             ; @DISPC_REVISION
l_.str.4:                               ; @.str.4
	.asciz	"OMAP DISPC rev %d.%d\n"

	.comm	_dispc_ops,4,2                  ; @dispc_ops
l_.str.5:                               ; @.str.5
	.asciz	"dispc"

	.comm	_dispc_dump_regs,4,2            ; @dispc_dump_regs
	.no_dead_strip	_dispc_bind
.subsections_via_symbols
