	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_pci_probe
_aq_pci_probe:                          ## @aq_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.1:
	movq	%r12, %rdi
	callq	_aq_pci_func_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_aq_ndev_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%r12, 16(%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_SET_NETDEV_DEV
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pci_set_drvdata
	leaq	28(%r15), %rdi
	callq	_mutex_init
	leaq	24(%r15), %rbx
	movq	%r15, %rdi
	callq	_aq_nic_get_cfg
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_aq_pci_probe_get_hw_by_id
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_21
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rdi
	callq	_aq_nic_get_cfg
	movq	8(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_pci_resource_flags
	testl	%ebx, %eax
	jne	LBB0_8
## %bb.15:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$1, %r13d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_pci_resource_flags
	testl	%ebx, %eax
	jne	LBB0_8
## %bb.16:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$2, %r13d
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_pci_resource_flags
	testl	%ebx, %eax
	jne	LBB0_8
## %bb.17:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$3, %r13d
	movq	%r12, %rdi
	movl	$3, %esi
	callq	_pci_resource_flags
	testl	%ebx, %eax
	je	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_pci_resource_start
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_pci_resource_len
	cmpl	$24, %eax
	jbe	LBB0_9
## %bb.11:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap_nocache
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:
	movq	_AQ_CFG_VECS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_aq_nic_get_cfg
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_min
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_num_online_cpus
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movq	_AQ_HW_SERVICE_IRQS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_PCI_IRQ_MSIX@GOTPCREL(%rip), %rdx
	movq	_PCI_IRQ_MSI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	16(%r15), %rdi
	movq	_PCI_IRQ_LEGACY@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	$1, %esi
	movl	%eax, %edx
	callq	_pci_alloc_irq_vectors
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:
	movl	%ebx, (%r15)
	movq	%r15, %rdi
	callq	_aq_nic_cfg_start
	movq	%r15, %rdi
	callq	_aq_nic_ndev_init
	movq	%r15, %rdi
	callq	_aq_nic_ndev_register
	testl	%eax, %eax
	js	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	callq	_aq_drvinfo_init
	xorl	%ebx, %ebx
	jmp	LBB0_24
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movq	8(%r15), %rdi
	callq	_kfree
	jmp	LBB0_21
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movq	%r14, %rdi
	callq	_free_netdev
LBB0_22:
	movq	%r12, %rdi
	callq	_pci_release_regions
LBB0_23:
	movq	%r12, %rdi
	callq	_pci_disable_device
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_aq_nic_free_vectors
	movq	%r15, %rdi
	callq	_aq_pci_free_irq_vectors
LBB0_19:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_iounmap
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EIO,4,2                        ## @EIO
	.comm	_AQ_CFG_VECS_DEF,8,3            ## @AQ_CFG_VECS_DEF
	.comm	_AQ_HW_SERVICE_IRQS,8,3         ## @AQ_HW_SERVICE_IRQS
	.comm	_PCI_IRQ_MSIX,4,2               ## @PCI_IRQ_MSIX
	.comm	_PCI_IRQ_MSI,4,2                ## @PCI_IRQ_MSI
	.comm	_PCI_IRQ_LEGACY,4,2             ## @PCI_IRQ_LEGACY
	.no_dead_strip	_aq_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_pci_probe
_aq_pci_probe:                          ; @aq_pci_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_pci_enable_device
	mov	x22, x0
	cbnz	w0, LBB0_22
; %bb.1:
	mov	x0, x19
	bl	_aq_pci_func_init
	mov	x22, x0
	cbnz	w0, LBB0_21
; %bb.2:
	bl	_aq_ndev_alloc
	cbz	x0, LBB0_15
; %bb.3:
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	str	x19, [x0, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_SET_NETDEV_DEV
	mov	x0, x19
	mov	x1, x21
	bl	_pci_set_drvdata
	add	x0, x21, #28
	bl	_mutex_init
	add	x22, x21, #24
	mov	x0, x21
	bl	_aq_nic_get_cfg
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_aq_pci_probe_get_hw_by_id
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.4:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_18
; %bb.5:
	mov	x0, x21
	bl	_aq_nic_get_cfg
	ldr	x8, [x21, #8]
	str	x0, [x8, #8]
Lloh3:
	adrp	x23, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w24, [x23]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_resource_flags
	mov	w22, #0
	tst	w0, w24
	b.ne	LBB0_9
; %bb.6:
	ldr	w24, [x23]
	mov	w22, #1
	mov	x0, x19
	mov	w1, #1
	bl	_pci_resource_flags
	tst	w0, w24
	b.ne	LBB0_9
; %bb.7:
	ldr	w24, [x23]
	mov	w22, #2
	mov	x0, x19
	mov	w1, #2
	bl	_pci_resource_flags
	tst	w0, w24
	b.ne	LBB0_9
; %bb.8:
	ldr	w23, [x23]
	mov	w22, #3
	mov	x0, x19
	mov	w1, #3
	bl	_pci_resource_flags
	tst	w0, w23
	b.eq	LBB0_16
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	_pci_resource_start
	cbz	w0, LBB0_16
; %bb.10:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_pci_resource_len
	cmp	w0, #24
	b.ls	LBB0_16
; %bb.11:
	mov	x1, x0
	mov	x0, x23
	bl	_ioremap_nocache
	ldr	x8, [x21, #8]
	str	w0, [x8]
	cbz	w0, LBB0_16
; %bb.12:
Lloh5:
	adrp	x8, _AQ_CFG_VECS_DEF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AQ_CFG_VECS_DEF@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_aq_nic_get_cfg
	ldr	x8, [x0]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_min
	mov	x22, x0
	bl	_num_online_cpus
	mov	x1, x0
	mov	x0, x22
	bl	_min
Lloh8:
	adrp	x8, _AQ_HW_SERVICE_IRQS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AQ_HW_SERVICE_IRQS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w2, w0, w8
	ldr	x0, [x21, #16]
Lloh11:
	adrp	x8, _PCI_IRQ_MSIX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_IRQ_MSIX@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PCI_IRQ_MSI@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PCI_IRQ_MSI@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh17:
	adrp	x9, _PCI_IRQ_LEGACY@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PCI_IRQ_LEGACY@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	w1, #1
	bl	_pci_alloc_irq_vectors
	mov	x22, x0
	tbnz	w0, #31, LBB0_24
; %bb.13:
	str	w22, [x21]
	mov	x0, x21
	bl	_aq_nic_cfg_start
	mov	x0, x21
	bl	_aq_nic_ndev_init
	mov	x0, x21
	bl	_aq_nic_ndev_register
	tbnz	w0, #31, LBB0_23
; %bb.14:
	mov	x0, x20
	bl	_aq_drvinfo_init
	mov	w22, #0
	b	LBB0_22
LBB0_15:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_16:
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_17:
	ldr	x0, [x21, #8]
	bl	_kfree
	b	LBB0_19
LBB0_18:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_19:
	mov	x0, x20
	bl	_free_netdev
LBB0_20:
	mov	x0, x19
	bl	_pci_release_regions
LBB0_21:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_22:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_23:
	mov	x22, x0
	mov	x0, x21
	bl	_aq_nic_free_vectors
	mov	x0, x21
	bl	_aq_pci_free_irq_vectors
LBB0_24:
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_iounmap
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EIO,4,2                        ; @EIO
	.comm	_AQ_CFG_VECS_DEF,8,3            ; @AQ_CFG_VECS_DEF
	.comm	_AQ_HW_SERVICE_IRQS,8,3         ; @AQ_HW_SERVICE_IRQS
	.comm	_PCI_IRQ_MSIX,4,2               ; @PCI_IRQ_MSIX
	.comm	_PCI_IRQ_MSI,4,2                ; @PCI_IRQ_MSI
	.comm	_PCI_IRQ_LEGACY,4,2             ; @PCI_IRQ_LEGACY
	.no_dead_strip	_aq_pci_probe
.subsections_via_symbols
