	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wpf_init_controls
_wpf_init_controls:                     ## @wpf_init_controls
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	addq	$48, %rdi
	callq	_spin_lock_init
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vsp1_rwpf_init_ctrls
	jmp	LBB0_6
LBB0_2:
	movq	_VSP1_HAS_WPF_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vsp1_feature
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	leaq	24(%rbx), %r15
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_vsp1_rwpf_init_ctrls
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_vsp1_wpf_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 24(%rbx)
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 40(%rbx)
	movq	_V4L2_CID_ROTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$270, %r8d                      ## imm = 0x10E
	movl	$90, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 32(%rbx)
	movl	$3, %edi
	movq	%r15, %rsi
	callq	_v4l2_ctrl_cluster
	jmp	LBB0_6
LBB0_3:
	movq	_VSP1_HAS_WPF_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_vsp1_feature
	movq	%rax, %r15
	xorl	%esi, %esi
	testq	%rax, %rax
	setne	%sil
	movq	%rbx, %rdi
	callq	_vsp1_rwpf_init_ctrls
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_vsp1_wpf_ctrl_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 24(%rbx)
LBB0_6:
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.8:
	movl	(%r14), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	(%rbx), %eax
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VSP1_HAS_WPF_HFLIP,4,2         ## @VSP1_HAS_WPF_HFLIP
	.comm	_VSP1_HAS_WPF_VFLIP,4,2         ## @VSP1_HAS_WPF_VFLIP
	.comm	_vsp1_wpf_ctrl_ops,4,2          ## @vsp1_wpf_ctrl_ops
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_ROTATE,4,2            ## @V4L2_CID_ROTATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wpf%u: failed to initialize controls\n"

	.no_dead_strip	_wpf_init_controls
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wpf_init_controls
_wpf_init_controls:                     ; @wpf_init_controls
	.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	x19, x0
	ldr	x20, [x0, #16]
	add	x0, x0, #48
	bl	_spin_lock_init
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_vsp1_rwpf_init_ctrls
	b	LBB0_6
LBB0_2:
Lloh0:
	adrp	x8, _VSP1_HAS_WPF_HFLIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VSP1_HAS_WPF_HFLIP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vsp1_feature
	cbz	x0, LBB0_4
; %bb.3:
	add	x21, x19, #24
	mov	x0, x19
	mov	w1, #3
	bl	_vsp1_rwpf_init_ctrls
Lloh3:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x22, _vsp1_wpf_ctrl_ops@GOTPAGE
Lloh7:
	ldr	x22, [x22, _vsp1_wpf_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #24]
Lloh8:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #40]
Lloh11:
	adrp	x8, _V4L2_CID_ROTATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_ROTATE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	w4, #270
	mov	w5, #90
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #32]
	mov	w0, #3
	mov	x1, x21
	bl	_v4l2_ctrl_cluster
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x8, _VSP1_HAS_WPF_VFLIP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VSP1_HAS_WPF_VFLIP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_vsp1_feature
	mov	x21, x0
	cmp	x0, #0
	cset	w1, ne
	mov	x0, x19
	bl	_vsp1_rwpf_init_ctrls
	cbz	x21, LBB0_6
; %bb.5:
Lloh17:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x1, _vsp1_wpf_ctrl_ops@GOTPAGE
Lloh21:
	ldr	x1, [x1, _vsp1_wpf_ctrl_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x19, #24]
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_8
; %bb.7:
	ldr	w0, [x20]
	ldr	w2, [x19, #8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w0, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_VSP1_HAS_WPF_HFLIP,4,2         ; @VSP1_HAS_WPF_HFLIP
	.comm	_VSP1_HAS_WPF_VFLIP,4,2         ; @VSP1_HAS_WPF_VFLIP
	.comm	_vsp1_wpf_ctrl_ops,4,2          ; @vsp1_wpf_ctrl_ops
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_ROTATE,4,2            ; @V4L2_CID_ROTATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wpf%u: failed to initialize controls\n"

	.no_dead_strip	_wpf_init_controls
.subsections_via_symbols
