	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23885_initdev
_cx23885_initdev:                       ## @cx23885_initdev
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_cx23885_does_need_dma_reset
	movl	%eax, 44(%r13)
	leaq	8(%r12), %rdi
	leaq	8(%r13), %r14
	movq	%r14, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	leaq	40(%r13), %r15
	movq	%r15, %rdi
	movl	$6, %esi
	callq	_v4l2_ctrl_handler_init
	movl	40(%r13), %ebx
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.5:
	movq	%r15, 8(%r13)
	movq	%r13, %rdi
	callq	_cx23885_v4l2_dev_notify_init
	movq	%r12, 32(%r13)
	movq	%r12, %rdi
	callq	_pci_enable_device
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r14, %rdi
	callq	_v4l2_device_unregister
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_3:
	movl	%eax, %ebx
LBB0_13:
	movq	%r13, %rdi
	callq	_kfree
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r13, %rdi
	callq	_cx23885_dev_setup
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movl	4(%r12), %eax
	movl	%eax, 24(%r13)
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	addq	$20, %rdx
	movq	%r12, %rdi
	callq	_pci_read_config_byte
	movl	16(%r13), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_pci_name
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	20(%r13), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	24(%r13), %ebx
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	callq	_pr_info
	movq	%r12, %rdi
	callq	_pci_set_master
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %ebx
	movl	16(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_12
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_14:
	movl	(%r12), %edi
	movq	_cx23885_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	16(%r13), %ecx
	movq	%r13, %r8
	callq	_request_irq
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_19
## %bb.17:
	cmpl	$129, %eax
	jne	LBB0_21
## %bb.18:
	movq	_PCI_MSK_GPIO1@GOTPCREL(%rip), %rax
	movq	_PCI_MSK_GPIO0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	jmp	LBB0_20
LBB0_15:
	movl	%eax, %ebx
	movl	16(%r13), %esi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	%r13, %rdi
	callq	_cx23885_dev_unregister
	jmp	LBB0_12
LBB0_19:
	movq	_PCI_MSK_GPIO0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_20:
	movq	%r13, %rdi
	callq	_cx23885_irq_add_enable
LBB0_21:
	movq	%r13, %rdi
	callq	_cx23885_ir_pci_int_enable
	movq	%r13, %rdi
	callq	_cx23885_input_init
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/0: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s/0: Oops: no 32bit PCI DMA ???\n"

	.comm	_cx23885_irq,4,2                ## @cx23885_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.2:                               ## @.str.2
	.asciz	"%s: can't get IRQ %d\n"

	.comm	_PCI_MSK_GPIO1,4,2              ## @PCI_MSK_GPIO1
	.comm	_PCI_MSK_GPIO0,4,2              ## @PCI_MSK_GPIO0
	.no_dead_strip	_cx23885_initdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23885_initdev
_cx23885_initdev:                       ; @cx23885_initdev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_cx23885_does_need_dma_reset
	str	w0, [x19, #44]
	add	x0, x22, #8
	add	x20, x19, #8
	mov	x1, x20
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_8
; %bb.2:
	add	x21, x19, #40
	mov	x0, x21
	mov	w1, #6
	bl	_v4l2_ctrl_handler_init
	ldr	w23, [x19, #40]
	cbnz	w23, LBB0_6
; %bb.3:
	str	x21, [x19, #8]
	mov	x0, x19
	bl	_cx23885_v4l2_dev_notify_init
	str	x22, [x19, #32]
	mov	x0, x22
	bl	_pci_enable_device
	cbz	x0, LBB0_11
; %bb.4:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_6:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x20
	bl	_v4l2_device_unregister
	b	LBB0_9
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_8:
	mov	x23, x0
LBB0_9:
	mov	x0, x19
	bl	_kfree
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	mov	x0, x19
	bl	_cx23885_dev_setup
	tbnz	x0, #63, LBB0_14
; %bb.12:
	ldr	w8, [x22, #4]
	str	w8, [x19, #24]
Lloh8:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x2, x19, #20
	mov	x0, x22
	bl	_pci_read_config_byte
	ldr	w23, [x19, #16]
	mov	x0, x22
	bl	_pci_name
	mov	x24, x0
	ldr	w25, [x22]
	ldp	w27, w26, [x19, #20]
	mov	x0, x22
	mov	w1, #0
	bl	_pci_resource_start
	mov	x6, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x24
	mov	x3, x26
	mov	x4, x25
	mov	x5, x27
	bl	_pr_info
	mov	x0, x22
	bl	_pci_set_master
	mov	x0, x22
	mov	w1, #-1
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_15
; %bb.13:
	mov	x23, x0
	ldr	w1, [x19, #16]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_6
LBB0_14:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_15:
Lloh17:
	adrp	x8, _cx23885_irq@GOTPAGE
Lloh18:
	ldr	x8, [x8, _cx23885_irq@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w3, [x19, #16]
	mov	x4, x19
	bl	_request_irq
	tbnz	w0, #31, LBB0_19
; %bb.16:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_20
; %bb.17:
	cmp	w8, #129
	b.ne	LBB0_22
; %bb.18:
Lloh23:
	adrp	x8, _PCI_MSK_GPIO1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PCI_MSK_GPIO1@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _PCI_MSK_GPIO0@GOTPAGE
Lloh27:
	ldr	x9, [x9, _PCI_MSK_GPIO0@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w1, w9, w8
	b	LBB0_21
LBB0_19:
	mov	x23, x0
	ldr	w1, [x19, #16]
	ldr	w8, [x22]
	str	x8, [sp]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	mov	x0, x19
	bl	_cx23885_dev_unregister
	b	LBB0_6
LBB0_20:
Lloh31:
	adrp	x8, _PCI_MSK_GPIO0@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PCI_MSK_GPIO0@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
LBB0_21:
	mov	x0, x19
	bl	_cx23885_irq_add_enable
LBB0_22:
	mov	x0, x19
	bl	_cx23885_ir_pci_int_enable
	mov	x0, x19
	bl	_cx23885_input_init
	mov	w23, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/0: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s/0: Oops: no 32bit PCI DMA ???\n"

	.comm	_cx23885_irq,4,2                ; @cx23885_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.2:                               ; @.str.2
	.asciz	"%s: can't get IRQ %d\n"

	.comm	_PCI_MSK_GPIO1,4,2              ; @PCI_MSK_GPIO1
	.comm	_PCI_MSK_GPIO0,4,2              ; @PCI_MSK_GPIO0
	.no_dead_strip	_cx23885_initdev
.subsections_via_symbols
