	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_scale_config
_get_scale_config:                      ## @get_scale_config
	.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
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_drm_format_info
	movq	%rax, %rcx
	movl	(%rbx), %edi
	cmpl	%r12d, %r14d
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	testl	%edi, %edi
	je	LBB0_9
LBB0_2:
	testl	%edi, %edi
	je	LBB0_3
## %bb.4:
	xorl	%esi, %esi
	testl	%r15d, %r15d
	sete	%sil
	movl	%r14d, %eax
	cltd
	idivl	(%rcx,%rsi,4)
	cmpl	%r12d, %eax
	movq	_SCALE_FILTER_BIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SCALE_FILTER_PCMN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	%eax, %ecx
	cmovgl	%r13d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_5
LBB0_3:
	movq	_SCALE_FILTER_BIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SCALE_FILTER_PCMN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
LBB0_5:
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, %r14d
	cmovlel	%eax, %r13d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	movq	_MDP5_PIPE_SCALE_CONFIG_SCALEX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_MDP5_PIPE_SCALE_CONFIG_SCALEX_FILTER_COMP_0
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movl	%r13d, %edi
	callq	_MDP5_PIPE_SCALE_CONFIG_SCALEX_FILTER_COMP_3
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_SCALE_CONFIG_SCALEX_FILTER_COMP_1_2
	jmp	LBB0_8
LBB0_7:
	movq	_MDP5_PIPE_SCALE_CONFIG_SCALEY_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_MDP5_PIPE_SCALE_CONFIG_SCALEY_FILTER_COMP_0
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movl	%r13d, %edi
	callq	_MDP5_PIPE_SCALE_CONFIG_SCALEY_FILTER_COMP_3
	movl	%eax, %r14d
	orl	%ebx, %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MDP5_PIPE_SCALE_CONFIG_SCALEY_FILTER_COMP_1_2
LBB0_8:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_COND
	orl	%r14d, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCALE_FILTER_BIL,4,2           ## @SCALE_FILTER_BIL
	.comm	_SCALE_FILTER_PCMN,4,2          ## @SCALE_FILTER_PCMN
	.comm	_MDP5_PIPE_SCALE_CONFIG_SCALEX_EN,4,2 ## @MDP5_PIPE_SCALE_CONFIG_SCALEX_EN
	.comm	_MDP5_PIPE_SCALE_CONFIG_SCALEY_EN,4,2 ## @MDP5_PIPE_SCALE_CONFIG_SCALEY_EN
	.no_dead_strip	_get_scale_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_scale_config
_get_scale_config:                      ; @get_scale_config
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_drm_format_info
	ldr	w19, [x19]
	cmp	w22, w21
	b.ne	LBB0_3
; %bb.1:
	cbnz	w19, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_10
LBB0_3:
	cbz	w19, LBB0_5
; %bb.4:
	cmp	w20, #0
	cset	w8, eq
	ldr	w8, [x0, w8, uxtw #2]
	sdiv	w10, w22, w8
Lloh0:
	adrp	x8, _SCALE_FILTER_BIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCALE_FILTER_BIL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SCALE_FILTER_PCMN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCALE_FILTER_PCMN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w10, w21
	csel	w23, w9, w8, gt
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _SCALE_FILTER_BIL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCALE_FILTER_BIL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SCALE_FILTER_PCMN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SCALE_FILTER_PCMN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
                                        ; implicit-def: $w23
LBB0_6:
	cmp	w22, w21
	csel	w21, w9, w8, gt
	cbz	w20, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _MDP5_PIPE_SCALE_CONFIG_SCALEX_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDP5_PIPE_SCALE_CONFIG_SCALEX_EN@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_MDP5_PIPE_SCALE_CONFIG_SCALEX_FILTER_COMP_0
	orr	w20, w0, w20
	mov	x0, x21
	bl	_MDP5_PIPE_SCALE_CONFIG_SCALEX_FILTER_COMP_3
	orr	w20, w20, w0
	mov	x0, x23
	bl	_MDP5_PIPE_SCALE_CONFIG_SCALEX_FILTER_COMP_1_2
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _MDP5_PIPE_SCALE_CONFIG_SCALEY_EN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MDP5_PIPE_SCALE_CONFIG_SCALEY_EN@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	x0, x21
	bl	_MDP5_PIPE_SCALE_CONFIG_SCALEY_FILTER_COMP_0
	orr	w20, w0, w20
	mov	x0, x21
	bl	_MDP5_PIPE_SCALE_CONFIG_SCALEY_FILTER_COMP_3
	orr	w20, w20, w0
	mov	x0, x23
	bl	_MDP5_PIPE_SCALE_CONFIG_SCALEY_FILTER_COMP_1_2
LBB0_9:
	mov	x1, x0
	mov	x0, x19
	bl	_COND
	orr	w0, w20, w0
LBB0_10:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SCALE_FILTER_BIL,4,2           ; @SCALE_FILTER_BIL
	.comm	_SCALE_FILTER_PCMN,4,2          ; @SCALE_FILTER_PCMN
	.comm	_MDP5_PIPE_SCALE_CONFIG_SCALEX_EN,4,2 ; @MDP5_PIPE_SCALE_CONFIG_SCALEX_EN
	.comm	_MDP5_PIPE_SCALE_CONFIG_SCALEY_EN,4,2 ; @MDP5_PIPE_SCALE_CONFIG_SCALEY_EN
	.no_dead_strip	_get_scale_config
.subsections_via_symbols
