	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_egl_image_color_data
_set_egl_image_color_data:              ## @set_egl_image_color_data
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %eax
	movl	4(%rsi), %r14d
	movl	%eax, %r13d
	negl	%r13d
	cmovsl	%eax, %r13d
	movq	_KHDISPATCH_WORKSPACE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r13d
	movl	%eax, %ebx
	movl	8(%rsi), %edi
	callq	_khrn_image_is_brcm1
	movl	%ebx, %ecx
	andl	$-64, %ecx
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	movl	%ecx, %ebx
	xorl	%edi, %edi
	testl	%ecx, %ecx
	setg	%dil
	callq	_assert
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	__min
	movl	%eax, %r14d
	imull	%r13d, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_CLIENT_GET_THREAD_STATE
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%r12, %r13
	movl	(%r12), %r12d
	leal	-1(%r14), %eax
	sarl	$31, %r12d
	andl	%eax, %r12d
	addl	%r15d, %r12d
	movq	_eglIntImageSetColorData_impl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_EGLINTIMAGESETCOLORDATA_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_RPC_EGLID
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	8(%r13), %edi
	callq	_RPC_UINT
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_RPC_UINT
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_RPC_INT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	12(%r13), %edi
	callq	_RPC_UINT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_RPC_INT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	(%r13), %edi
	callq	_RPC_UINT
                                        ## kill: def $eax killed $eax def $rax
	movslq	(%r13), %rcx
	movslq	%r12d, %rbx
	movq	%r13, %r12
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	imulq	%rcx, %rbx
	addq	16(%r12), %rbx
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	%rbx
	pushq	%rax
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	callq	_RPC_CALL8_IN_BULK
	addq	$48, %rsp
	addl	%r14d, %r15d
	subl	%r14d, -44(%rbp)                ## 4-byte Folded Spill
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jg	LBB0_2
LBB0_3:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KHDISPATCH_WORKSPACE_SIZE,4,2  ## @KHDISPATCH_WORKSPACE_SIZE
	.comm	_eglIntImageSetColorData_impl,4,2 ## @eglIntImageSetColorData_impl
	.comm	_EGLINTIMAGESETCOLORDATA_ID,4,2 ## @EGLINTIMAGESETCOLORDATA_ID
	.no_dead_strip	_set_egl_image_color_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_egl_image_color_data
_set_egl_image_color_data:              ; @set_egl_image_color_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x19, x1
	mov	x22, x0
	ldp	w8, w21, [x1]
	cmp	w8, #0
	cneg	w25, w8, mi
Lloh0:
	adrp	x8, _KHDISPATCH_WORKSPACE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KHDISPATCH_WORKSPACE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w20, w8, w25
	ldr	w0, [x1, #8]
	bl	_khrn_image_is_brcm1
	and	w8, w20, #0xffffffc0
	cmp	x0, #0
	csel	w28, w20, w8, eq
	cmp	w28, #0
	cset	w0, gt
	bl	_assert
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w23, #0
	str	w22, [sp, #24]                  ; 4-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x28
	mov	x1, x21
	bl	__min
	mov	x24, x0
	mul	w8, w0, w25
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	bl	_CLIENT_GET_THREAD_STATE
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w8, [x19]
	sub	w9, w24, #1
	and	w8, w9, w8, asr #31
	add	w8, w8, w23
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _eglIntImageSetColorData_impl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _eglIntImageSetColorData_impl@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _EGLINTIMAGESETCOLORDATA_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EGLINTIMAGESETCOLORDATA_ID@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #48]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_RPC_EGLID
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	ldr	w0, [x19, #8]
	bl	_RPC_UINT
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
	mov	w0, #0
	bl	_RPC_UINT
	mov	x22, x0
	mov	x0, x23
	bl	_RPC_INT
	mov	x20, x25
	mov	x25, x0
	ldr	w0, [x19, #12]
	bl	_RPC_UINT
	mov	x27, x0
	mov	x0, x24
	bl	_RPC_INT
	mov	x26, x0
	ldr	w0, [x19]
	bl	_RPC_UINT
	ldr	x8, [x19, #16]
	ldrsw	x9, [x19]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	sxtw	x10, w10
	madd	x8, x9, x10, x8
	ldp	w2, w9, [sp, #48]               ; 8-byte Folded Reload
	str	w9, [sp, #16]
	str	x8, [sp, #8]
	stp	w26, w0, [sp]
	ldp	w3, w0, [sp, #40]               ; 8-byte Folded Reload
	ldr	x1, [sp, #56]                   ; 8-byte Folded Reload
	mov	x5, x22
	ldp	w22, w4, [sp, #24]              ; 8-byte Folded Reload
	mov	x6, x25
	mov	x25, x20
	mov	x7, x27
	bl	_RPC_CALL8_IN_BULK
	add	w23, w24, w23
	sub	w21, w21, w24
	cmp	w21, #0
	b.gt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_KHDISPATCH_WORKSPACE_SIZE,4,2  ; @KHDISPATCH_WORKSPACE_SIZE
	.comm	_eglIntImageSetColorData_impl,4,2 ; @eglIntImageSetColorData_impl
	.comm	_EGLINTIMAGESETCOLORDATA_ID,4,2 ; @EGLINTIMAGESETCOLORDATA_ID
	.no_dead_strip	_set_egl_image_color_data
.subsections_via_symbols
