	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flexcop_pci_init
_flexcop_pci_init:                      ## @flexcop_pci_init
	.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, %r14
	movq	(%rdi), %rax
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_info
	movq	(%r14), %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	(%r14), %rdi
	callq	_pci_set_master
	movq	(%r14), %rdi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_pci_request_regions
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$2048, %edx                     ## imm = 0x800
	callq	_pci_iomap
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%r14), %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	leaq	16(%r14), %rdi
	callq	_spin_lock_init
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_flexcop_pci_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r14, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	movl	8(%r14), %esi
	callq	_pci_iounmap
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movq	(%r14), %rdi
	callq	_pci_release_regions
LBB0_8:
	movq	(%r14), %rdi
	callq	_pci_disable_device
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_FC_PCI_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card revision %x"

	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
L_.str.1:                               ## @.str.1
	.asciz	"cannot map io memory\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_flexcop_pci_isr,4,2            ## @flexcop_pci_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_FC_PCI_INIT,4,2                ## @FC_PCI_INIT
	.no_dead_strip	_flexcop_pci_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flexcop_pci_init
_flexcop_pci_init:                      ; @flexcop_pci_init
	.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	x8, [x0]
	ldr	w1, [x8, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
	ldr	x0, [x19]
	bl	_pci_enable_device
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x0, [x19]
	bl	_pci_set_master
	ldr	x0, [x19]
Lloh2:
	adrp	x21, _DRIVER_NAME@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DRIVER_NAME@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_pci_request_regions
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x0, [x19]
	mov	w1, #0
	mov	w2, #2048
	bl	_pci_iomap
	str	w0, [x19, #8]
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x0, [x19]
	mov	x1, x19
	bl	_pci_set_drvdata
	add	x0, x19, #16
	bl	_spin_lock_init
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _flexcop_pci_isr@GOTPAGE
Lloh5:
	ldr	x9, [x9, _flexcop_pci_isr@GOTPAGEOFF]
	ldr	w0, [x8]
Lloh6:
	ldr	w1, [x9]
Lloh7:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x4, x19
	bl	_request_irq
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_pci_iounmap
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	ldr	x0, [x19]
	bl	_pci_release_regions
LBB0_7:
	ldr	x0, [x19]
	bl	_pci_disable_device
LBB0_8:
	mov	x0, x20
	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:
Lloh15:
	adrp	x8, _FC_PCI_INIT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FC_PCI_INIT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card revision %x"

	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
l_.str.1:                               ; @.str.1
	.asciz	"cannot map io memory\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_flexcop_pci_isr,4,2            ; @flexcop_pci_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_FC_PCI_INIT,4,2                ; @FC_PCI_INIT
	.no_dead_strip	_flexcop_pci_init
.subsections_via_symbols
