	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_point_filter_argb_pixels       ## -- Begin function point_filter_argb_pixels
	.p2align	4, 0x90
_point_filter_argb_pixels:              ## @point_filter_argb_pixels
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -168(%rbp)                 ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movl	%edx, -132(%rbp)                ## 4-byte Spill
	movl	%esi, -136(%rbp)                ## 4-byte Spill
	movq	%rdi, -160(%rbp)                ## 8-byte Spill
	movq	40(%rbp), %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-80(%rbp), %rdi
	movl	$32, %esi
	callq	_ZeroMemory
	leaq	-128(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_init_argb_conversion_info
	cmpq	$0, 48(%rbp)
	movq	%r14, -216(%rbp)                ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	_D3DFMT_A8R8G8B8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_format_info
	leaq	-144(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	%rax, %rsi
	callq	_init_argb_conversion_info
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
LBB0_3:
	movq	32(%rbp), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_33
## %bb.4:
	movslq	16(%rbp), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movslq	24(%rbp), %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	32(%rbp), %rax
	movl	4(%rax), %ecx
	xorl	%edx, %edx
	leaq	-96(%rbp), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	32(%rbp), %rax
	movl	(%rax), %esi
LBB0_32:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-176(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movslq	%esi, %rax
	cmpq	%rax, %rdx
	jge	LBB0_33
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	imull	%edx, %eax
	movq	%rdx, %rdi
	cltd
	idivl	%esi
	testl	%ecx, %ecx
	movq	%rdi, -176(%rbp)                ## 8-byte Spill
	jle	LBB0_32
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rdi, %rdx
	imulq	-152(%rbp), %rdx                ## 8-byte Folded Reload
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rsi,%rdx,4), %rdx
	movq	%rdx, -200(%rbp)                ## 8-byte Spill
	imull	-132(%rbp), %eax                ## 4-byte Folded Reload
	cltq
	movq	-160(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	32(%rbp), %rax
	movl	8(%rax), %esi
	xorl	%edi, %edi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	32(%rbp), %rax
	movl	4(%rax), %ecx
	movq	-208(%rbp), %rdi                ## 8-byte Reload
LBB0_30:                                ##   in Loop: Header=BB0_7 Depth=2
	incq	%rdi
	movslq	%ecx, %rax
	cmpq	%rax, %rdi
	jge	LBB0_31
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %eax
	imull	%edi, %eax
	cltd
	idivl	%ecx
	testl	%esi, %esi
	jle	LBB0_30
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	imull	-136(%rbp), %eax                ## 4-byte Folded Reload
	cltq
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rax
	movq	%rax, -224(%rbp)                ## 8-byte Spill
	movq	%rdi, -208(%rbp)                ## 8-byte Spill
	movq	%rdi, %rax
	imulq	-184(%rbp), %rax                ## 8-byte Folded Reload
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %r13
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	8(%rax), %eax
	imull	%r12d, %eax
	cltd
	idivl	%esi
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	movl	(%rdi), %ecx
	imull	%ecx, %eax
	cltq
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	leaq	(%rdx,%rax,4), %r14
	cmpq	$0, 24(%rdi)
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	cmpq	$0, 16(%rbx)
	je	LBB0_11
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%r14, %rsi
	movq	%r13, %r14
	movq	%rdi, %r13
	movq	%r14, %rdx
	callq	_format_to_vec4
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	%r14, %rdi
	leaq	-88(%rbp), %rsi
	movq	56(%rbp), %rdx
	callq	*%rax
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	jne	LBB0_22
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_9 Depth=3
	movl	-96(%rbp), %eax
	movl	%eax, -88(%rbp)
	cmpq	$0, -120(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	leaq	-88(%rbp), %rsi
	leaq	-104(%rbp), %rdx
	callq	_format_from_vec4
	movq	48(%rbp), %rax
	cmpq	%rax, -104(%rbp)
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=3
	movl	$0, -88(%rbp)
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=3
	leaq	-88(%rbp), %rdi
	movq	%r14, %rsi
	callq	*%rax
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=3
	movl	-88(%rbp), %eax
	movl	%eax, -96(%rbp)
LBB0_27:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_format_from_vec4
LBB0_28:                                ##   in Loop: Header=BB0_9 Depth=3
	movslq	(%rbx), %rax
	leaq	(%r15,%rax,4), %r15
	incl	%r12d
	movq	32(%rbp), %rax
	movl	8(%rax), %esi
	cmpl	%esi, %r12d
	jl	LBB0_9
	jmp	LBB0_29
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=3
	movq	8(%rdi), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=3
	cmpl	$4, %ecx
	jg	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=3
	cmpl	$4, (%rbx)
	jg	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=3
	leaq	-128(%rbp), %rdi
	movq	%r14, %rsi
	leaq	-80(%rbp), %rdx
	callq	_get_relevant_argb_components
	leaq	-128(%rbp), %rdi
	leaq	-80(%rbp), %rsi
	callq	_make_argb_color
	movq	%rax, -104(%rbp)
	cmpq	$0, 48(%rbp)
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=3
	leaq	-144(%rbp), %rdi
	movq	%r14, %rsi
	leaq	-80(%rbp), %r14
	movq	%r14, %rdx
	callq	_get_relevant_argb_components
	leaq	-144(%rbp), %rdi
	movq	%r14, %rsi
	callq	_make_argb_color
	cmpq	48(%rbp), %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=3
	movq	-128(%rbp), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, -104(%rbp)
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=3
	movl	(%rbx), %edx
	movq	%r15, %rdi
	leaq	-104(%rbp), %rsi
	callq	_memcpy
	movq	%r13, %r14
	jmp	LBB0_28
LBB0_33:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.34:
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DFMT_A8R8G8B8,4,2            ## @D3DFMT_A8R8G8B8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_point_filter_argb_pixels       ; -- Begin function point_filter_argb_pixels
	.p2align	2
_point_filter_argb_pixels:              ; @point_filter_argb_pixels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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	x22, x7
	mov	x28, x6
	str	x5, [sp, #24]                   ; 8-byte Folded Spill
	mov	x20, x4
	mov	x21, x3
	str	w2, [sp, #20]                   ; 4-byte Folded Spill
	str	w1, [sp, #52]                   ; 4-byte Folded Spill
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldp	x25, x19, [x29, #24]
	ldr	x24, [x29, #16]
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x0, sp, #128
	mov	w1, #32
	bl	_ZeroMemory
	add	x2, sp, #120
	mov	x0, x20
	mov	x1, x25
	bl	_init_argb_conversion_info
	str	x19, [sp, #80]                  ; 8-byte Folded Spill
	cbz	x19, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _D3DFMT_A8R8G8B8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D3DFMT_A8R8G8B8@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_get_format_info
	mov	x26, x0
	add	x2, sp, #112
	mov	x0, x20
	mov	x1, x26
	bl	_init_argb_conversion_info
	b	LBB0_3
LBB0_2:
	mov	x26, #0
LBB0_3:
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_32
; %bb.4:
	mov	x10, #0
	ldr	x27, [x29, #40]
	sxtw	x8, w28
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	sxtw	x8, w22
	str	x8, [sp]                        ; 8-byte Folded Spill
	ldr	w8, [x24, #4]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x24]
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x10, x10, #1
	cmp	x10, w9, sxtw
	b.ge	LBB0_32
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x13, #0
	mov	x12, x10
	ldr	x10, [sp]                       ; 8-byte Folded Reload
	mul	x10, x12, x10
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	add	x10, x11, x10, lsl #2
	str	x10, [sp, #64]                  ; 8-byte Folded Spill
	ldr	w10, [x21]
	str	x12, [sp, #32]                  ; 8-byte Folded Spill
	mul	w10, w10, w12
	sdiv	w9, w10, w9
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	mul	w9, w9, w10
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x9, x10, w9, sxtw #2
	str	x9, [sp, #56]                   ; 8-byte Folded Spill
	ldr	w9, [x24, #8]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	ldr	w8, [x24, #4]
	ldr	x13, [sp, #72]                  ; 8-byte Folded Reload
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x13, x13, #1
	cmp	x13, w8, sxtw
	b.ge	LBB0_5
LBB0_11:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	mov	w23, #0
	ldr	w10, [x21, #4]
	mul	w10, w10, w13
	sdiv	w8, w10, w8
	ldr	w10, [sp, #52]                  ; 4-byte Folded Reload
	mul	w8, w8, w10
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	add	x22, x10, w8, sxtw #2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	str	x13, [sp, #72]                  ; 8-byte Folded Spill
	mul	x8, x13, x8
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	add	x28, x10, x8, lsl #2
LBB0_13:                                ;   Parent Loop BB0_7 Depth=1
                                        ;     Parent Loop BB0_11 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w8, [x21, #8]
	mul	w8, w8, w23
	sdiv	w9, w8, w9
	ldr	w8, [x20]
	mul	w9, w8, w9
	add	x19, x22, w9, sxtw #2
	ldr	x9, [x20, #24]
	cbnz	x9, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x9, [x25, #16]
	cbz	x9, LBB0_25
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=3
	add	x2, sp, #96
	mov	x0, x20
	mov	x1, x19
	bl	_format_to_vec4
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x0, sp, #96
	add	x1, sp, #88
	mov	x2, x27
	blr	x8
	cbnz	x26, LBB0_18
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w8, [sp, #96]
	str	w8, [sp, #88]
	cbz	x26, LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_13 Depth=3
	add	x1, sp, #88
	add	x2, sp, #104
	mov	x0, x26
	bl	_format_from_vec4
	ldr	x8, [sp, #104]
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_13 Depth=3
	str	wzr, [sp, #88]
LBB0_20:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [x25, #16]
	cbz	x8, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x0, sp, #88
	add	x1, sp, #96
	blr	x8
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w8, [sp, #88]
	str	w8, [sp, #96]
LBB0_23:                                ;   in Loop: Header=BB0_13 Depth=3
	add	x1, sp, #96
	mov	x0, x25
	mov	x2, x28
	bl	_format_from_vec4
LBB0_24:                                ;   in Loop: Header=BB0_13 Depth=3
	ldrsw	x8, [x25]
	add	x28, x28, x8, lsl #2
	add	w23, w23, #1
	ldr	w9, [x24, #8]
	cmp	w23, w9
	b.lt	LBB0_13
	b	LBB0_9
LBB0_25:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	x9, [x20, #8]
	ldr	x10, [x25, #8]
	cmp	x9, x10
	b.ne	LBB0_15
; %bb.26:                               ;   in Loop: Header=BB0_13 Depth=3
	cmp	w8, #4
	b.gt	LBB0_15
; %bb.27:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	w8, [x25]
	cmp	w8, #4
	b.gt	LBB0_15
; %bb.28:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x0, sp, #120
	add	x2, sp, #128
	mov	x1, x19
	bl	_get_relevant_argb_components
	add	x0, sp, #120
	add	x1, sp, #128
	bl	_make_argb_color
	str	x0, [sp, #104]
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	cbz	x8, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_13 Depth=3
	add	x0, sp, #112
	add	x2, sp, #128
	mov	x1, x19
	bl	_get_relevant_argb_components
	add	x0, sp, #112
	add	x1, sp, #128
	bl	_make_argb_color
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	cmp	x0, x8
	b.ne	LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_13 Depth=3
	ldr	x8, [sp, #120]
	ldr	x8, [x8]
	ldr	x9, [sp, #104]
	bic	x8, x9, x8
	str	x8, [sp, #104]
LBB0_31:                                ;   in Loop: Header=BB0_13 Depth=3
	ldr	w2, [x25]
	add	x1, sp, #104
	mov	x0, x28
	bl	_memcpy
	b	LBB0_24
LBB0_32:
	ldur	x8, [x29, #-96]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_34
; %bb.33:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_34:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DFMT_A8R8G8B8,4,2            ; @D3DFMT_A8R8G8B8
.subsections_via_symbols
