	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resizer_link_setup
_resizer_link_setup:                    ## @resizer_link_setup
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	callq	_media_entity_to_v4l2_subdev
	movq	%rax, %rdi
	callq	_v4l2_get_subdevdata
	movq	%rax, %r14
	movl	(%rbx), %ebx
	movl	4(%r12), %edi
	callq	_is_media_entity_v4l2_subdev
	movl	%ebx, %ecx
	orl	$131072, %ecx                   ## imm = 0x20000
	testq	%rax, %rax
	cmovel	%ebx, %ecx
	xorl	%eax, %eax
	cmpl	$128, %ecx
	je	LBB0_17
## %bb.1:
	cmpl	$131201, %ecx                   ## imm = 0x20081
	je	LBB0_11
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_15
## %bb.3:
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rdx
	movq	(%r14), %rcx
	testl	%r15d, (%rdx)
	je	LBB0_8
## %bb.4:
	movq	_RESIZER_INPUT_VP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.6:
	movq	_RESIZER_INPUT_MEMORY@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_11:
	movq	_MEDIA_LNK_FL_ENABLED@GOTPCREL(%rip), %rdx
	movq	(%r14), %rcx
	testl	%r15d, (%rdx)
	je	LBB0_14
## %bb.12:
	movq	_RESIZER_INPUT_MEMORY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.13:
	movq	_RESIZER_INPUT_VP@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_5:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_16:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_8:
	movq	_RESIZER_INPUT_MEMORY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
	jmp	LBB0_10
LBB0_14:
	movq	_RESIZER_INPUT_VP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_17
LBB0_10:
	movq	_RESIZER_INPUT_NONE@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	movq	%rcx, (%r14)
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ## @MEDIA_LNK_FL_ENABLED
	.comm	_RESIZER_INPUT_VP,8,3           ## @RESIZER_INPUT_VP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RESIZER_INPUT_MEMORY,8,3       ## @RESIZER_INPUT_MEMORY
	.comm	_RESIZER_INPUT_NONE,8,3         ## @RESIZER_INPUT_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_resizer_link_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resizer_link_setup
_resizer_link_setup:                    ; @resizer_link_setup
	.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, x3
	mov	x21, x2
	mov	x22, x1
	bl	_media_entity_to_v4l2_subdev
	bl	_v4l2_get_subdevdata
	mov	x19, x0
	ldr	w22, [x22]
	ldr	w0, [x21, #4]
	bl	_is_media_entity_v4l2_subdev
	orr	w8, w22, #0x20000
	cmp	x0, #0
	csel	w8, w22, w8, eq
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.1:
	mov	w9, #129
	movk	w9, #2, lsl #16
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	x8, [x19]
	tst	w9, w20
	b.eq	LBB0_12
; %bb.4:
Lloh3:
	adrp	x9, _RESIZER_INPUT_VP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RESIZER_INPUT_VP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.5:
	mov	w0, #0
Lloh6:
	adrp	x8, _RESIZER_INPUT_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESIZER_INPUT_MEMORY@GOTPAGEOFF]
	b	LBB0_17
LBB0_6:
Lloh8:
	adrp	x8, _MEDIA_LNK_FL_ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEDIA_LNK_FL_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
	ldr	x8, [x19]
	tst	w9, w20
	b.eq	LBB0_13
; %bb.7:
Lloh11:
	adrp	x9, _RESIZER_INPUT_MEMORY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RESIZER_INPUT_MEMORY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
	mov	w0, #0
Lloh14:
	adrp	x8, _RESIZER_INPUT_VP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RESIZER_INPUT_VP@GOTPAGEOFF]
	b	LBB0_17
LBB0_9:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _EBUSY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_12:
Lloh20:
	adrp	x9, _RESIZER_INPUT_MEMORY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RESIZER_INPUT_MEMORY@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh22:
	adrp	x9, _RESIZER_INPUT_VP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RESIZER_INPUT_VP@GOTPAGEOFF]
LBB0_14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
LBB0_15:
	mov	w0, #0
	b	LBB0_18
LBB0_16:
	mov	w0, #0
Lloh24:
	adrp	x8, _RESIZER_INPUT_NONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RESIZER_INPUT_NONE@GOTPAGEOFF]
LBB0_17:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_18:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_LNK_FL_ENABLED,4,2       ; @MEDIA_LNK_FL_ENABLED
	.comm	_RESIZER_INPUT_VP,8,3           ; @RESIZER_INPUT_VP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RESIZER_INPUT_MEMORY,8,3       ; @RESIZER_INPUT_MEMORY
	.comm	_RESIZER_INPUT_NONE,8,3         ; @RESIZER_INPUT_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_resizer_link_setup
.subsections_via_symbols
