	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_set_scaler_info           ## -- Begin function fimc_set_scaler_info
	.p2align	4, 0x90
_fimc_set_scaler_info:                  ## @fimc_set_scaler_info
	.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
	movq	%rdi, %rbx
	movq	96(%rdi), %rax
	leaq	8(%rdi), %rcx
	movl	(%rdi), %edx
	cmpl	$270, %edx                      ## imm = 0x10E
	je	LBB0_2
## %bb.1:
	cmpl	$90, %edx
	jne	LBB0_3
LBB0_2:
	leaq	12(%rbx), %rdx
	jmp	LBB0_4
LBB0_3:
	movq	%rcx, %rdx
	leaq	12(%rbx), %rcx
LBB0_4:
	movq	(%rax), %rdi
	movl	(%rdx), %r15d
	movl	(%rcx), %r14d
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.5:
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.8:
	movl	24(%rbx), %r13d
	movl	28(%rbx), %r12d
	testl	%r13d, %r13d
	jle	LBB0_10
## %bb.9:
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.11:
	movq	8(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, 40(%rbx)
	movl	%r12d, 44(%rbx)
	leaq	48(%rbx), %rdx
	leaq	52(%rbx), %rcx
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_fimc_get_scaler_factor
	testl	%eax, %eax
	jne	LBB0_19
## %bb.12:
	leaq	56(%rbx), %rdx
	leaq	60(%rbx), %rcx
	movl	%r12d, %edi
	movl	%r14d, %esi
	callq	_fimc_get_scaler_factor
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:
	movl	%r13d, %eax
	cltd
	idivl	48(%rbx)
	movl	%eax, 64(%rbx)
	movl	%r12d, %eax
	cltd
	idivl	56(%rbx)
	movl	%eax, 68(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	movl	$8, %eax
	movl	$14, %esi
	cmovel	%eax, %esi
	movl	%r13d, %eax
	movl	%esi, %ecx
	shll	%cl, %eax
	movb	52(%rbx), %cl
	movl	%r15d, %edi
	shll	%cl, %edi
	cltd
	idivl	%edi
	movl	%eax, %edi
	movl	%r12d, %eax
	movl	%esi, %ecx
	shll	%cl, %eax
	movb	60(%rbx), %cl
	movl	%r14d, %esi
	shll	%cl, %esi
	cltd
	idivl	%esi
	movl	%edi, 72(%rbx)
	movl	%eax, 76(%rbx)
	xorl	%eax, %eax
	cmpl	%r13d, %r15d
	setae	%al
	movl	%eax, 80(%rbx)
	xorl	%eax, %eax
	cmpl	%r12d, %r14d
	setae	%al
	movl	%eax, 84(%rbx)
	movq	16(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_17
## %bb.14:
	movl	24(%rbx), %eax
	cmpl	8(%rbx), %eax
	jne	LBB0_17
## %bb.15:
	movl	28(%rbx), %eax
	cmpl	12(%rbx), %eax
	jne	LBB0_17
## %bb.16:
	movl	$1, 88(%rbx)
	jmp	LBB0_18
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	jmp	LBB0_7
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
LBB0_7:
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movl	$0, 88(%rbx)
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid target size: %dx%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid source size: %dx%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_set_scaler_info           ; -- Begin function fimc_set_scaler_info
	.p2align	2
_fimc_set_scaler_info:                  ; @fimc_set_scaler_info
	.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	x19, x0
	ldr	x8, [x0, #96]
	ldr	x0, [x8]
	add	x9, x19, #8
	ldr	w10, [x19]
	cmp	w10, #270
	b.eq	LBB0_2
; %bb.1:
	cmp	w10, #90
	b.ne	LBB0_3
LBB0_2:
	add	x10, x19, #12
	b	LBB0_4
LBB0_3:
	mov	x10, x9
	add	x9, x19, #12
LBB0_4:
	ldr	w21, [x10]
	ldr	w20, [x9]
	cmp	w21, #1
	ccmp	w20, #0, #4, ge
	b.gt	LBB0_6
; %bb.5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	b	LBB0_8
LBB0_6:
	ldp	w23, w22, [x19, #24]
	cmp	w23, #1
	ccmp	w22, #0, #4, ge
	b.gt	LBB0_10
; %bb.7:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	mov	x3, x22
LBB0_8:
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	ldr	x24, [x8, #8]
	add	x2, x19, #48
	add	x3, x19, #52
	stp	w23, w22, [x19, #40]
	mov	x0, x23
	mov	x1, x21
	bl	_fimc_get_scaler_factor
	cbnz	w0, LBB0_9
; %bb.11:
	add	x2, x19, #56
	add	x3, x19, #60
	mov	x0, x22
	mov	x1, x20
	bl	_fimc_get_scaler_factor
	cbnz	w0, LBB0_9
; %bb.12:
	ldp	w8, w9, [x19, #48]
	sdiv	w8, w23, w8
	ldp	w10, w11, [x19, #56]
	sdiv	w10, w22, w10
	stp	w8, w10, [x19, #64]
	ldr	x8, [x24]
	cmp	x8, #0
	mov	w8, #14
	mov	w10, #8
	csel	w8, w10, w8, eq
	lsl	w10, w23, w8
	lsl	w9, w21, w9
	sdiv	w9, w10, w9
	lsl	w8, w22, w8
	lsl	w10, w20, w11
	sdiv	w8, w8, w10
	stp	w9, w8, [x19, #72]
	cmp	w21, w23
	cset	w8, hs
	cmp	w20, w22
	cset	w9, hs
	stp	w8, w9, [x19, #80]
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #8]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.14:
	ldr	w8, [x19, #28]
	ldr	w9, [x19, #12]
	cmp	w8, w9
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #88]
	b	LBB0_9
LBB0_16:
	mov	w0, #0
	str	wzr, [x19, #88]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid target size: %dx%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid source size: %dx%d\n"

.subsections_via_symbols
