	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexcop_pci_probe
_flexcop_pci_probe:                     ## @flexcop_pci_probe
	.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
	movl	$24, %edi
	callq	_flexcop_device_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	56(%rax), %r14
	movq	%rax, 16(%r14)
	movq	_flexcop_pci_read_ibi_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_flexcop_pci_write_ibi_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_flexcop_i2c_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_flexcop_eeprom_check_mac_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_flexcop_pci_stream_control@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_enable_pid_filtering@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdi
	cmoveq	%rax, %rdi
	callq	_info
	movq	(%r12), %rax
	movq	%rax, 24(%rbx)
	movq	_FC_PCI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r15, 8(%r14)
	movq	%r14, %rdi
	callq	_flexcop_pci_init
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	%rbx, %rdi
	callq	_flexcop_device_initialize
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%r14, %rdi
	callq	_flexcop_pci_dma_init
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_flexcop_device_exit
LBB0_8:
	movq	%r14, %rdi
	callq	_flexcop_pci_exit
LBB0_9:
	movq	%rbx, %rdi
	callq	_flexcop_device_kfree
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_flexcop_pci_irq_check_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_irq_chk_intv@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	cmpl	$101, %eax
	movl	$100, %edi
	cmovgel	%eax, %edi
	callq	_msecs_to_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory\n"

	.comm	_flexcop_pci_read_ibi_reg,4,2   ## @flexcop_pci_read_ibi_reg
	.comm	_flexcop_pci_write_ibi_reg,4,2  ## @flexcop_pci_write_ibi_reg
	.comm	_flexcop_i2c_request,4,2        ## @flexcop_i2c_request
	.comm	_flexcop_eeprom_check_mac_addr,4,2 ## @flexcop_eeprom_check_mac_addr
	.comm	_flexcop_pci_stream_control,4,2 ## @flexcop_pci_stream_control
	.comm	_enable_pid_filtering,8,3       ## @enable_pid_filtering
L_.str.1:                               ## @.str.1
	.asciz	"will use the HW PID filter."

L_.str.2:                               ## @.str.2
	.asciz	"will pass the complete TS to the demuxer."

	.comm	_FC_PCI,4,2                     ## @FC_PCI
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_flexcop_pci_irq_check_work,4,2 ## @flexcop_pci_irq_check_work
	.comm	_irq_chk_intv,4,2               ## @irq_chk_intv
	.no_dead_strip	_flexcop_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexcop_pci_probe
_flexcop_pci_probe:                     ; @flexcop_pci_probe
	.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	x21, x0
	mov	w0, #24
	bl	_flexcop_device_kmalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #56]
	str	x0, [x19, #16]
Lloh0:
	adrp	x8, _flexcop_pci_read_ibi_reg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flexcop_pci_read_ibi_reg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _flexcop_pci_write_ibi_reg@GOTPAGE
Lloh4:
	ldr	x9, [x9, _flexcop_pci_write_ibi_reg@GOTPAGEOFF]
	str	w8, [x0, #48]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _flexcop_i2c_request@GOTPAGE
Lloh7:
	ldr	x9, [x9, _flexcop_i2c_request@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh9:
	adrp	x8, _flexcop_eeprom_check_mac_addr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _flexcop_eeprom_check_mac_addr@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _flexcop_pci_stream_control@GOTPAGE
Lloh13:
	ldr	x9, [x9, _flexcop_pci_stream_control@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh15:
	adrp	x22, _enable_pid_filtering@GOTPAGE
Lloh16:
	ldr	x22, [x22, _enable_pid_filtering@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh17:
	adrp	x9, l_.str.1@PAGE
Lloh18:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh19:
	adrp	x10, l_.str.2@PAGE
Lloh20:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_info
	ldr	x8, [x22]
	str	x8, [x20, #24]
Lloh21:
	adrp	x8, _FC_PCI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FC_PCI@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	x21, [x20, #8]
Lloh24:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20]
	str	x21, [x19, #8]
	mov	x0, x19
	bl	_flexcop_pci_init
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x20
	bl	_flexcop_device_initialize
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_flexcop_pci_dma_init
	cbz	w0, LBB0_9
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	bl	_flexcop_device_exit
LBB0_5:
	mov	x0, x19
	bl	_flexcop_pci_exit
LBB0_6:
	mov	x0, x20
	bl	_flexcop_device_kfree
	b	LBB0_8
LBB0_7:
Lloh27:
	adrp	x0, l_.str@PAGE
Lloh28:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	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
LBB0_9:
Lloh32:
	adrp	x8, _flexcop_pci_irq_check_work@GOTPAGE
Lloh33:
	ldr	x8, [x8, _flexcop_pci_irq_check_work@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_DELAYED_WORK
Lloh35:
	adrp	x8, _irq_chk_intv@GOTPAGE
Lloh36:
	ldr	x8, [x8, _irq_chk_intv@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.10:
	mov	w9, #100
	cmp	w8, #100
	csel	w0, w8, w9, gt
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
LBB0_11:
	mov	w21, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory\n"

	.comm	_flexcop_pci_read_ibi_reg,4,2   ; @flexcop_pci_read_ibi_reg
	.comm	_flexcop_pci_write_ibi_reg,4,2  ; @flexcop_pci_write_ibi_reg
	.comm	_flexcop_i2c_request,4,2        ; @flexcop_i2c_request
	.comm	_flexcop_eeprom_check_mac_addr,4,2 ; @flexcop_eeprom_check_mac_addr
	.comm	_flexcop_pci_stream_control,4,2 ; @flexcop_pci_stream_control
	.comm	_enable_pid_filtering,8,3       ; @enable_pid_filtering
l_.str.1:                               ; @.str.1
	.asciz	"will use the HW PID filter."

l_.str.2:                               ; @.str.2
	.asciz	"will pass the complete TS to the demuxer."

	.comm	_FC_PCI,4,2                     ; @FC_PCI
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_flexcop_pci_irq_check_work,4,2 ; @flexcop_pci_irq_check_work
	.comm	_irq_chk_intv,4,2               ; @irq_chk_intv
	.no_dead_strip	_flexcop_pci_probe
.subsections_via_symbols
