	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usnic_ib_pci_probe
_usnic_ib_pci_probe:                    ## @usnic_ib_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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pci_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_usnic_err
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_5:
	movq	_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_request_regions
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_usnic_err
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	callq	_usnic_vnic_alloc
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_14:
	callq	_usnic_ib_discover_pf
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	%r15, %rdi
	callq	_pci_name
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_PTR_ERR
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_usnic_err
	testq	%r13, %r13
	je	LBB0_17
## %bb.16:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_pci_name
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_usnic_err
	jmp	LBB0_13
LBB0_19:
	movq	%r13, 16(%r14)
	leaq	12(%r14), %rdi
	callq	_spin_lock_init
	leaq	4(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	%r13, %rsi
	addq	$16, %rsi
	callq	_list_add_tail
	movq	_USNIC_VNIC_RES_TYPE_EOL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	movq	_USNIC_VNIC_RES_TYPE_MAX@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jae	LBB0_22
## %bb.20:
	movl	%eax, %ebx
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movl	%ebx, %esi
	callq	_usnic_vnic_res_cnt
	movq	8(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpl	%ebx, (%r12)
	ja	LBB0_21
LBB0_22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_pci_name
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_dev_name
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_usnic_info
	movq	%r14, %rdi
	callq	_usnic_ib_log_vf
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_17:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movq	(%r14), %rdi
	callq	_usnic_vnic_free
LBB0_13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	callq	_pci_clear_master
	movq	%r15, %rdi
	callq	_pci_release_regions
LBB0_7:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_4:
	movq	%r14, %rdi
	callq	_kfree
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"Failed to enable %s with err %d\n"

	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Failed to request region for %s with err %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to alloc vnic for %s with err %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to discover pf of vnic %s with err%ld\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_USNIC_VNIC_RES_TYPE_EOL,4,2    ## @USNIC_VNIC_RES_TYPE_EOL
	.comm	_USNIC_VNIC_RES_TYPE_MAX,4,2    ## @USNIC_VNIC_RES_TYPE_MAX
L_.str.4:                               ## @.str.4
	.asciz	"Registering usnic VF %s into PF %s\n"

	.no_dead_strip	_usnic_ib_pci_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usnic_ib_pci_probe
_usnic_ib_pci_probe:                    ; @usnic_ib_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_pci_enable_device
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	bl	_pci_name
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_usnic_err
	b	LBB0_21
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_22
LBB0_4:
Lloh8:
	adrp	x8, _DRV_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRV_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_request_regions
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
	mov	x0, x20
	bl	_pci_name
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_usnic_err
	b	LBB0_20
LBB0_6:
	mov	x0, x20
	bl	_pci_set_master
	mov	x0, x20
	mov	x1, x19
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_usnic_vnic_alloc
	str	x0, [x19]
	bl	_IS_ERR_OR_NULL
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_9
; %bb.7:
	cbz	x0, LBB0_12
; %bb.8:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_13
LBB0_9:
	bl	_usnic_ib_discover_pf
	mov	x21, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_14
; %bb.10:
	mov	x0, x20
	bl	_pci_name
	mov	x22, x0
	mov	x0, x21
	bl	_PTR_ERR
	mov	x2, x0
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	bl	_usnic_err
	cbz	x21, LBB0_17
; %bb.11:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_18
LBB0_12:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x20
	bl	_pci_name
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x21
	bl	_usnic_err
	b	LBB0_19
LBB0_14:
	str	x21, [x19, #16]
	add	x0, x19, #12
	bl	_spin_lock_init
	add	x22, x21, #4
	mov	x0, x22
	bl	_mutex_lock
	add	x0, x19, #8
	add	x1, x21, #16
	bl	_list_add_tail
Lloh20:
	adrp	x8, _USNIC_VNIC_RES_TYPE_EOL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _USNIC_VNIC_RES_TYPE_EOL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	add	w23, w8, #1
Lloh23:
	adrp	x24, _USNIC_VNIC_RES_TYPE_MAX@GOTPAGE
Lloh24:
	ldr	x24, [x24, _USNIC_VNIC_RES_TYPE_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w23, w8
	b.hs	LBB0_16
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	mov	x1, x23
	bl	_usnic_vnic_res_cnt
	ldr	x8, [x21, #8]
	str	w0, [x8, x23, lsl #2]
	add	x23, x23, #1
	ldr	w8, [x24]
	cmp	w8, w23
	b.hi	LBB0_15
LBB0_16:
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x20
	bl	_pci_name
	mov	x20, x0
	mov	x0, x21
	bl	_dev_name
	mov	x2, x0
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_usnic_info
	mov	x0, x19
	bl	_usnic_ib_log_vf
	mov	w21, #0
	b	LBB0_22
LBB0_17:
Lloh27:
	adrp	x8, _EFAULT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_18:
	ldr	x0, [x19]
	bl	_usnic_vnic_free
LBB0_19:
	mov	x0, x20
	mov	x1, #0
	bl	_pci_set_drvdata
	mov	x0, x20
	bl	_pci_clear_master
	mov	x0, x20
	bl	_pci_release_regions
LBB0_20:
	mov	x0, x20
	bl	_pci_disable_device
LBB0_21:
	mov	x0, x19
	bl	_kfree
LBB0_22:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.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	"Failed to enable %s with err %d\n"

	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Failed to request region for %s with err %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to alloc vnic for %s with err %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to discover pf of vnic %s with err%ld\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_USNIC_VNIC_RES_TYPE_EOL,4,2    ; @USNIC_VNIC_RES_TYPE_EOL
	.comm	_USNIC_VNIC_RES_TYPE_MAX,4,2    ; @USNIC_VNIC_RES_TYPE_MAX
l_.str.4:                               ; @.str.4
	.asciz	"Registering usnic VF %s into PF %s\n"

	.no_dead_strip	_usnic_ib_pci_probe
.subsections_via_symbols
