	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atmel_hlcdc_create_planes      ## -- Begin function atmel_hlcdc_create_planes
	.p2align	4, 0x90
_atmel_hlcdc_create_planes:             ## @atmel_hlcdc_create_planes
	.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, %r15
	movq	8(%rdi), %r14
	movq	8(%r14), %rax
	movq	8(%rax), %rbx
	movl	(%rax), %r12d
	movl	(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	$4, %edx
	movl	$4, %ecx
	xorl	%r8d, %r8d
	callq	_dmam_pool_create
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.2:
	movq	_ATMEL_HLCDC_BASE_LAYER@GOTPCREL(%rip), %r13
	movq	_ATMEL_HLCDC_OVERLAY_LAYER@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_atmel_hlcdc_plane_create
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$8, %rbx
	decq	%r12
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r14), %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ATMEL_HLCDC_CURSOR_LAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
	jmp	LBB0_6
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_9:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel-hlcdc-dscr"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATMEL_HLCDC_BASE_LAYER,8,3     ## @ATMEL_HLCDC_BASE_LAYER
	.comm	_ATMEL_HLCDC_OVERLAY_LAYER,8,3  ## @ATMEL_HLCDC_OVERLAY_LAYER
	.comm	_ATMEL_HLCDC_CURSOR_LAYER,8,3   ## @ATMEL_HLCDC_CURSOR_LAYER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atmel_hlcdc_create_planes      ; -- Begin function atmel_hlcdc_create_planes
	.p2align	2
_atmel_hlcdc_create_planes:             ; @atmel_hlcdc_create_planes
	.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, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22, #8]
	ldr	x20, [x8, #8]
	ldr	w21, [x8]
	ldr	w1, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #4
	mov	w3, #4
	mov	w4, #0
	bl	_dmam_pool_create
	str	w0, [x22]
	cbz	w0, LBB0_7
; %bb.1:
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.2:
Lloh2:
	adrp	x22, _ATMEL_HLCDC_BASE_LAYER@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ATMEL_HLCDC_BASE_LAYER@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ATMEL_HLCDC_OVERLAY_LAYER@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ATMEL_HLCDC_OVERLAY_LAYER@GOTPAGEOFF]
Lloh6:
	adrp	x24, _ATMEL_HLCDC_CURSOR_LAYER@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ATMEL_HLCDC_CURSOR_LAYER@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #8
	subs	x21, x21, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x9, [x22]
	ldr	x10, [x23]
	ldr	x11, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_atmel_hlcdc_plane_create
	cbz	w0, LBB0_3
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel-hlcdc-dscr"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATMEL_HLCDC_BASE_LAYER,8,3     ; @ATMEL_HLCDC_BASE_LAYER
	.comm	_ATMEL_HLCDC_OVERLAY_LAYER,8,3  ; @ATMEL_HLCDC_OVERLAY_LAYER
	.comm	_ATMEL_HLCDC_CURSOR_LAYER,8,3   ; @ATMEL_HLCDC_CURSOR_LAYER
.subsections_via_symbols
