	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_hlcdc_dc_load
_atmel_hlcdc_dc_load:                   ## @atmel_hlcdc_dc_load
	.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	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_to_platform_device
	movq	%rax, %r15
	movq	_atmel_hlcdc_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.2:
	movq	(%r12), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r14
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_alloc_ordered_workqueue
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_init_waitqueue_head
	movq	(%rbx), %rax
	movq	%rax, 16(%r14)
	movq	(%r12), %rax
	movq	(%rax), %rdi
	callq	_dev_get_drvdata
	movq	%rax, 8(%r14)
	movq	%r14, 8(%r12)
	movq	16(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_15
## %bb.5:
	movl	(%rax), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_14
## %bb.6:
	movl	%eax, %r13d
	movq	(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_27
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	subl	(%rax), %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_14:
	movq	8(%r14), %rax
LBB0_15:
	movl	4(%rax), %edi
	callq	_clk_prepare_enable
	movq	(%r12), %rdi
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_25
LBB0_17:
	callq	_pm_runtime_enable
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_drm_vblank_init
	testl	%eax, %eax
	js	LBB0_21
## %bb.18:
	movq	%r12, %rdi
	callq	_atmel_hlcdc_dc_modeset_init
	testl	%eax, %eax
	js	LBB0_22
## %bb.19:
	movq	%r12, %rdi
	callq	_drm_mode_config_reset
	movq	(%r12), %rdi
	callq	_pm_runtime_get_sync
	movq	8(%r14), %rax
	movl	8(%rax), %esi
	movq	%r12, %rdi
	callq	_drm_irq_install
	movl	%eax, %r13d
	movq	(%r12), %rdi
	callq	_pm_runtime_put_sync
	testl	%r13d, %r13d
	js	LBB0_23
## %bb.20:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	movq	%r12, %rdi
	callq	_drm_kms_helper_poll_init
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_21:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_24
LBB0_22:
	movl	%eax, %r13d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_24
LBB0_23:
	leaq	L_.str.7(%rip), %rsi
LBB0_24:
	movq	(%r12), %rdi
	callq	_dev_err
	movq	(%r12), %rdi
	callq	_pm_runtime_disable
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	callq	_clk_disable_unprepare
LBB0_25:
	movq	16(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.26:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_clk_disable_unprepare
LBB0_27:
	movl	(%r14), %edi
	callq	_destroy_workqueue
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_atmel_hlcdc_of_match,4,2       ## @atmel_hlcdc_of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid compatible string\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"invalid hlcdc description\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"atmel-hlcdc-dc"

L_.str.3:                               ## @.str.3
	.asciz	"failed to enable sys_clk\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to enable periph_clk\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to initialize vblank\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to initialize mode setting\n"

L_.str.7:                               ## @.str.7
	.asciz	"failed to install IRQ handler\n"

	.no_dead_strip	_atmel_hlcdc_dc_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_hlcdc_dc_load
_atmel_hlcdc_dc_load:                   ; @atmel_hlcdc_dc_load
	.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	x20, x0
	ldr	x0, [x0]
	bl	_to_platform_device
	mov	x21, x0
Lloh0:
	adrp	x8, _atmel_hlcdc_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atmel_hlcdc_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w1, [x8]
	bl	_of_match_node
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.2:
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_alloc_ordered_workqueue
	str	w0, [x19]
	cbz	w0, LBB0_8
; %bb.4:
	add	x0, x19, #24
	bl	_init_waitqueue_head
	ldr	x8, [x22]
	str	x8, [x19, #16]
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_dev_get_drvdata
	str	x0, [x19, #8]
	str	x19, [x20, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.5:
	ldr	w0, [x0]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_12
; %bb.6:
	mov	x22, x0
	ldr	x0, [x20]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_25
LBB0_7:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	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
LBB0_12:
	ldr	x0, [x19, #8]
LBB0_13:
	ldr	w0, [x0, #4]
	bl	_clk_prepare_enable
	mov	x22, x0
	ldr	x0, [x20]
	cbz	w22, LBB0_15
; %bb.14:
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	b	LBB0_23
LBB0_15:
	bl	_pm_runtime_enable
	mov	x0, x20
	mov	w1, #1
	bl	_drm_vblank_init
	tbnz	w0, #31, LBB0_19
; %bb.16:
	mov	x0, x20
	bl	_atmel_hlcdc_dc_modeset_init
	tbnz	w0, #31, LBB0_20
; %bb.17:
	mov	x0, x20
	bl	_drm_mode_config_reset
	ldr	x0, [x20]
	bl	_pm_runtime_get_sync
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	mov	x0, x20
	bl	_drm_irq_install
	mov	x22, x0
	ldr	x0, [x20]
	bl	_pm_runtime_put_sync
	tbnz	w22, #31, LBB0_21
; %bb.18:
	mov	x0, x21
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_drm_kms_helper_poll_init
	mov	w22, #0
	b	LBB0_11
LBB0_19:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_20:
	mov	x22, x0
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_22
LBB0_21:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_22:
	ldr	x0, [x20]
	bl	_dev_err
	ldr	x0, [x20]
	bl	_pm_runtime_disable
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_clk_disable_unprepare
LBB0_23:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_clk_disable_unprepare
LBB0_25:
	ldr	w0, [x19]
	bl	_destroy_workqueue
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_atmel_hlcdc_of_match,4,2       ; @atmel_hlcdc_of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid compatible string\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"invalid hlcdc description\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"atmel-hlcdc-dc"

l_.str.3:                               ; @.str.3
	.asciz	"failed to enable sys_clk\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to enable periph_clk\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to initialize vblank\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to initialize mode setting\n"

l_.str.7:                               ; @.str.7
	.asciz	"failed to install IRQ handler\n"

	.no_dead_strip	_atmel_hlcdc_dc_load
.subsections_via_symbols
