	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx18_init_struct1
_cx18_init_struct1:                     ## @cx18_init_struct1
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	184(%rdi), %edi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movl	%eax, 188(%rbx)
	leaq	180(%rbx), %rdi
	callq	_mutex_init
	leaq	176(%rbx), %rdi
	callq	_mutex_init
	leaq	172(%rbx), %rdi
	callq	_mutex_init
	leaq	168(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_cx18_create_in_workq
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_cx18_init_in_work_orders
	movl	$1, (%rbx)
	movq	_CX2341X_PORT_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	56(%rbx), %rdi
	movl	%eax, 136(%rbx)
	movq	_CX2341X_CAP_HAS_TS@GOTPCREL(%rip), %rax
	movq	_CX2341X_CAP_HAS_SLICED_VBI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 56(%rbx)
	movq	_cx18_cxhdl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 128(%rbx)
	movq	_cx18_api_func@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%rbx)
	movq	_CX18_ENC_STREAM_TYPE_MPG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	%rax, 112(%rbx)
	movl	$50, %esi
	callq	_cx2341x_handler_init
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	104(%rbx), %rax
	movq	%rax, 152(%rbx)
	movq	96(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 148(%rbx)
	movq	88(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 144(%rbx)
	movq	80(%rbx), %rax
	movq	64(%rbx), %rcx
	movq	72(%rbx), %rdx
	movl	(%rdx), %edx
	addl	%edx, %edx
	orl	(%rax), %edx
	movl	(%rcx), %eax
	shll	$2, %eax
	orl	%edx, %eax
	movl	%eax, 4(%rbx)
	leaq	52(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	48(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	44(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	40(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	_V4L2_BUF_TYPE_VBI_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%rbx), %r14
	leaq	20(%rbx), %rcx
	movl	%eax, 24(%rbx)
	movq	%rcx, 32(%rbx)
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_list_add
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX2341X_PORT_MEMORY,4,2        ## @CX2341X_PORT_MEMORY
	.comm	_CX2341X_CAP_HAS_TS,4,2         ## @CX2341X_CAP_HAS_TS
	.comm	_CX2341X_CAP_HAS_SLICED_VBI,4,2 ## @CX2341X_CAP_HAS_SLICED_VBI
	.comm	_cx18_cxhdl_ops,4,2             ## @cx18_cxhdl_ops
	.comm	_cx18_api_func,4,2              ## @cx18_api_func
	.comm	_CX18_ENC_STREAM_TYPE_MPG,8,3   ## @CX18_ENC_STREAM_TYPE_MPG
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,4,2  ## @V4L2_BUF_TYPE_VBI_CAPTURE
	.no_dead_strip	_cx18_init_struct1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx18_init_struct1
_cx18_init_struct1:                     ; @cx18_init_struct1
	.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	w0, [x0, #184]
	mov	w1, #0
	bl	_pci_resource_start
	str	w0, [x19, #188]
	add	x0, x19, #180
	bl	_mutex_init
	add	x0, x19, #176
	bl	_mutex_init
	add	x0, x19, #172
	bl	_mutex_init
	add	x0, x19, #168
	bl	_mutex_init
	mov	x0, x19
	bl	_cx18_create_in_workq
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_cx18_init_in_work_orders
	mov	w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x8, _CX2341X_PORT_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX2341X_PORT_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CX2341X_CAP_HAS_TS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CX2341X_CAP_HAS_TS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _CX2341X_CAP_HAS_SLICED_VBI@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CX2341X_CAP_HAS_SLICED_VBI@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	mov	x0, x19
	str	w9, [x0, #56]!
Lloh9:
	adrp	x9, _cx18_cxhdl_ops@GOTPAGE
Lloh10:
	ldr	x9, [x9, _cx18_cxhdl_ops@GOTPAGEOFF]
	str	w8, [x0, #80]
	str	x9, [x0, #72]
Lloh11:
	adrp	x8, _cx18_api_func@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cx18_api_func@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #64]
	ldr	x8, [x0, #104]
Lloh14:
	adrp	x9, _CX18_ENC_STREAM_TYPE_MPG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CX18_ENC_STREAM_TYPE_MPG@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x0, #56]
	mov	w1, #50
	bl	_cx2341x_handler_init
	cbnz	w0, LBB0_3
; %bb.2:
	add	x8, x19, #104
	str	x8, [x19, #152]
	ldp	x9, x8, [x19, #88]
	ldr	w8, [x8]
	ldr	x10, [x19, #80]
	ldr	w9, [x9]
	stp	w9, w8, [x19, #144]
	ldr	w8, [x10]
	ldp	x10, x9, [x19, #64]
	ldr	w9, [x9]
	orr	w8, w8, w9, lsl #1
	ldr	w9, [x10]
	orr	w8, w8, w9, lsl #2
	str	w8, [x19, #4]
	add	x0, x19, #52
	bl	_init_waitqueue_head
	add	x0, x19, #48
	bl	_init_waitqueue_head
	add	x0, x19, #44
	bl	_init_waitqueue_head
	add	x0, x19, #40
	bl	_init_waitqueue_head
Lloh17:
	adrp	x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	x20, x19, #8
	add	x9, x19, #20
	str	w8, [x19, #24]
	str	x9, [x19, #32]
	add	x21, x19, #16
	mov	x0, x21
	bl	_INIT_LIST_HEAD
	add	x0, x19, #12
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_INIT_LIST_HEAD
	mov	x0, x21
	mov	x1, x20
	bl	_list_add
	mov	w0, #0
LBB0_3:
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CX2341X_PORT_MEMORY,4,2        ; @CX2341X_PORT_MEMORY
	.comm	_CX2341X_CAP_HAS_TS,4,2         ; @CX2341X_CAP_HAS_TS
	.comm	_CX2341X_CAP_HAS_SLICED_VBI,4,2 ; @CX2341X_CAP_HAS_SLICED_VBI
	.comm	_cx18_cxhdl_ops,4,2             ; @cx18_cxhdl_ops
	.comm	_cx18_api_func,4,2              ; @cx18_api_func
	.comm	_CX18_ENC_STREAM_TYPE_MPG,8,3   ; @CX18_ENC_STREAM_TYPE_MPG
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,4,2  ; @V4L2_BUF_TYPE_VBI_CAPTURE
	.no_dead_strip	_cx18_init_struct1
.subsections_via_symbols
