	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efa_probe_device
_efa_probe_device:                      ## @efa_probe_device
	.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
	callq	_pci_enable_device_mem
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_2:
	movq	%r15, %rdi
	callq	_pci_set_master
	movq	_efa_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ibdev@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ib_alloc_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_pci_set_drvdata
	movq	%r14, 72(%r14)
	movq	%r15, 64(%r14)
	movq	%r15, 40(%r14)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_select_bars
	movq	_EFA_BASE_BAR_MASK@GOTPCREL(%rip), %r13
	andl	(%r13), %eax
	movq	_DRV_MODULE_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_request_selected_regions
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_6:
	movq	_EFA_REG_BAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pci_resource_start
	movq	%rax, 16(%r14)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pci_resource_len
	movq	%rax, 8(%r14)
	movq	_EFA_MEM_BAR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pci_resource_start
	movq	%rax, 32(%r14)
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_pci_resource_len
	movq	%rax, 24(%r14)
	movq	8(%r14), %rdx
	movq	16(%r14), %rsi
	movq	%r15, %rdi
	callq	_devm_ioremap
	movl	%eax, 48(%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r14, %r12
	addq	$48, %r12
	movq	%r12, %rdi
	callq	_efa_com_mmio_reg_read_init
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_efa_device_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ETIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_18
## %bb.12:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_13:
	movq	%r14, %rdi
	callq	_efa_enable_msix
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movl	4(%r14), %eax
	movl	%eax, 56(%r14)
	movl	%eax, 52(%r14)
	movq	%r14, %rdi
	callq	_efa_set_mgmnt_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	_aenq_handlers@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_efa_com_admin_init
	testl	%eax, %eax
	je	LBB0_24
## %bb.16:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_efa_free_mgmnt_irq
LBB0_17:
	movq	%r14, %rdi
	callq	_efa_disable_msix
LBB0_18:
	movq	%r12, %rdi
	callq	_efa_com_mmio_reg_read_destroy
LBB0_19:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_devm_iounmap
LBB0_20:
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_efa_release_bars
LBB0_21:
	movq	%r14, %rdi
	callq	_ib_dealloc_device
LBB0_22:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_23:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_24:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pci_enable_device_mem() failed!\n"

	.comm	_efa_dev,4,2                    ## @efa_dev
	.comm	_ibdev,4,2                      ## @ibdev
L_.str.1:                               ## @.str.1
	.asciz	"Device alloc failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EFA_BASE_BAR_MASK,4,2          ## @EFA_BASE_BAR_MASK
	.comm	_DRV_MODULE_NAME,4,2            ## @DRV_MODULE_NAME
L_.str.2:                               ## @.str.2
	.asciz	"pci_request_selected_regions failed %d\n"

	.comm	_EFA_REG_BAR,4,2                ## @EFA_REG_BAR
	.comm	_EFA_MEM_BAR,4,2                ## @EFA_MEM_BAR
L_.str.3:                               ## @.str.3
	.asciz	"Failed to remap register bar\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.4:                               ## @.str.4
	.asciz	"Failed to init readless MMIO\n"

L_.str.5:                               ## @.str.5
	.asciz	"EFA device init failed\n"

	.comm	_ETIME,4,2                      ## @ETIME
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_aenq_handlers,4,2              ## @aenq_handlers
	.no_dead_strip	_efa_probe_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efa_probe_device
_efa_probe_device:                      ; @efa_probe_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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_mem
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_23
LBB0_2:
	mov	x0, x19
	bl	_pci_set_master
Lloh2:
	adrp	x8, _efa_dev@GOTPAGE
Lloh3:
	ldr	x8, [x8, _efa_dev@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _ibdev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ibdev@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ib_alloc_device
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	stp	x19, x20, [x20, #64]
	str	x19, [x20, #40]
Lloh8:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pci_select_bars
Lloh11:
	adrp	x23, _EFA_BASE_BAR_MASK@GOTPAGE
Lloh12:
	ldr	x23, [x23, _EFA_BASE_BAR_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w1, w8, w0
Lloh13:
	adrp	x8, _DRV_MODULE_NAME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRV_MODULE_NAME@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_pci_request_selected_regions
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
	str	x21, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_21
LBB0_5:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_22
LBB0_6:
Lloh23:
	adrp	x21, _EFA_REG_BAR@GOTPAGE
Lloh24:
	ldr	x21, [x21, _EFA_REG_BAR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_resource_start
	str	x0, [x20, #16]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_resource_len
	str	x0, [x20, #8]
Lloh25:
	adrp	x21, _EFA_MEM_BAR@GOTPAGE
Lloh26:
	ldr	x21, [x21, _EFA_MEM_BAR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_resource_start
	str	x0, [x20, #32]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_pci_resource_len
	str	x0, [x20, #24]
	ldp	x2, x1, [x20, #8]
	mov	x0, x19
	bl	_devm_ioremap
	str	w0, [x20, #48]
	cbz	w0, LBB0_9
; %bb.7:
	add	x22, x20, #48
	mov	x0, x22
	bl	_efa_com_mmio_reg_read_init
	cbz	w0, LBB0_10
; %bb.8:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_19
LBB0_9:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh31:
	adrp	x8, _EFAULT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_20
LBB0_10:
	mov	x0, x22
	mov	x1, x19
	bl	_efa_device_init
	cbz	w0, LBB0_13
; %bb.11:
	mov	x21, x0
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh36:
	adrp	x8, _ETIME@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmn	w21, w8
	b.ne	LBB0_18
; %bb.12:
Lloh39:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_13:
	mov	x0, x20
	bl	_efa_enable_msix
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.14:
	ldr	w8, [x20, #4]
	stp	w8, w8, [x20, #52]
	mov	x0, x20
	bl	_efa_set_mgmnt_irq
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.15:
Lloh42:
	adrp	x1, _aenq_handlers@GOTPAGE
Lloh43:
	ldr	x1, [x1, _aenq_handlers@GOTPAGEOFF]
	mov	x0, x22
	bl	_efa_com_admin_init
	cbz	w0, LBB0_24
; %bb.16:
	mov	x21, x0
	mov	x0, x20
	bl	_efa_free_mgmnt_irq
LBB0_17:
	mov	x0, x20
	bl	_efa_disable_msix
LBB0_18:
	mov	x0, x22
	bl	_efa_com_mmio_reg_read_destroy
LBB0_19:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_devm_iounmap
LBB0_20:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_efa_release_bars
LBB0_21:
	mov	x0, x20
	bl	_ib_dealloc_device
LBB0_22:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_23:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_ERR_PTR
LBB0_24:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pci_enable_device_mem() failed!\n"

	.comm	_efa_dev,4,2                    ; @efa_dev
	.comm	_ibdev,4,2                      ; @ibdev
l_.str.1:                               ; @.str.1
	.asciz	"Device alloc failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EFA_BASE_BAR_MASK,4,2          ; @EFA_BASE_BAR_MASK
	.comm	_DRV_MODULE_NAME,4,2            ; @DRV_MODULE_NAME
l_.str.2:                               ; @.str.2
	.asciz	"pci_request_selected_regions failed %d\n"

	.comm	_EFA_REG_BAR,4,2                ; @EFA_REG_BAR
	.comm	_EFA_MEM_BAR,4,2                ; @EFA_MEM_BAR
l_.str.3:                               ; @.str.3
	.asciz	"Failed to remap register bar\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.4:                               ; @.str.4
	.asciz	"Failed to init readless MMIO\n"

l_.str.5:                               ; @.str.5
	.asciz	"EFA device init failed\n"

	.comm	_ETIME,4,2                      ; @ETIME
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_aenq_handlers,4,2              ; @aenq_handlers
	.no_dead_strip	_efa_probe_device
.subsections_via_symbols
