	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pnd_setup_layer_
_pnd_setup_layer_:                      ## @pnd_setup_layer_
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r12d
	movl	%ecx, %r13d
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_OMAPFB_QUERY_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	movq	_OMAPFB_QUERY_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r12d, %r14d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	-80(%rbp), %r12d
	xorl	%r15d, %r15d
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.6:
	movl	$0, -80(%rbp)
	movq	_OMAPFB_SETUP_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_7
LBB0_8:
	movl	-100(%rbp), %r12d
	movq	_LAYER_MEM_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	jae	LBB0_11
## %bb.9:
	movl	%eax, -100(%rbp)
	movq	_OMAPFB_SETUP_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_10
LBB0_11:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -72(%rbp)
	movl	%r13d, -68(%rbp)
	movl	%r14d, -64(%rbp)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -60(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -80(%rbp)
	movq	_OMAPFB_SETUP_PLANE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	xorl	%ebx, %ebx
	movl	-80(%rbp), %r15d
LBB0_14:
	movl	$1, %edi
	movl	%r15d, %esi
	callq	_plat_target_switch_layer
LBB0_15:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_perror
	movl	$-1, %ebx
	jmp	LBB0_15
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movl	$-1, %ebx
	jmp	LBB0_14
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	movl	%r12d, %r15d
	jmp	LBB0_8
LBB0_10:
	leaq	-100(%rbp), %rdi
	movl	%r12d, %esi
	callq	_pnd_setup_layer_.cold.1
	movl	$-1, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function pnd_setup_layer_.cold.1
_pnd_setup_layer_.cold.1:               ## @pnd_setup_layer_.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str.3(%rip), %rdi
	callq	_perror
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %ecx
	callq	_fprintf
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMAPFB_QUERY_PLANE,4,2         ## @OMAPFB_QUERY_PLANE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QUERY_PLANE"

	.comm	_OMAPFB_QUERY_MEM,4,2           ## @OMAPFB_QUERY_MEM
L_.str.1:                               ## @.str.1
	.asciz	"QUERY_MEM"

	.comm	_OMAPFB_SETUP_PLANE,4,2         ## @OMAPFB_SETUP_PLANE
L_.str.2:                               ## @.str.2
	.asciz	"SETUP_PLANE"

	.comm	_LAYER_MEM_SIZE,4,2             ## @LAYER_MEM_SIZE
	.comm	_OMAPFB_SETUP_MEM,4,2           ## @OMAPFB_SETUP_MEM
L_.str.3:                               ## @.str.3
	.asciz	"SETUP_MEM"

	.comm	_stderr,4,2                     ## @stderr
L_.str.4:                               ## @.str.4
	.asciz	"(requested %u, had %u)\n"

	.no_dead_strip	_pnd_setup_layer_
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pnd_setup_layer_
_pnd_setup_layer_:                      ; @pnd_setup_layer_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _OMAPFB_QUERY_PLANE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMAPFB_QUERY_PLANE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
	cbnz	w0, LBB0_12
; %bb.1:
Lloh3:
	adrp	x8, _OMAPFB_QUERY_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OMAPFB_QUERY_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_ioctl
	cbnz	w0, LBB0_13
; %bb.2:
	ldr	w26, [sp, #24]
Lloh6:
	adrp	x27, _OMAPFB_SETUP_PLANE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _OMAPFB_SETUP_PLANE@GOTPAGEOFF]
	cbz	w26, LBB0_5
; %bb.3:
	str	wzr, [sp, #24]
	ldr	w1, [x27]
	add	x2, sp, #24
	mov	x0, x19
	bl	_ioctl
	mov	w25, #0
	cbz	w0, LBB0_6
; %bb.4:
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	mov	x25, x26
	b	LBB0_6
LBB0_5:
	mov	w25, #0
LBB0_6:
	ldr	w26, [sp, #4]
Lloh10:
	adrp	x8, _LAYER_MEM_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LAYER_MEM_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w26, w8
	b.hs	LBB0_8
; %bb.7:
	str	w8, [sp, #4]
Lloh13:
	adrp	x8, _OMAPFB_SETUP_MEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OMAPFB_SETUP_MEM@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x28, sp
	mov	x2, sp
	mov	x0, x19
	bl	_ioctl
	cbnz	w0, LBB0_16
LBB0_8:
	stp	w24, w21, [sp, #36]
	str	w20, [sp, #44]
	str	w22, [sp, #32]
	str	w23, [sp, #24]
	ldr	w1, [x27]
	add	x2, sp, #24
	mov	x0, x19
	bl	_ioctl
	cbnz	w0, LBB0_15
; %bb.9:
	mov	w19, #0
	ldr	w25, [sp, #24]
LBB0_10:
	mov	w0, #1
	mov	x1, x25
	bl	_plat_target_switch_layer
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_14:
	bl	_perror
	mov	w19, #-1
	b	LBB0_11
LBB0_15:
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	mov	w19, #-1
	b	LBB0_10
LBB0_16:
	orr	x0, x28, #0x4
	mov	x1, x26
	bl	_pnd_setup_layer_.cold.1
	mov	w19, #-1
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function pnd_setup_layer_.cold.1
_pnd_setup_layer_.cold.1:               ; @pnd_setup_layer_.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_perror
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x3, x19
	bl	_fprintf
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_OMAPFB_QUERY_PLANE,4,2         ; @OMAPFB_QUERY_PLANE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QUERY_PLANE"

	.comm	_OMAPFB_QUERY_MEM,4,2           ; @OMAPFB_QUERY_MEM
l_.str.1:                               ; @.str.1
	.asciz	"QUERY_MEM"

	.comm	_OMAPFB_SETUP_PLANE,4,2         ; @OMAPFB_SETUP_PLANE
l_.str.2:                               ; @.str.2
	.asciz	"SETUP_PLANE"

	.comm	_LAYER_MEM_SIZE,4,2             ; @LAYER_MEM_SIZE
	.comm	_OMAPFB_SETUP_MEM,4,2           ; @OMAPFB_SETUP_MEM
l_.str.3:                               ; @.str.3
	.asciz	"SETUP_MEM"

	.comm	_stderr,4,2                     ; @stderr
l_.str.4:                               ; @.str.4
	.asciz	"(requested %u, had %u)\n"

	.no_dead_strip	_pnd_setup_layer_
.subsections_via_symbols
