	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __smiapp_sel_supported
___smiapp_sel_supported:                ## @__smiapp_sel_supported
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_to_smiapp_sensor
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_smiapp_subdev
	movq	%rax, %rcx
	movl	(%r15), %eax
	leal	-129(%rax), %edx
	cmpl	$2, %edx
	jb	LBB0_6
## %bb.1:
	leal	-131(%rax), %edx
	cmpl	$2, %edx
	jae	LBB0_2
## %bb.13:
	movl	4(%r15), %eax
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.14:
	xorl	%eax, %eax
	cmpq	16(%r14), %rcx
	je	LBB0_18
## %bb.15:
	cmpq	8(%r14), %rcx
	jne	LBB0_17
## %bb.16:
	movq	(%r14), %rcx
	movq	_SMIAPP_LIMIT_SCALING_CAPABILITY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movq	_SMIAPP_SCALING_CAPABILITY_NONE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_17
	jmp	LBB0_18
LBB0_6:
	cmpq	24(%r14), %rcx
	jne	LBB0_8
## %bb.7:
	movl	4(%r15), %edx
	movq	_SMIAPP_PA_PAD_SRC@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpl	(%rsi), %edx
	je	LBB0_18
LBB0_8:
	cmpq	32(%r14), %rcx
	jne	LBB0_10
## %bb.9:
	movl	4(%r15), %edx
	movq	_SMIAPP_PAD_SRC@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpl	(%rsi), %edx
	je	LBB0_18
LBB0_10:
	cmpq	8(%r14), %rcx
	jne	LBB0_17
## %bb.11:
	movl	4(%r15), %eax
	movq	_SMIAPP_PAD_SINK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.12:
	movq	(%r14), %rax
	movq	_SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.3:
	cmpq	24(%r14), %rcx
	jne	LBB0_17
## %bb.4:
	movl	4(%r15), %ecx
	movq	_SMIAPP_PA_PAD_SRC@GOTPCREL(%rip), %rdx
LBB0_5:
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_18
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMIAPP_PA_PAD_SRC,4,2          ## @SMIAPP_PA_PAD_SRC
	.comm	_SMIAPP_PAD_SRC,4,2             ## @SMIAPP_PAD_SRC
	.comm	_SMIAPP_PAD_SINK,4,2            ## @SMIAPP_PAD_SINK
	.comm	_SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY,8,3 ## @SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY
	.comm	_SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP,4,2 ## @SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMIAPP_LIMIT_SCALING_CAPABILITY,8,3 ## @SMIAPP_LIMIT_SCALING_CAPABILITY
	.comm	_SMIAPP_SCALING_CAPABILITY_NONE,4,2 ## @SMIAPP_SCALING_CAPABILITY_NONE
	.no_dead_strip	___smiapp_sel_supported
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __smiapp_sel_supported
___smiapp_sel_supported:                ; @__smiapp_sel_supported
	.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	x20, x1
	mov	x21, x0
	bl	_to_smiapp_sensor
	mov	x19, x0
	mov	x0, x21
	bl	_to_smiapp_subdev
	ldr	w8, [x20]
	sub	w9, w8, #129
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.1:
	sub	w9, w8, #131
	cmp	w9, #2
	b.hs	LBB0_13
; %bb.2:
	ldr	w8, [x20, #4]
	ldr	w9, [x0]
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.3:
	ldr	x8, [x19, #16]
	cmp	x0, x8
	b.eq	LBB0_17
; %bb.4:
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.5:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _SMIAPP_LIMIT_SCALING_CAPABILITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SMIAPP_LIMIT_SCALING_CAPABILITY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _SMIAPP_SCALING_CAPABILITY_NONE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SMIAPP_SCALING_CAPABILITY_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_17
	b	LBB0_18
LBB0_6:
	ldr	x8, [x19, #24]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [x20, #4]
Lloh6:
	adrp	x9, _SMIAPP_PA_PAD_SRC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SMIAPP_PA_PAD_SRC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_17
LBB0_8:
	ldr	x8, [x19, #32]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	ldr	w8, [x20, #4]
Lloh9:
	adrp	x9, _SMIAPP_PAD_SRC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SMIAPP_PAD_SRC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_17
LBB0_10:
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.11:
	ldr	w8, [x20, #4]
Lloh12:
	adrp	x9, _SMIAPP_PAD_SINK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SMIAPP_PAD_SINK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.12:
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh18:
	adrp	x9, _SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP@GOTPAGEOFF]
	b	LBB0_16
LBB0_13:
	cmp	w8, #128
	b.ne	LBB0_18
; %bb.14:
	ldr	x8, [x19, #24]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.15:
	ldr	w8, [x20, #4]
Lloh20:
	adrp	x9, _SMIAPP_PA_PAD_SRC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SMIAPP_PA_PAD_SRC@GOTPAGEOFF]
LBB0_16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
LBB0_17:
	mov	w0, #0
	b	LBB0_19
LBB0_18:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SMIAPP_PA_PAD_SRC,4,2          ; @SMIAPP_PA_PAD_SRC
	.comm	_SMIAPP_PAD_SRC,4,2             ; @SMIAPP_PAD_SRC
	.comm	_SMIAPP_PAD_SINK,4,2            ; @SMIAPP_PAD_SINK
	.comm	_SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY,8,3 ; @SMIAPP_LIMIT_DIGITAL_CROP_CAPABILITY
	.comm	_SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP,4,2 ; @SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMIAPP_LIMIT_SCALING_CAPABILITY,8,3 ; @SMIAPP_LIMIT_SCALING_CAPABILITY
	.comm	_SMIAPP_SCALING_CAPABILITY_NONE,4,2 ; @SMIAPP_SCALING_CAPABILITY_NONE
	.no_dead_strip	___smiapp_sel_supported
.subsections_via_symbols
