	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hexium_attach
_hexium_attach:                         ## @hexium_attach
	.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, %r15
	movq	(%rdi), %r12
	leaq	L_.str(%rip), %rdi
	callq	_DEB_EE
	movq	_vv_data@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_saa7146_vv_init
	movq	_vidioc_enum_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_vidioc_g_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_vidioc_s_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	8(%r12), %rdi
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rsi
	callq	_saa7146_register_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movl	$-1, %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_hexium_num@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_err
	incl	(%rbx)
	movq	$0, (%r12)
	movq	%r15, %rdi
	callq	_hexium_init_done
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_vv_data,12,2                   ## @vv_data
	.comm	_vidioc_enum_input,4,2          ## @vidioc_enum_input
	.comm	_vidioc_g_input,4,2             ## @vidioc_g_input
	.comm	_vidioc_s_input,4,2             ## @vidioc_s_input
L_.str.1:                               ## @.str.1
	.asciz	"hexium orion"

	.comm	_VFL_TYPE_GRABBER,4,2           ## @VFL_TYPE_GRABBER
L_.str.2:                               ## @.str.2
	.asciz	"cannot register capture v4l2 device. skipping.\n"

L_.str.3:                               ## @.str.3
	.asciz	"found 'hexium orion' frame grabber-%d\n"

	.comm	_hexium_num,4,2                 ## @hexium_num
	.no_dead_strip	_hexium_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hexium_attach
_hexium_attach:                         ; @hexium_attach
	.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	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_EE
Lloh2:
	adrp	x20, _vv_data@GOTPAGE
Lloh3:
	ldr	x20, [x20, _vv_data@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_saa7146_vv_init
Lloh4:
	adrp	x8, _vidioc_enum_input@GOTPAGE
Lloh5:
	ldr	x8, [x8, _vidioc_enum_input@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh7:
	adrp	x8, _vidioc_g_input@GOTPAGE
Lloh8:
	ldr	x8, [x8, _vidioc_g_input@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _vidioc_s_input@GOTPAGE
Lloh11:
	ldr	x9, [x9, _vidioc_s_input@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	add	x0, x21, #8
Lloh13:
	adrp	x8, _VFL_TYPE_GRABBER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_saa7146_register_device
	cbz	x0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
Lloh20:
	adrp	x20, _hexium_num@GOTPAGE
Lloh21:
	ldr	x20, [x20, _hexium_num@GOTPAGEOFF]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	str	xzr, [x21]
	mov	x0, x19
	bl	_hexium_init_done
	mov	w0, #0
LBB0_3:
	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 AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_vv_data,12,2                   ; @vv_data
	.comm	_vidioc_enum_input,4,2          ; @vidioc_enum_input
	.comm	_vidioc_g_input,4,2             ; @vidioc_g_input
	.comm	_vidioc_s_input,4,2             ; @vidioc_s_input
l_.str.1:                               ; @.str.1
	.asciz	"hexium orion"

	.comm	_VFL_TYPE_GRABBER,4,2           ; @VFL_TYPE_GRABBER
l_.str.2:                               ; @.str.2
	.asciz	"cannot register capture v4l2 device. skipping.\n"

l_.str.3:                               ; @.str.3
	.asciz	"found 'hexium orion' frame grabber-%d\n"

	.comm	_hexium_num,4,2                 ; @hexium_num
	.no_dead_strip	_hexium_attach
.subsections_via_symbols
