	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stk_camera_probe
_stk_camera_probe:                      ## @stk_camera_probe
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_interface_to_usbdev
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %rdi
	leaq	8(%rax), %r12
	movq	%r12, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	84(%r15), %rbx
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$96, (%rsp)
	movq	_stk_ctrl_ops@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_HFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_VFLIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movl	84(%r15), %r14d
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_6:
	movq	%rbx, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r12, %rdi
	callq	_v4l2_device_unregister
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_28
LBB0_3:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_7:
	movq	%r15, %rdi
	callq	_kfree
LBB0_28:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, 8(%r15)
	leaq	80(%r15), %rdi
	callq	_spin_lock_init
	leaq	76(%r15), %rdi
	callq	_mutex_init
	leaq	72(%r15), %rdi
	callq	_init_waitqueue_head
	movl	$1, (%r15)
	movq	%r13, 64(%r15)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, 56(%r15)
	movq	%r14, %rdi
	callq	_usb_get_intf
	movq	_hflip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, 24(%r15)
	jmp	LBB0_13
LBB0_10:
	movq	_stk_upside_down_dmi_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	$1, 24(%r15)
	jmp	LBB0_13
LBB0_12:
	movl	$0, 24(%r15)
LBB0_13:
	movq	_vflip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_15
## %bb.14:
	movl	%eax, 28(%r15)
	jmp	LBB0_18
LBB0_15:
	movq	_stk_upside_down_dmi_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movl	$1, 28(%r15)
	jmp	LBB0_18
LBB0_17:
	movl	$0, 28(%r15)
LBB0_18:
	movq	$0, 48(%r15)
	movq	%r15, %rdi
	callq	_set_present
	movq	(%r14), %r14
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_24
## %bb.19:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	8(%r14), %eax
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$4, %r13
	cmpq	%rcx, %r12
	jge	LBB0_24
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 40(%r15)
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r14), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_isoc_in
	testq	%rax, %rax
	je	LBB0_22
## %bb.29:
	movq	%rbx, %rdi
	callq	_usb_endpoint_num
	movq	%rax, 40(%r15)
LBB0_24:
	cmpq	$0, 40(%r15)
	je	LBB0_25
## %bb.26:
	movq	_V4L2_PIX_FMT_RGB565@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_MODE_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	$614400, 4(%r15)                ## imm = 0x96000
	leaq	20(%r15), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_INIT_LIST_HEAD
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_usb_set_intfdata
	movq	%r15, %rdi
	callq	_stk_register_video_device
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_6
## %bb.27:
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_25:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory !\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"couldn't register v4l2_device\n"

	.comm	_stk_ctrl_ops,4,2               ## @stk_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_HFLIP,4,2             ## @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ## @V4L2_CID_VFLIP
L_.str.2:                               ## @.str.2
	.asciz	"couldn't register control\n"

	.comm	_hflip,4,2                      ## @hflip
	.comm	_stk_upside_down_dmi_table,4,2  ## @stk_upside_down_dmi_table
	.comm	_vflip,4,2                      ## @vflip
L_.str.3:                               ## @.str.3
	.asciz	"Could not find isoc-in endpoint\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_V4L2_PIX_FMT_RGB565,4,2        ## @V4L2_PIX_FMT_RGB565
	.comm	_MODE_VGA,4,2                   ## @MODE_VGA
	.no_dead_strip	_stk_camera_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stk_camera_probe
_stk_camera_probe:                      ; @stk_camera_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x0
	bl	_interface_to_usbdev
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, x22, #8
	add	x20, x19, #8
	mov	x1, x20
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_6
; %bb.2:
	add	x21, x19, #84
	mov	x0, x21
	mov	w1, #3
	bl	_v4l2_ctrl_handler_init
Lloh3:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x24, _stk_ctrl_ops@GOTPAGE
Lloh7:
	ldr	x24, [x24, _stk_ctrl_ops@GOTPAGEOFF]
	mov	w25, #1
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #96
	bl	_v4l2_ctrl_new_std
Lloh8:
	adrp	x8, _V4L2_CID_HFLIP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_CID_HFLIP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
