	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camif_get_scaler_factor
_camif_get_scaler_factor:               ## @camif_get_scaler_factor
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rcx, %r8
                                        ## kill: def $esi killed $esi def $rsi
	movl	%esi, %ecx
	shll	$6, %ecx
	cmpl	%edi, %ecx
	jle	LBB0_11
## %bb.1:
	movl	%esi, %eax
	shll	$5, %eax
	movl	$5, %ecx
	cmpl	%edi, %eax
	jbe	LBB0_7
## %bb.2:
	movl	%esi, %eax
	shll	$4, %eax
	movl	$4, %ecx
	cmpl	%edi, %eax
	jbe	LBB0_7
## %bb.3:
	leal	(,%rsi,8), %eax
	movl	$3, %ecx
	cmpl	%edi, %eax
	jbe	LBB0_7
## %bb.4:
	leal	(,%rsi,4), %eax
	movl	$2, %ecx
	cmpl	%edi, %eax
	jbe	LBB0_7
## %bb.5:
	leal	(%rsi,%rsi), %eax
	movl	$1, %ecx
	cmpl	%edi, %eax
	jbe	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	cmpl	%edi, %esi
	jbe	LBB0_7
## %bb.8:
	movl	$0, (%r8)
	movl	$1, (%rdx)
	jmp	LBB0_9
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movl	$1, %eax
	shll	%cl, %eax
	movl	%ecx, (%r8)
	movl	%eax, (%rdx)
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_camif_get_scaler_factor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camif_get_scaler_factor
_camif_get_scaler_factor:               ; @camif_get_scaler_factor
	.cfi_startproc
; %bb.0:
	cmp	w0, w1, lsl #6
	b.ge	LBB0_8
; %bb.1:
	cmp	w0, w1, lsl #5
	b.hs	LBB0_9
; %bb.2:
	cmp	w0, w1, lsl #4
	b.hs	LBB0_10
; %bb.3:
	cmp	w0, w1, lsl #3
	b.hs	LBB0_11
; %bb.4:
	cmp	w0, w1, lsl #2
	b.hs	LBB0_12
; %bb.5:
	cmp	w0, w1, lsl #1
	b.hs	LBB0_13
; %bb.6:
	cmp	w1, w0
	b.ls	LBB0_14
; %bb.7:
	mov	w0, #0
	str	wzr, [x3]
	mov	w8, #1
	str	w8, [x2]
	ret
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_9:
	mov	w8, #5
	b	LBB0_15
LBB0_10:
	mov	w8, #4
	b	LBB0_15
LBB0_11:
	mov	w8, #3
	b	LBB0_15
LBB0_12:
	mov	w8, #2
	b	LBB0_15
LBB0_13:
	mov	w8, #1
	b	LBB0_15
LBB0_14:
	mov	w8, #0
LBB0_15:
	mov	w0, #0
	mov	w9, #1
	lsl	w9, w9, w8
	str	w8, [x3]
	str	w9, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_camif_get_scaler_factor
.subsections_via_symbols
