	.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
	pushq	%rax
	.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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	68(%rax), %rdi
	callq	_spin_lock_init
	leaq	64(%r12), %rdi
	callq	_init_waitqueue_head
	movq	%r15, 56(%r12)
	movq	%rbx, 48(%r12)
	movq	%rbx, %rdi
	callq	_usb_get_intf
	movq	_vflip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_hflip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	$0, 40(%r12)
	movq	%r12, %rdi
	callq	_set_present
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r15
	movl	8(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$4, %r13
	cmpq	%rcx, %r14
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 32(%r12)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rbx
	addq	%r13, %rbx
	movq	%rbx, %rdi
	callq	_usb_endpoint_is_isoc_in
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r15), %eax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_STK_ERROR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_13
LBB0_14:
	movq	%rbx, %rdi
	callq	_usb_endpoint_num
	movq	%rax, 32(%r12)
LBB0_8:
	cmpq	$0, 32(%r12)
	je	LBB0_9
## %bb.11:
	movl	$32767, 12(%r12)                ## imm = 0x7FFF
	movq	_V4L2_PIX_FMT_RGB565@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_MODE_VGA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$614400, (%r12)                 ## imm = 0x96000
	leaq	8(%r12), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r12, %rdi
	addq	$4, %rdi
	callq	_INIT_LIST_HEAD
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_usb_set_intfdata
	movq	%r12, %rdi
	callq	_stk_register_video_device
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_STK_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_10:
	movq	%r12, %rdi
	callq	_kfree
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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
	.comm	_vflip,4,2                      ## @vflip
	.comm	_hflip,4,2                      ## @hflip
L_.str.1:                               ## @.str.1
	.asciz	"Could not find isoc-in endpoint"

	.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_interface_to_usbdev
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	add	x0, x0, #68
	bl	_spin_lock_init
	add	x0, x19, #64
	bl	_init_waitqueue_head
	stp	x20, x21, [x19, #48]
	mov	x0, x20
	bl	_usb_get_intf
Lloh3:
	adrp	x8, _vflip@GOTPAGE
Lloh4:
	ldr	x8, [x8, _vflip@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _hflip@GOTPAGE
Lloh7:
	ldr	x9, [x9, _hflip@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	str	xzr, [x19, #40]
	mov	x0, x19
	bl	_set_present
	ldr	x22, [x20]
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	add	x23, x23, #4
	cmp	x24, w8, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	cbnz	x9, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	add	x21, x8, x23
	mov	x0, x21
	bl	_usb_endpoint_is_isoc_in
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #8]
	b	LBB0_3
LBB0_7:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_STK_ERROR
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_8:
	mov	x0, x21
	bl	_usb_endpoint_num
	str	x0, [x19, #32]
LBB0_9:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_11
; %bb.10:
	mov	w8, #32767
Lloh14:
	adrp	x9, _V4L2_PIX_FMT_RGB565@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_PIX_FMT_RGB565@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x19, #20]
Lloh17:
	adrp	x9, _MODE_VGA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MODE_VGA@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #12]
	mov	w8, #24576
	movk	w8, #9, lsl #16
	str	w8, [x19]
	add	x0, x19, #8
	bl	_INIT_LIST_HEAD
	add	x0, x19, #4
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	mov	x1, x19
	bl	_usb_set_intfdata
	mov	x0, x19
	bl	_stk_register_video_device
	mov	x20, x0
	cbnz	w0, LBB0_12
	b	LBB0_13
LBB0_11:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_STK_ERROR
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.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
	.comm	_vflip,4,2                      ; @vflip
	.comm	_hflip,4,2                      ; @hflip
l_.str.1:                               ; @.str.1
	.asciz	"Could not find isoc-in endpoint"

	.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
