	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smiapp_set_compose_binner
_smiapp_set_compose_binner:             ## @smiapp_set_compose_binner
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r12
	callq	_to_smiapp_sensor
	movq	%rax, %r15
	movq	_SMIAPP_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14,%rax,8), %rax
	movl	(%rax), %esi
	movl	4(%rax), %ecx
	movl	8(%rbx), %edx
	movl	12(%rbx), %r8d
	movl	16(%rbx), %r9d
	movq	%r12, %rdi
	callq	_scaling_goodness
	cmpl	$0, (%r15)
	je	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movl	(%r15), %eax
	cmpq	%rax, %r14
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SMIAPP_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movq	16(%r15), %rdi
	movl	(%rcx), %eax
	movl	4(%rcx), %ecx
	cltd
	idivl	(%rdi,%r14,8)
	movl	%eax, %esi
	movl	%ecx, %eax
	cltd
	idivl	4(%rdi,%r14,8)
	movl	8(%rbx), %edx
	movl	12(%rbx), %r8d
	movl	16(%rbx), %r9d
	movq	%r12, %rdi
	movl	%eax, %ecx
	callq	_scaling_goodness
	cmpl	%r13d, %eax
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r15), %rcx
	movl	(%rcx,%r14,8), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rcx,%r14,8), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %r13d
	jmp	LBB0_5
LBB0_1:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movq	(%rbx), %rax
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_8
## %bb.7:
	movl	%esi, 4(%r15)
	movl	%edi, 8(%r15)
LBB0_8:
	movq	_SMIAPP_PAD_SINK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rcx
	movl	(%rcx), %eax
	xorl	%edx, %edx
	divl	%edi
	andl	$-2, %eax
	movl	%eax, 8(%rbx)
	movl	4(%rcx), %eax
	xorl	%edx, %edx
	divl	%esi
	andl	$-2, %eax
	movl	%eax, 12(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_PAD_SINK,8,3            ## @SMIAPP_PAD_SINK
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_smiapp_set_compose_binner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smiapp_set_compose_binner
_smiapp_set_compose_binner:             ; @smiapp_set_compose_binner
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x22, x0
	bl	_to_smiapp_sensor
	mov	x21, x0
Lloh0:
	adrp	x24, _SMIAPP_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SMIAPP_PAD_SINK@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x20, x8, lsl #3]
	ldp	w1, w3, [x8]
	ldp	w2, w4, [x19, #8]
	ldr	w5, [x19, #16]
	mov	x0, x22
	bl	_scaling_goodness
	ldr	w8, [x21]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x23, x0
	mov	x27, #0
	mov	x28, #0
	mov	w25, #1
	mov	w26, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	ldr	w8, [x21]
	add	x27, x27, #8
	cmp	x28, x8
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x8, [x20, x8, lsl #3]
	ldr	x9, [x21, #16]
	add	x9, x9, x27
	ldp	w10, w8, [x8]
	ldp	w11, w9, [x9]
	sdiv	w1, w10, w11
	ldp	w2, w4, [x19, #8]
	ldr	w5, [x19, #16]
	sdiv	w3, w8, w9
	mov	x0, x22
	bl	_scaling_goodness
	cmp	w0, w23
	b.le	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #16]
	add	x8, x8, x27
	ldp	w26, w25, [x8]
	mov	x23, x0
	b	LBB0_2
LBB0_5:
	mov	w26, #1
	mov	w25, #1
LBB0_6:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	stp	w25, w26, [x21, #4]
LBB0_8:
	ldr	x8, [x24]
	ldr	x8, [x20, x8, lsl #3]
	ldp	w9, w8, [x8]
	udiv	w9, w9, w26
	and	w9, w9, #0xfffffffe
	udiv	w8, w8, w25
	and	w8, w8, #0xfffffffe
	stp	w9, w8, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_PAD_SINK,8,3            ; @SMIAPP_PAD_SINK
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,8,3  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.no_dead_strip	_smiapp_set_compose_binner
.subsections_via_symbols
