	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_khrn_platform_bind_pixmap_to_egl_image ## -- Begin function khrn_platform_bind_pixmap_to_egl_image
	.p2align	4, 0x90
_khrn_platform_bind_pixmap_to_egl_image: ## @khrn_platform_bind_pixmap_to_egl_image
	.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	_NUM_PIXMAP_BINDINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movl	%edx, %r12d
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_pixmap_binding@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shlq	$4, %rax
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%r13)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r13
	incl	%ebx
	cmpq	%r13, %rax
	jne	LBB0_2
LBB0_6:
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vcos_assert                    ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_vcos_log_trace
	movq	_pixmap_binding@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$1, (%rax,%r13)
	movl	%r15d, 12(%rax,%r13)
	movl	%r14d, 8(%rax,%r13)
	movl	%r12d, 4(%rax,%r13)
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.4:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_send_bound_pixmap              ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_PIXMAP_BINDINGS,4,2        ## @NUM_PIXMAP_BINDINGS
	.comm	_pixmap_binding,8,3             ## @pixmap_binding
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"khrn_platform_bind_pixmap_to_egl_image %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_khrn_platform_bind_pixmap_to_egl_image ; -- Begin function khrn_platform_bind_pixmap_to_egl_image
	.p2align	2
_khrn_platform_bind_pixmap_to_egl_image: ; @khrn_platform_bind_pixmap_to_egl_image
	.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
Lloh0:
	adrp	x8, _NUM_PIXMAP_BINDINGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_PIXMAP_BINDINGS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w22, #0
	mov	x23, #0
Lloh3:
	adrp	x24, _pixmap_binding@GOTPAGE
Lloh4:
	ldr	x24, [x24, _pixmap_binding@GOTPAGEOFF]
	ldr	x8, [x24]
	lsl	x9, x9, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x8, x23]
	cbz	w10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #16
	add	w22, w22, #1
	cmp	x9, x23
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #0
	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
	b	_vcos_assert
LBB0_5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_vcos_log_trace
	ldr	x8, [x24]
	add	x8, x8, x23
	mov	w9, #1
	stp	w20, w21, [x8, #8]
	stp	w9, w19, [x8]
	cbz	w19, LBB0_7
; %bb.6:
	mov	x0, x22
	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
	b	_send_bound_pixmap
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_PIXMAP_BINDINGS,4,2        ; @NUM_PIXMAP_BINDINGS
	.comm	_pixmap_binding,8,3             ; @pixmap_binding
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"khrn_platform_bind_pixmap_to_egl_image %d"

.subsections_via_symbols
