	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_probe
_qed_probe:                             ## @qed_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_qed_alloc_cdev
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movq	_DRV_ID_DRV_TYPE_LINUX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	24(%rbx), %eax
	movl	%eax, 8(%r15)
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.2:
	movl	$1, (%r15)
LBB0_3:
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	_qed_init_dp
	movl	(%rbx), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_qed_init_pci
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_ERR
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_INFO
	movq	%r15, %rdi
	callq	_qed_devlink_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_INFO
	jmp	LBB0_9
LBB0_7:
	movq	_QED_PCI_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qed_hw_prepare
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_ERR
LBB0_9:
	movq	%r15, %rdi
	callq	_qed_free_pci
LBB0_10:
	movq	%r15, %rdi
	callq	_qed_free_cdev
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_INFO
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_ID_DRV_TYPE_LINUX,4,2      ## @DRV_ID_DRV_TYPE_LINUX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init pci failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"PCI init completed successfully\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to register devlink.\n"

	.comm	_QED_PCI_DEFAULT,4,2            ## @QED_PCI_DEFAULT
L_.str.3:                               ## @.str.3
	.asciz	"hw prepare failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"qed_probe completed successfully\n"

	.no_dead_strip	_qed_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_probe
_qed_probe:                             ; @qed_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, x1
	mov	x20, x0
	bl	_qed_alloc_cdev
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.1:
Lloh0:
	adrp	x8, _DRV_ID_DRV_TYPE_LINUX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_ID_DRV_TYPE_LINUX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21, #24]
	stp	w9, w8, [x19, #8]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	ldp	w2, w1, [x21, #4]
	mov	x0, x19
	bl	_qed_init_dp
	ldr	w8, [x21]
	str	w8, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_init_pci
	cbz	w0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
	b	LBB0_10
LBB0_5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	mov	x0, x19
	bl	_qed_devlink_register
	cbz	w0, LBB0_7
; %bb.6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x8, _QED_PCI_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QED_PCI_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qed_hw_prepare
	cbz	w0, LBB0_12
; %bb.8:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
LBB0_9:
	mov	x0, x19
	bl	_qed_free_pci
LBB0_10:
	mov	x0, x19
	bl	_qed_free_cdev
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	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_12:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_DP_INFO
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_ID_DRV_TYPE_LINUX,4,2      ; @DRV_ID_DRV_TYPE_LINUX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init pci failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"PCI init completed successfully\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to register devlink.\n"

	.comm	_QED_PCI_DEFAULT,4,2            ; @QED_PCI_DEFAULT
l_.str.3:                               ; @.str.3
	.asciz	"hw prepare failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"qed_probe completed successfully\n"

	.no_dead_strip	_qed_probe
.subsections_via_symbols
