	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_function_setup
_mlx5_function_setup:                   ## @mlx5_function_setup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_fw_rev_maj
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_fw_rev_min
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_fw_rev_sub
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_mlx5_core_info
	movq	%r12, %rdi
	callq	_mlx5_core_is_pf
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	callq	_pcie_print_link_status
LBB0_2:
	movq	_FW_PRE_INIT_TIMEOUT_MILI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_FW_INIT_WARN_MESSAGE_INTERVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_wait_fw_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_30
LBB0_4:
	movq	%r12, %rdi
	callq	_mlx5_cmd_init
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_30
LBB0_6:
	movq	_FW_INIT_TIMEOUT_MILI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_wait_fw_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_29
LBB0_8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mlx5_core_enable_hca
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	jmp	LBB0_29
LBB0_10:
	movq	%r12, %rdi
	callq	_mlx5_core_set_issi
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_12
LBB0_13:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_mlx5_satisfy_startup_pages
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
LBB0_12:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
LBB0_28:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mlx5_core_disable_hca
LBB0_29:
	movq	%r12, %rdi
	callq	_mlx5_cmd_cleanup
LBB0_30:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	callq	_set_hca_ctrl
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %r14d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_17
LBB0_18:
	movq	%r12, %rdi
	callq	_set_hca_cap
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r14d
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_17
LBB0_20:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mlx5_satisfy_startup_pages
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r14d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_17
LBB0_22:
	movq	_sw_owner_id@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_mlx5_cmd_init_hca
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %r14d
	leaq	L_.str.10(%rip), %rsi
LBB0_17:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
LBB0_27:
	movq	%r12, %rdi
	callq	_mlx5_reclaim_startup_pages
	jmp	LBB0_28
LBB0_24:
	movq	%r12, %rdi
	callq	_mlx5_set_driver_version
	movq	%r12, %rdi
	callq	_mlx5_start_health_poll
	movq	%r12, %rdi
	callq	_mlx5_query_hca_caps
	testl	%eax, %eax
	je	LBB0_25
## %bb.26:
	movl	%eax, %r14d
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mlx5_core_err
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mlx5_stop_health_poll
	jmp	LBB0_27
LBB0_25:
	xorl	%r14d, %r14d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware version: %d.%d.%d\n"

	.comm	_FW_PRE_INIT_TIMEOUT_MILI,4,2   ## @FW_PRE_INIT_TIMEOUT_MILI
	.comm	_FW_INIT_WARN_MESSAGE_INTERVAL,4,2 ## @FW_INIT_WARN_MESSAGE_INTERVAL
L_.str.1:                               ## @.str.1
	.asciz	"Firmware over %d MS in pre-initializing state, aborting\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed initializing command interface, aborting\n"

	.comm	_FW_INIT_TIMEOUT_MILI,4,2       ## @FW_INIT_TIMEOUT_MILI
L_.str.3:                               ## @.str.3
	.asciz	"Firmware over %d MS in initializing state, aborting\n"

L_.str.4:                               ## @.str.4
	.asciz	"enable hca failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"failed to set issi\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed to allocate boot pages\n"

L_.str.7:                               ## @.str.7
	.asciz	"set_hca_ctrl failed\n"

L_.str.8:                               ## @.str.8
	.asciz	"set_hca_cap failed\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed to allocate init pages\n"

	.comm	_sw_owner_id,4,2                ## @sw_owner_id
L_.str.10:                              ## @.str.10
	.asciz	"init hca failed\n"

L_.str.11:                              ## @.str.11
	.asciz	"query hca failed\n"

	.no_dead_strip	_mlx5_function_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_function_setup
_mlx5_function_setup:                   ; @mlx5_function_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_fw_rev_maj
	mov	x20, x0
	mov	x0, x19
	bl	_fw_rev_min
	mov	x22, x0
	mov	x0, x19
	bl	_fw_rev_sub
	mov	x4, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x22
	bl	_mlx5_core_info
	mov	x0, x19
	bl	_mlx5_core_is_pf
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_pcie_print_link_status
LBB0_2:
Lloh2:
	adrp	x22, _FW_PRE_INIT_TIMEOUT_MILI@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FW_PRE_INIT_TIMEOUT_MILI@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x8, _FW_INIT_WARN_MESSAGE_INTERVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FW_INIT_WARN_MESSAGE_INTERVAL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wait_fw_init
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	w8, [x22]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_mlx5_cmd_init
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_mlx5_core_err
LBB0_7:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_8:
Lloh11:
	adrp	x22, _FW_INIT_TIMEOUT_MILI@GOTPAGE
