	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tw5864_initdev
_tw5864_initdev:                        ## @tw5864_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	20(%rax), %ebx
	movq	%r15, %rdi
	callq	_pci_name
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_v4l2_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.3:
	movq	%r15, 8(%r14)
	movq	%r15, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	movq	%r15, %rdi
	callq	_pci_set_master
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_8:
	movl	20(%r14), %esi
	movq	%r15, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_18:
	movq	%r14, %rdi
	callq	_v4l2_device_unregister
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_ioremap_bar
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	_TW5864_HW_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw_readl
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_TW5864_H264REV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw_readl
	movl	%eax, %ebx
	movq	_TW5864_UNDECLARED_H264REV_PART2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw_readl
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_info
	movq	_video_nr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_tw5864_video_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_15:
	movl	4(%r14), %edi
	callq	_iounmap
	jmp	LBB0_16
LBB0_11:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movq	%r15, %rdi
	callq	_pci_release_regions
	jmp	LBB0_17
LBB0_13:
	movl	4(%r15), %esi
	movq	_tw5864_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %r8
	movq	%r15, %rdi
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_14
## %bb.20:
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_19
LBB0_14:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	movl	4(%r15), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	callq	_tw5864_video_fini
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tw5864:%s"

L_.str.1:                               ## @.str.1
	.asciz	"pci_enable_device() failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"32 bit PCI DMA is not supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot request regions for MMIO\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"can't ioremap() MMIO memory\n"

L_.str.5:                               ## @.str.5
	.asciz	"TW5864 hardware version: %04x\n"

	.comm	_TW5864_HW_VERSION,4,2          ## @TW5864_HW_VERSION
L_.str.6:                               ## @.str.6
	.asciz	"TW5864 H.264 core version: %04x:%04x\n"

	.comm	_TW5864_H264REV,4,2             ## @TW5864_H264REV
	.comm	_TW5864_UNDECLARED_H264REV_PART2,4,2 ## @TW5864_UNDECLARED_H264REV_PART2
	.comm	_video_nr,4,2                   ## @video_nr
	.comm	_tw5864_isr,4,2                 ## @tw5864_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.7:                               ## @.str.7
	.asciz	"tw5864"

L_.str.8:                               ## @.str.8
	.asciz	"can't get IRQ %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"Note: there are known video quality issues. For details\n"

L_.str.10:                              ## @.str.10
	.asciz	"see the comment in drivers/media/pci/tw5864/tw5864-core.c.\n"

	.no_dead_strip	_tw5864_initdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tw5864_initdev
_tw5864_initdev:                        ; @tw5864_initdev
	.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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w21, [x0, #20]
	mov	x0, x19
	bl	_pci_name
	mov	x3, x0
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	w1, #4
	bl	_snprintf
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_device_register
	mov	x21, x0
	cbnz	w0, LBB0_16
; %bb.2:
	str	x19, [x20, #8]
	mov	x0, x19
	bl	_pci_enable_device
	cbz	w0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x0, [x20, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_15
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_5:
	mov	x0, x19
	bl	_pci_set_master
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	x0, [x20, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_7:
	ldr	w1, [x20, #20]
	mov	x0, x19
	bl	_pci_request_regions
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
	ldr	x0, [x20, #8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_ioremap_bar
	str	w0, [x20, #4]
	cbz	w0, LBB0_12
; %bb.10:
	add	x0, x20, #16
	bl	_spin_lock_init
Lloh14:
	adrp	x8, _TW5864_HW_VERSION@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TW5864_HW_VERSION@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_tw_readl
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh19:
	adrp	x8, _TW5864_H264REV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TW5864_H264REV@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_tw_readl
	mov	x21, x0
Lloh22:
	adrp	x8, _TW5864_UNDECLARED_H264REV_PART2@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TW5864_UNDECLARED_H264REV_PART2@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_tw_readl
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh27:
	adrp	x8, _video_nr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _video_nr@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_tw5864_video_init
	mov	x21, x0
	cbz	w0, LBB0_17
LBB0_11:
	ldr	w0, [x20, #4]
	bl	_iounmap
	b	LBB0_13
LBB0_12:
Lloh30:
	adrp	x8, _EIO@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x0, [x20, #8]
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
LBB0_13:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_14:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_15:
	mov	x0, x20
	bl	_v4l2_device_unregister
LBB0_16:
	mov	x0, x21
	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
LBB0_17:
	ldr	w1, [x19, #4]
Lloh35:
	adrp	x8, _tw5864_isr@GOTPAGE
Lloh36:
	ldr	x8, [x8, _tw5864_isr@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	adrp	x4, l_.str.7@PAGE
Lloh42:
	add	x4, x4, l_.str.7@PAGEOFF
	mov	x0, x19
	mov	x5, x20
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_19
; %bb.18:
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_info
Lloh45:
	adrp	x1, l_.str.10@PAGE
Lloh46:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w21, #0
	b	LBB0_16
LBB0_19:
	mov	x21, x0
	ldr	x0, [x20, #8]
	ldr	w8, [x19, #4]
	str	x8, [sp]
Lloh47:
	adrp	x1, l_.str.8@PAGE
Lloh48:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_tw5864_video_fini
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tw5864:%s"

l_.str.1:                               ; @.str.1
	.asciz	"pci_enable_device() failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"32 bit PCI DMA is not supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot request regions for MMIO\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"can't ioremap() MMIO memory\n"

l_.str.5:                               ; @.str.5
	.asciz	"TW5864 hardware version: %04x\n"

	.comm	_TW5864_HW_VERSION,4,2          ; @TW5864_HW_VERSION
l_.str.6:                               ; @.str.6
	.asciz	"TW5864 H.264 core version: %04x:%04x\n"

	.comm	_TW5864_H264REV,4,2             ; @TW5864_H264REV
	.comm	_TW5864_UNDECLARED_H264REV_PART2,4,2 ; @TW5864_UNDECLARED_H264REV_PART2
	.comm	_video_nr,4,2                   ; @video_nr
	.comm	_tw5864_isr,4,2                 ; @tw5864_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.7:                               ; @.str.7
	.asciz	"tw5864"

l_.str.8:                               ; @.str.8
	.asciz	"can't get IRQ %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"Note: there are known video quality issues. For details\n"

l_.str.10:                              ; @.str.10
	.asciz	"see the comment in drivers/media/pci/tw5864/tw5864-core.c.\n"

	.no_dead_strip	_tw5864_initdev
.subsections_via_symbols
