	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scaler_ctx_scale               ## -- Begin function scaler_ctx_scale
	.p2align	4, 0x90
_scaler_ctx_scale:                      ## @scaler_ctx_scale
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %r10d
	movl	4(%rdi), %r15d
	movq	8(%rdi), %rax
	movq	_SCALER_FMT_ARGB8888@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	je	LBB0_2
## %bb.1:
	movq	88(%rbx), %rdi
	movl	72(%rbx), %ecx
	movl	76(%rbx), %eax
	movl	96(%rbx), %r8d
	movq	%rdx, %rsi
	movl	%eax, %edx
	movl	%r10d, %r9d
	callq	*104(%rbx)
	movq	88(%rbx), %rdx
	movl	96(%rbx), %r10d
	movq	(%r12), %rax
LBB0_2:
	movq	%r14, %rsi
	cmpq	%rax, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	32(%rbx), %rsi
	movl	24(%rbx), %r15d
LBB0_4:
	movq	80(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	40(%rbx), %r8d
	movl	44(%rbx), %ecx
	movl	76(%rbx), %r9d
	movl	72(%rbx), %r11d
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	%r10
	pushq	%r15
	pushq	%r11
	callq	*%rax
	addq	$32, %rsp
	jmp	LBB0_10
LBB0_6:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movl	%r10d, %edx
	callq	*%rax
LBB0_8:
	movq	56(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	*%rax
LBB0_10:
	movq	16(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	48(%rbx), %rax
	movq	32(%rbx), %rsi
	movl	44(%rbx), %edx
	movl	40(%rbx), %ecx
	movl	4(%rbx), %r8d
	movl	24(%rbx), %r9d
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALER_FMT_ARGB8888,8,3        ## @SCALER_FMT_ARGB8888
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scaler_ctx_scale               ; -- Begin function scaler_ctx_scale
	.p2align	2
_scaler_ctx_scale:                      ; @scaler_ctx_scale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldp	w5, w21, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x22, _SCALER_FMT_ARGB8888@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SCALER_FMT_ARGB8888@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x20, #104]
	ldr	x0, [x20, #88]
	ldp	w3, w8, [x20, #72]
	ldr	w4, [x20, #96]
	mov	x1, x2
	mov	x2, x8
	blr	x9
	ldr	x2, [x20, #88]
	ldr	w5, [x20, #96]
	ldr	x8, [x22]
LBB0_2:
	ldr	x9, [x20, #16]
	mov	x1, x19
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	x1, [x20, #32]
	ldr	w21, [x20, #24]
LBB0_4:
	ldr	x9, [x20, #80]
	cbz	x9, LBB0_6
; %bb.5:
	ldp	w4, w3, [x20, #40]
	ldp	w6, w8, [x20, #72]
	str	w5, [sp]
	mov	x0, x20
	mov	x5, x8
	mov	x7, x21
	blr	x9
	b	LBB0_10
LBB0_6:
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x2
	mov	x2, x5
	blr	x8
LBB0_8:
	ldr	x8, [x20, #56]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	blr	x8
LBB0_10:
	ldr	x8, [x20, #16]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	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
	add	sp, sp, #64
	ret
LBB0_12:
	ldr	x6, [x20, #48]
	ldr	x1, [x20, #32]
	ldp	w3, w2, [x20, #40]
	ldr	w4, [x20, #4]
	ldr	w5, [x20, #24]
	mov	x0, x19
	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
	add	sp, sp, #64
	br	x6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALER_FMT_ARGB8888,8,3        ; @SCALER_FMT_ARGB8888
.subsections_via_symbols
