	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25821_initdev
_cx25821_initdev:                       ## @cx25821_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.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	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	4(%r14), %rdi
	movq	%rax, %rsi
	callq	_v4l2_device_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, 24(%r15)
	movq	%r14, %rdi
	callq	_pci_enable_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_6:
	movq	%r15, %rdi
	callq	_cx25821_dev_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	_PCI_CLASS_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	20(%r15), %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_byte
	movq	_PCI_LATENCY_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	addq	$16, %rdx
	movq	%r14, %rdi
	callq	_pci_read_config_byte
	movl	4(%r15), %r12d
	movq	%r14, %rdi
	callq	_pci_name
	movl	20(%r15), %ecx
	movl	(%r14), %r8d
	movl	16(%r15), %r9d
	movq	8(%r15), %rdx
	movq	%rdx, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r14, %rdi
	callq	_pci_set_master
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	4(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	%r15, %rdi
	callq	_cx25821_dev_unregister
LBB0_12:
	movq	%r14, %rdi
	callq	_pci_disable_device
LBB0_13:
	movq	%r15, %rdi
	callq	_v4l2_device_unregister
LBB0_14:
	movq	%r15, %rdi
	callq	_kfree
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r14), %edi
	movq	_cx25821_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	jns	LBB0_15
## %bb.10:
	movl	%eax, %r12d
	movl	4(%r15), %esi
	movl	(%r14), %edx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movl	%r12d, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci enable failed!\n"

	.comm	_PCI_CLASS_REVISION,4,2         ## @PCI_CLASS_REVISION
	.comm	_PCI_LATENCY_TIMER,4,2          ## @PCI_LATENCY_TIMER
L_.str.1:                               ## @.str.1
	.asciz	"%s/0: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"cx25821_initdev() can't get IRQ !\n"

	.no_dead_strip	_cx25821_initdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx25821_initdev
_cx25821_initdev:                       ; @cx25821_initdev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x20, #4
	mov	x1, x19
	bl	_v4l2_device_register
	tbnz	w0, #31, LBB0_5
; %bb.2:
	str	x20, [x19, #24]
	mov	x0, x20
	bl	_pci_enable_device
	cbz	x0, LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_5:
	mov	x21, x0
	b	LBB0_12
LBB0_6:
	mov	x0, x19
	bl	_cx25821_dev_setup
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.7:
Lloh11:
	adrp	x8, _PCI_CLASS_REVISION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_CLASS_REVISION@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, x19, #20
	mov	x0, x20
	bl	_pci_read_config_byte
Lloh14:
	adrp	x8, _PCI_LATENCY_TIMER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PCI_LATENCY_TIMER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	add	x2, x19, #16
	mov	x0, x20
	bl	_pci_read_config_byte
	ldr	w21, [x19, #4]
	mov	x0, x20
	bl	_pci_name
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	x8, [x19, #8]
	ldr	w9, [x20]
	ldp	w11, w10, [x19, #16]
	stp	x11, x8, [sp, #32]
	stp	x10, x9, [sp, #16]
	stp	x21, x0, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
	mov	x0, x20
	bl	_pci_set_master
	mov	x0, x20
	mov	w1, #-1
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_14
; %bb.8:
	ldr	w1, [x19, #4]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	mov	x0, x19
	bl	_cx25821_dev_unregister
LBB0_10:
	mov	x0, x20
	bl	_pci_disable_device
LBB0_11:
	mov	x0, x19
	bl	_v4l2_device_unregister
LBB0_12:
	mov	x0, x19
	bl	_kfree
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
Lloh26:
	adrp	x8, _cx25821_irq@GOTPAGE
Lloh27:
	ldr	x8, [x8, _cx25821_irq@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	ldr	w3, [x19, #4]
	mov	x4, x19
	bl	_request_irq
	tbnz	w0, #31, LBB0_16
; %bb.15:
	mov	w21, #0
	b	LBB0_13
LBB0_16:
	mov	x21, x0
	ldr	w1, [x19, #4]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci enable failed!\n"

	.comm	_PCI_CLASS_REVISION,4,2         ; @PCI_CLASS_REVISION
	.comm	_PCI_LATENCY_TIMER,4,2          ; @PCI_LATENCY_TIMER
l_.str.1:                               ; @.str.1
	.asciz	"%s/0: found at %s, rev: %d, irq: %d, latency: %d, mmio: 0x%llx\n"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"cx25821_initdev() can't get IRQ !\n"

	.no_dead_strip	_cx25821_initdev
.subsections_via_symbols