Lloh11:
	adrp	x8, _V4L2_CID_VFLIP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_CID_VFLIP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	ldr	w24, [x19, #84]
	cbz	w24, LBB0_9
; %bb.3:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x23
	bl	_dev_err
LBB0_4:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_device_unregister
	b	LBB0_7
LBB0_5:
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_8
LBB0_6:
	mov	x24, x0
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	x21, [x19, #8]
	add	x0, x19, #80
	bl	_spin_lock_init
	add	x0, x19, #76
	bl	_mutex_init
	add	x0, x19, #72
	bl	_init_waitqueue_head
	str	w25, [x19]
	stp	x22, x23, [x19, #56]
	mov	x0, x22
	bl	_usb_get_intf
Lloh23:
	adrp	x8, _hflip@GOTPAGE
Lloh24:
	ldr	x8, [x8, _hflip@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_11
; %bb.10:
	str	w8, [x19, #24]
	b	LBB0_14
LBB0_11:
Lloh26:
	adrp	x8, _stk_upside_down_dmi_table@GOTPAGE
Lloh27:
	ldr	x8, [x8, _stk_upside_down_dmi_table@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_dmi_check_system
	cbz	x0, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x19, #24]
	b	LBB0_14
LBB0_13:
	str	wzr, [x19, #24]
LBB0_14:
Lloh29:
	adrp	x8, _vflip@GOTPAGE
Lloh30:
	ldr	x8, [x8, _vflip@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_16
; %bb.15:
	str	w8, [x19, #28]
	b	LBB0_19
LBB0_16:
Lloh32:
	adrp	x8, _stk_upside_down_dmi_table@GOTPAGE
Lloh33:
	ldr	x8, [x8, _stk_upside_down_dmi_table@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_dmi_check_system
	cbz	x0, LBB0_18
; %bb.17:
	mov	w8, #1
	str	w8, [x19, #28]
	b	LBB0_19
LBB0_18:
	str	wzr, [x19, #28]
LBB0_19:
	str	xzr, [x19, #48]
	mov	x0, x19
	bl	_set_present
	ldr	x24, [x22]
	ldr	w8, [x24, #8]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.20:
	mov	x25, #0
	mov	x26, #0
	b	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x24, #8]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=1
	add	x26, x26, #1
	add	x25, x25, #4
	cmp	x26, w8, sxtw
	b.ge	LBB0_26
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #40]
	cbnz	x9, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x8, [x24]
	add	x23, x8, x25
	mov	x0, x23
	bl	_usb_endpoint_is_isoc_in
	cbz	x0, LBB0_21
; %bb.25:
	mov	x0, x23
	bl	_usb_endpoint_num
	str	x0, [x19, #40]
LBB0_26:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_28
; %bb.27:
Lloh35:
	adrp	x8, _V4L2_PIX_FMT_RGB565@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V4L2_PIX_FMT_RGB565@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _MODE_VGA@GOTPAGE
Lloh39:
	ldr	x9, [x9, _MODE_VGA@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #32]
	mov	w8, #24576
	movk	w8, #9, lsl #16
	str	w8, [x19, #4]
	add	x0, x19, #20
	bl	_INIT_LIST_HEAD
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	mov	x0, x22
	mov	x1, x19
	bl	_usb_set_intfdata
	mov	x0, x19
	bl	_stk_register_video_device
	mov	x24, x0
	cbnz	w0, LBB0_4
	b	LBB0_8
LBB0_28:
Lloh41:
	adrp	x0, l_.str.3@PAGE
Lloh42:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
Lloh43:
	adrp	x8, _ENODEV@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_4
	.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 AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory !\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"couldn't register v4l2_device\n"

	.comm	_stk_ctrl_ops,4,2               ; @stk_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_HFLIP,4,2             ; @V4L2_CID_HFLIP
	.comm	_V4L2_CID_VFLIP,4,2             ; @V4L2_CID_VFLIP
l_.str.2:                               ; @.str.2
	.asciz	"couldn't register control\n"

	.comm	_hflip,4,2                      ; @hflip
	.comm	_stk_upside_down_dmi_table,4,2  ; @stk_upside_down_dmi_table
	.comm	_vflip,4,2                      ; @vflip
l_.str.3:                               ; @.str.3
	.asciz	"Could not find isoc-in endpoint\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_V4L2_PIX_FMT_RGB565,4,2        ; @V4L2_PIX_FMT_RGB565
	.comm	_MODE_VGA,4,2                   ; @MODE_VGA
	.no_dead_strip	_stk_camera_probe
.subsections_via_symbols
