	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_video_info                 ## -- Begin function get_video_info
	.p2align	4, 0x90
_get_video_info:                        ## @get_video_info
	.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
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	16(%r14), %r12d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	subq	$8, %rsp
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	$129, %edx
	movl	$184, %ecx
	movl	$5120, %r8d                     ## imm = 0x1400
	movl	$3, %r9d
	pushq	$1000                           ## imm = 0x3E8
	pushq	$5
	pushq	(%r14)
	callq	_usb_control_msg
	addq	$32, %rsp
	cmpl	$5, %eax
	jne	LBB0_4
## %bb.3:
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	shll	$8, %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	12(%rax), %ecx
	shll	$8, %ecx
	orl	8(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	16(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_unlock
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.5:
	cmpl	$0, 4(%rbx)
	je	LBB0_7
## %bb.6:
	cmpl	$0, 8(%rbx)
	jne	LBB0_9
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	addq	$12, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_err
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	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	_MSG_INFO,4,2                   ## @MSG_INFO
	.comm	_hdpvr_debug,4,2                ## @hdpvr_debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_video_info                 ; -- Begin function get_video_info
	.p2align	2
_get_video_info:                        ; @get_video_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w22, [x20, #16]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	x6, [x20]
	mov	w8, #1000
	str	w8, [sp]
	mov	x0, x22
	mov	w2, #129
	mov	w3, #184
	mov	w4, #5120
	mov	w5, #3
	mov	w7, #5
	bl	_usb_control_msg
	cmp	w0, #5
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x20]
	ldp	w10, w9, [x8]
	orr	w9, w10, w9, lsl #8
	str	w9, [x19]
	ldp	w10, w9, [x8, #8]
	orr	w9, w10, w9, lsl #8
	str	w9, [x19, #4]
	ldr	w8, [x8, #16]
	str	w8, [x19, #8]
LBB0_3:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w8, [x19]
	cbz	w8, LBB0_6
; %bb.4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_6
; %bb.5:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_8
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_8
LBB0_7:
	add	x0, x20, #12
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
LBB0_8:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.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	_MSG_INFO,4,2                   ; @MSG_INFO
	.comm	_hdpvr_debug,4,2                ; @hdpvr_debug
.subsections_via_symbols
