	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i9xx_scale_aspect
_i9xx_scale_aspect:                     ## @i9xx_scale_aspect
	.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	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	addq	$8, %rdi
	movl	(%rbx), %esi
	movl	4(%rbx), %r8d
	movl	8(%rbx), %eax
	imull	%esi, %eax
	movl	12(%rbx), %ecx
	imull	%r8d, %ecx
	cmpl	%ecx, %eax
	jle	LBB0_4
## %bb.1:
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %esi
	callq	_centre_horizontally
	movq	_LVDS_BORDER_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	(%rbx), %edi
	movl	12(%rbx), %esi
	cmpl	%esi, %edi
	jne	LBB0_3
	jmp	LBB0_8
LBB0_4:
	jge	LBB0_6
## %bb.5:
	cltd
	idivl	%r8d
	movl	%eax, %esi
	callq	_centre_vertically
	movq	_LVDS_BORDER_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	4(%rbx), %edi
	movl	8(%rbx), %esi
	cmpl	%esi, %edi
	je	LBB0_8
LBB0_3:
	callq	_panel_fitter_scaling
	movq	_PFIT_HORIZ_SCALE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	shll	%cl, %edx
	movq	_PFIT_VERT_SCALE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	orl	%eax, (%r15)
	movq	_VERT_INTERP_BILINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PFIT_ENABLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_6:
	movq	_PFIT_ENABLE@GOTPCREL(%rip), %rcx
	movq	_VERT_AUTO_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_HORIZ_AUTO_SCALE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_VERT_INTERP_BILINEAR@GOTPCREL(%rip), %rcx
LBB0_7:
	orl	(%rcx), %eax
	movq	_HORIZ_INTERP_BILINEAR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, (%r14)
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LVDS_BORDER_ENABLE,4,2         ## @LVDS_BORDER_ENABLE
	.comm	_PFIT_HORIZ_SCALE_SHIFT,4,2     ## @PFIT_HORIZ_SCALE_SHIFT
	.comm	_PFIT_VERT_SCALE_SHIFT,4,2      ## @PFIT_VERT_SCALE_SHIFT
	.comm	_PFIT_ENABLE,4,2                ## @PFIT_ENABLE
	.comm	_VERT_INTERP_BILINEAR,4,2       ## @VERT_INTERP_BILINEAR
	.comm	_HORIZ_INTERP_BILINEAR,4,2      ## @HORIZ_INTERP_BILINEAR
	.comm	_VERT_AUTO_SCALE,4,2            ## @VERT_AUTO_SCALE
	.comm	_HORIZ_AUTO_SCALE,4,2           ## @HORIZ_AUTO_SCALE
	.no_dead_strip	_i9xx_scale_aspect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i9xx_scale_aspect
_i9xx_scale_aspect:                     ; @i9xx_scale_aspect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w9, [x0, #8]!
	ldp	w10, w8, [x21]
	mul	w9, w10, w9
	ldr	w11, [x21, #12]
	mul	w11, w11, w8
	cmp	w9, w11
	b.le	LBB0_2
; %bb.1:
	sdiv	w1, w11, w10
	bl	_centre_horizontally
Lloh0:
	adrp	x8, _LVDS_BORDER_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LVDS_BORDER_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x22]
	ldr	w0, [x21]
	ldr	w1, [x21, #12]
	cmp	w0, w1
	b.ne	LBB0_4
	b	LBB0_7
LBB0_2:
	b.ge	LBB0_5
; %bb.3:
	sdiv	w1, w9, w8
	bl	_centre_vertically
Lloh3:
	adrp	x8, _LVDS_BORDER_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LVDS_BORDER_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x22]
	ldp	w0, w1, [x21, #4]
	cmp	w0, w1
	b.eq	LBB0_7
LBB0_4:
	bl	_panel_fitter_scaling
Lloh6:
	adrp	x8, _PFIT_HORIZ_SCALE_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PFIT_HORIZ_SCALE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PFIT_VERT_SCALE_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PFIT_VERT_SCALE_SHIFT@GOTPAGEOFF]
	lsl	w8, w0, w8
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w0, w9
	orr	w8, w9, w8
	ldr	w9, [x20]
	orr	w8, w8, w9
	str	w8, [x20]
Lloh12:
	adrp	x8, _VERT_INTERP_BILINEAR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VERT_INTERP_BILINEAR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PFIT_ENABLE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PFIT_ENABLE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _PFIT_ENABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PFIT_ENABLE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _VERT_AUTO_SCALE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VERT_AUTO_SCALE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _HORIZ_AUTO_SCALE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _HORIZ_AUTO_SCALE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _VERT_INTERP_BILINEAR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VERT_INTERP_BILINEAR@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _HORIZ_INTERP_BILINEAR@GOTPAGE
Lloh29:
	ldr	x10, [x10, _HORIZ_INTERP_BILINEAR@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh30:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x19]
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_LVDS_BORDER_ENABLE,4,2         ; @LVDS_BORDER_ENABLE
	.comm	_PFIT_HORIZ_SCALE_SHIFT,4,2     ; @PFIT_HORIZ_SCALE_SHIFT
	.comm	_PFIT_VERT_SCALE_SHIFT,4,2      ; @PFIT_VERT_SCALE_SHIFT
	.comm	_PFIT_ENABLE,4,2                ; @PFIT_ENABLE
	.comm	_VERT_INTERP_BILINEAR,4,2       ; @VERT_INTERP_BILINEAR
	.comm	_HORIZ_INTERP_BILINEAR,4,2      ; @HORIZ_INTERP_BILINEAR
	.comm	_VERT_AUTO_SCALE,4,2            ; @VERT_AUTO_SCALE
	.comm	_HORIZ_AUTO_SCALE,4,2           ; @HORIZ_AUTO_SCALE
	.no_dead_strip	_i9xx_scale_aspect
.subsections_via_symbols
