	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function program_scaler
_program_scaler:                        ## @program_scaler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	$0, -16(%rbp)
	movq	$0, -24(%rbp)
	movq	(%rdi), %rax
	movq	_VISUAL_CONFIRM_SURFACE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_get_surface_visual_confirm_color
	jmp	LBB0_3
LBB0_2:
	movq	24(%rbx), %rax
	movl	12(%rax), %esi
	leaq	-24(%rbp), %rdx
	callq	_color_space_to_black_color
LBB0_3:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movl	(%rbx), %esi
	movq	24(%rbx), %rdx
	addq	$8, %rdx
	callq	*8(%rax)
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	24(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_PIXEL_ENCODING_YCBCR420@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movl	-24(%rbp), %ecx
	movl	%ecx, -20(%rbp)
LBB0_6:
	leaq	-24(%rbp), %rsi
	callq	*%rax
LBB0_7:
	movq	8(%rbx), %rdi
	movq	(%rdi), %rax
	movq	%rbx, %rsi
	callq	*(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VISUAL_CONFIRM_SURFACE,8,3     ## @VISUAL_CONFIRM_SURFACE
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ## @PIXEL_ENCODING_YCBCR420
	.no_dead_strip	_program_scaler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function program_scaler
_program_scaler:                        ; @program_scaler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	str	wzr, [sp, #8]
	str	xzr, [sp]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VISUAL_CONFIRM_SURFACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VISUAL_CONFIRM_SURFACE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x1, sp
	mov	x0, x19
	bl	_get_surface_visual_confirm_color
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #12]
	mov	x2, sp
	bl	_color_space_to_black_color
LBB0_3:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	w1, [x19]
	ldr	x9, [x19, #24]
	add	x2, x9, #8
	blr	x8
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x9, [x19, #24]
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PIXEL_ENCODING_YCBCR420@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PIXEL_ENCODING_YCBCR420@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	ldr	w9, [sp]
	str	w9, [sp, #4]
LBB0_6:
	mov	x1, sp
	blr	x8
LBB0_7:
	ldr	x0, [x19, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x19
	blr	x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VISUAL_CONFIRM_SURFACE,8,3     ; @VISUAL_CONFIRM_SURFACE
	.comm	_PIXEL_ENCODING_YCBCR420,8,3    ; @PIXEL_ENCODING_YCBCR420
	.no_dead_strip	_program_scaler
.subsections_via_symbols
