	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_one
_init_one:                              ## @init_one
	.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	%rsi, %r13
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_mlx5_devlink_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_devlink_priv
	movq	%rax, %r12
	movq	%r14, 16(%rax)
	movq	%r14, 8(%rax)
	movq	_MLX5_PCI_DEV_IS_VF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r13), %eax
	jne	LBB0_3
## %bb.4:
	movq	_MLX5_COREDEV_PF@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_3:
	movq	_MLX5_COREDEV_VF@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_prof_sel@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mlx5_mdev_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_mlx5_pci_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_err
	jmp	LBB0_16
LBB0_8:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mlx5_load_one
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_mlx5_core_err
	jmp	LBB0_15
LBB0_10:
	movq	_MLX5_IB_MOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_request_module_nowait
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlx5_devlink_register
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mlx5_unload_one
LBB0_15:
	movq	%r12, %rdi
	callq	_mlx5_pci_close
LBB0_16:
	movq	%r12, %rdi
	callq	_mlx5_mdev_uninit
LBB0_17:
	movq	%r15, %rdi
	callq	_mlx5_devlink_free
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r12, %rdi
	callq	_mlx5_crdump_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movq	%r14, %rdi
	callq	_pci_save_state
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"devlink alloc failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_PCI_DEV_IS_VF,4,2         ## @MLX5_PCI_DEV_IS_VF
	.comm	_MLX5_COREDEV_VF,4,2            ## @MLX5_COREDEV_VF
	.comm	_MLX5_COREDEV_PF,4,2            ## @MLX5_COREDEV_PF
	.comm	_prof_sel,4,2                   ## @prof_sel
L_.str.1:                               ## @.str.1
	.asciz	"mlx5_pci_init failed with error code %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"mlx5_load_one failed with error code %d\n"

	.comm	_MLX5_IB_MOD,4,2                ## @MLX5_IB_MOD
L_.str.3:                               ## @.str.3
	.asciz	"mlx5_crdump_enable failed with error code %d\n"

	.no_dead_strip	_init_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_one
_init_one:                              ; @init_one
	.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	x23, x1
	mov	x21, x0
	bl	_mlx5_devlink_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_devlink_priv
	mov	x20, x0
	stp	x21, x21, [x0, #8]
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _MLX5_PCI_DEV_IS_VF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MLX5_PCI_DEV_IS_VF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MLX5_COREDEV_VF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MLX5_COREDEV_VF@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MLX5_COREDEV_PF@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MLX5_COREDEV_PF@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w8, [x8]
	str	w8, [x0]
Lloh7:
	adrp	x8, _prof_sel@GOTPAGE
Lloh8:
	ldr	x8, [x8, _prof_sel@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_mlx5_mdev_init
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_mlx5_pci_init
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_mlx5_core_err
	b	LBB0_10
LBB0_4:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_5:
	mov	x0, x20
	mov	w1, #1
	bl	_mlx5_load_one
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_mlx5_core_err
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x8, _MLX5_IB_MOD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MLX5_IB_MOD@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_request_module_nowait
	mov	x0, x19
	mov	x1, x21
	bl	_mlx5_devlink_register
	cbz	w0, LBB0_13
; %bb.8:
	mov	x22, x0
	mov	x0, x20
	mov	w1, #1
	bl	_mlx5_unload_one
LBB0_9:
	mov	x0, x20
	bl	_mlx5_pci_close
LBB0_10:
	mov	x0, x20
	bl	_mlx5_mdev_uninit
LBB0_11:
	mov	x0, x19
	bl	_mlx5_devlink_free
LBB0_12:
	mov	x0, x22
	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
LBB0_13:
	mov	x0, x20
	bl	_mlx5_crdump_enable
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_15
; %bb.14:
	str	x0, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_15:
	mov	x0, x21
	bl	_pci_save_state
	mov	w22, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"devlink alloc failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_PCI_DEV_IS_VF,4,2         ; @MLX5_PCI_DEV_IS_VF
	.comm	_MLX5_COREDEV_VF,4,2            ; @MLX5_COREDEV_VF
	.comm	_MLX5_COREDEV_PF,4,2            ; @MLX5_COREDEV_PF
	.comm	_prof_sel,4,2                   ; @prof_sel
l_.str.1:                               ; @.str.1
	.asciz	"mlx5_pci_init failed with error code %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"mlx5_load_one failed with error code %d\n"

	.comm	_MLX5_IB_MOD,4,2                ; @MLX5_IB_MOD
l_.str.3:                               ; @.str.3
	.asciz	"mlx5_crdump_enable failed with error code %d\n"

	.no_dead_strip	_init_one
.subsections_via_symbols