Lloh12:
	ldr	x22, [x22, _FW_INIT_TIMEOUT_MILI@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_wait_fw_init
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
	ldr	w8, [x22]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	bl	_mlx5_core_enable_hca
	cbz	w0, LBB0_14
; %bb.11:
	mov	x20, x0
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_mlx5_core_err
LBB0_13:
	mov	x0, x19
	bl	_mlx5_cmd_cleanup
	b	LBB0_7
LBB0_14:
	mov	x0, x19
	bl	_mlx5_core_set_issi
	cbz	w0, LBB0_16
; %bb.15:
	mov	x20, x0
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_18
LBB0_16:
	mov	x0, x19
	mov	w1, #1
	bl	_mlx5_satisfy_startup_pages
	cbz	w0, LBB0_20
; %bb.17:
	mov	x20, x0
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_mlx5_core_err
LBB0_19:
	mov	x0, x19
	mov	w1, #0
	bl	_mlx5_core_disable_hca
	b	LBB0_13
LBB0_20:
	mov	x0, x19
	bl	_set_hca_ctrl
	cbz	w0, LBB0_22
; %bb.21:
	mov	x20, x0
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_28
LBB0_22:
	mov	x0, x19
	bl	_set_hca_cap
	cbz	w0, LBB0_24
; %bb.23:
	mov	x20, x0
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_28
LBB0_24:
	mov	x0, x19
	mov	w1, #0
	bl	_mlx5_satisfy_startup_pages
	cbz	w0, LBB0_26
; %bb.25:
	mov	x20, x0
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_28
LBB0_26:
Lloh27:
	adrp	x8, _sw_owner_id@GOTPAGE
Lloh28:
	ldr	x8, [x8, _sw_owner_id@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mlx5_cmd_init_hca
	cbz	w0, LBB0_30
; %bb.27:
	mov	x20, x0
Lloh30:
	adrp	x1, l_.str.10@PAGE
Lloh31:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_28:
	mov	x0, x19
	bl	_mlx5_core_err
LBB0_29:
	mov	x0, x19
	bl	_mlx5_reclaim_startup_pages
	b	LBB0_19
LBB0_30:
	mov	x0, x19
	bl	_mlx5_set_driver_version
	mov	x0, x19
	bl	_mlx5_start_health_poll
	mov	x0, x19
	bl	_mlx5_query_hca_caps
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.31:
Lloh32:
	adrp	x1, l_.str.11@PAGE
Lloh33:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_mlx5_core_err
	mov	x0, x19
	mov	x1, x21
	bl	_mlx5_stop_health_poll
	b	LBB0_29
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware version: %d.%d.%d\n"

	.comm	_FW_PRE_INIT_TIMEOUT_MILI,4,2   ; @FW_PRE_INIT_TIMEOUT_MILI
	.comm	_FW_INIT_WARN_MESSAGE_INTERVAL,4,2 ; @FW_INIT_WARN_MESSAGE_INTERVAL
l_.str.1:                               ; @.str.1
	.asciz	"Firmware over %d MS in pre-initializing state, aborting\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed initializing command interface, aborting\n"

	.comm	_FW_INIT_TIMEOUT_MILI,4,2       ; @FW_INIT_TIMEOUT_MILI
l_.str.3:                               ; @.str.3
	.asciz	"Firmware over %d MS in initializing state, aborting\n"

l_.str.4:                               ; @.str.4
	.asciz	"enable hca failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"failed to set issi\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed to allocate boot pages\n"

l_.str.7:                               ; @.str.7
	.asciz	"set_hca_ctrl failed\n"

l_.str.8:                               ; @.str.8
	.asciz	"set_hca_cap failed\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed to allocate init pages\n"

	.comm	_sw_owner_id,4,2                ; @sw_owner_id
l_.str.10:                              ; @.str.10
	.asciz	"init hca failed\n"

l_.str.11:                              ; @.str.11
	.asciz	"query hca failed\n"

	.no_dead_strip	_mlx5_function_setup
.subsections_via_symbols
