	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_load
_mlx5_load:                             ## @mlx5_load
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_mlx5_get_uars_page
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.31:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %rdi
	callq	_mlx5_events_start
	movq	%rbx, %rdi
	callq	_mlx5_pagealloc_start
	movq	%rbx, %rdi
	callq	_mlx5_irq_table_create
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_29
LBB0_3:
	movq	%rbx, %rdi
	callq	_mlx5_eq_table_create
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_28
LBB0_5:
	movl	4(%rbx), %edi
	callq	_mlx5_fw_tracer_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_27
LBB0_7:
	movl	8(%rbx), %edi
	callq	_mlx5_hv_vhca_init
	movq	%rbx, %rdi
	callq	_mlx5_fpga_device_start
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_26
LBB0_9:
	movq	%rbx, %rdi
	callq	_mlx5_accel_ipsec_init
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_25
LBB0_11:
	movq	%rbx, %rdi
	callq	_mlx5_accel_tls_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_24
LBB0_13:
	movq	%rbx, %rdi
	callq	_mlx5_init_fs
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r14d
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_23
LBB0_15:
	movq	%rbx, %rdi
	callq	_mlx5_core_set_hca_defaults
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r14d
	leaq	L_.str.8(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_22
LBB0_17:
	movq	%rbx, %rdi
	callq	_mlx5_sriov_attach
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r14d
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_22
LBB0_19:
	movq	%rbx, %rdi
	callq	_mlx5_ec_init
	testl	%eax, %eax
	je	LBB0_20
## %bb.21:
	movl	%eax, %r14d
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	movq	%rbx, %rdi
	callq	_mlx5_sriov_detach
LBB0_22:
	movq	%rbx, %rdi
	callq	_mlx5_cleanup_fs
LBB0_23:
	movq	%rbx, %rdi
	callq	_mlx5_accel_tls_cleanup
LBB0_24:
	movq	%rbx, %rdi
	callq	_mlx5_accel_ipsec_cleanup
LBB0_25:
	movq	%rbx, %rdi
	callq	_mlx5_fpga_device_stop
LBB0_26:
	movl	8(%rbx), %edi
	callq	_mlx5_hv_vhca_cleanup
	movl	4(%rbx), %edi
	callq	_mlx5_fw_tracer_cleanup
LBB0_27:
	movq	%rbx, %rdi
	callq	_mlx5_eq_table_destroy
LBB0_28:
	movq	%rbx, %rdi
	callq	_mlx5_irq_table_destroy
LBB0_29:
	movq	%rbx, %rdi
	callq	_mlx5_pagealloc_stop
	movq	%rbx, %rdi
	callq	_mlx5_events_stop
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	callq	_mlx5_put_uars_page
LBB0_30:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_20:
	xorl	%r14d, %r14d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed allocating uar, aborting\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to alloc IRQs\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to create EQs\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to init FW tracer\n"

L_.str.4:                               ## @.str.4
	.asciz	"fpga device start failed %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"IPSec device start failed %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"TLS device start failed %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to init flow steering\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to set hca defaults\n"

L_.str.9:                               ## @.str.9
	.asciz	"sriov init failed %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"Failed to init embedded CPU\n"

	.no_dead_strip	_mlx5_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_load
_mlx5_load:                             ; @mlx5_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_mlx5_get_uars_page
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PTR_ERR
LBB0_2:
	mov	x0, x19
	bl	_mlx5_events_start
	mov	x0, x19
	bl	_mlx5_pagealloc_start
	mov	x0, x19
	bl	_mlx5_irq_table_create
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	b	LBB0_29
LBB0_4:
	mov	x0, x19
	bl	_mlx5_eq_table_create
	cbz	w0, LBB0_6
; %bb.5:
	mov	x20, x0
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	b	LBB0_28
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_mlx5_fw_tracer_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	b	LBB0_27
LBB0_8:
	ldr	w0, [x19, #8]
	bl	_mlx5_hv_vhca_init
	mov	x0, x19
	bl	_mlx5_fpga_device_start
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	b	LBB0_26
LBB0_10:
	mov	x0, x19
	bl	_mlx5_accel_ipsec_init
	cbz	w0, LBB0_12
; %bb.11:
	mov	x20, x0
	str	x20, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_25
LBB0_12:
	mov	x0, x19
	bl	_mlx5_accel_tls_init
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
	str	x20, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_24
LBB0_14:
	mov	x0, x19
	bl	_mlx5_init_fs
	cbz	w0, LBB0_16
; %bb.15:
	mov	x20, x0
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	b	LBB0_23
LBB0_16:
	mov	x0, x19
	bl	_mlx5_core_set_hca_defaults
	cbz	w0, LBB0_18
; %bb.17:
	mov	x20, x0
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	b	LBB0_22
LBB0_18:
	mov	x0, x19
	bl	_mlx5_sriov_attach
	cbz	w0, LBB0_20
; %bb.19:
	mov	x20, x0
	str	x20, [sp]
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_22
LBB0_20:
	mov	x0, x19
	bl	_mlx5_ec_init
	mov	x20, x0
	cbz	w0, LBB0_30
; %bb.21:
Lloh20:
	adrp	x1, l_.str.10@PAGE
Lloh21:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	mov	x0, x19
	bl	_mlx5_sriov_detach
LBB0_22:
	mov	x0, x19
	bl	_mlx5_cleanup_fs
LBB0_23:
	mov	x0, x19
	bl	_mlx5_accel_tls_cleanup
LBB0_24:
	mov	x0, x19
	bl	_mlx5_accel_ipsec_cleanup
LBB0_25:
	mov	x0, x19
	bl	_mlx5_fpga_device_stop
LBB0_26:
	ldr	w0, [x19, #8]
	bl	_mlx5_hv_vhca_cleanup
	ldr	w0, [x19, #4]
	bl	_mlx5_fw_tracer_cleanup
LBB0_27:
	mov	x0, x19
	bl	_mlx5_eq_table_destroy
LBB0_28:
	mov	x0, x19
	bl	_mlx5_irq_table_destroy
LBB0_29:
	mov	x0, x19
	bl	_mlx5_pagealloc_stop
	mov	x0, x19
	bl	_mlx5_events_stop
	ldr	w1, [x19]
	mov	x0, x19
	bl	_mlx5_put_uars_page
LBB0_30:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed allocating uar, aborting\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to alloc IRQs\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to create EQs\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to init FW tracer\n"

l_.str.4:                               ; @.str.4
	.asciz	"fpga device start failed %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"IPSec device start failed %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"TLS device start failed %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to init flow steering\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to set hca defaults\n"

l_.str.9:                               ; @.str.9
	.asciz	"sriov init failed %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"Failed to init embedded CPU\n"

	.no_dead_strip	_mlx5_load
.subsections_via_symbols
