	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_init_fw
_mlx4_init_fw:                          ## @mlx4_init_fw
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_mlx4_is_slave
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%rbx, %rdi
	callq	_mlx4_QUERY_FW
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movl	%eax, %r15d
	movq	_EACCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_info
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	callq	_mlx4_load_fw
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	callq	_mlx4_err
LBB0_10:
	movl	%r15d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	$1, -40(%rbp)
	movq	$0, -32(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_MOD_STAT_CFG
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_warn
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EACCES,4,2                     ## @EACCES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"non-primary physical function, skipping\n"

L_.str.1:                               ## @.str.1
	.asciz	"QUERY_FW command failed, aborting\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to start FW, aborting\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to override log_pg_sz parameter\n"

	.no_dead_strip	_mlx4_init_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_init_fw
_mlx4_init_fw:                          ; @mlx4_init_fw
	.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	x20, x0
	bl	_mlx4_is_slave
	cbz	w0, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_9
LBB0_2:
	mov	x0, x20
	bl	_mlx4_QUERY_FW
	cbz	w0, LBB0_5
; %bb.3:
	mov	x19, x0
Lloh0:
	adrp	x8, _EACCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx4_info
	b	LBB0_9
LBB0_5:
	mov	x0, x20
	bl	_mlx4_load_fw
	cbz	w0, LBB0_10
; %bb.6:
	mov	x19, x0
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_mlx4_err
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	mov	w8, #1
	str	w8, [sp]
	str	xzr, [sp, #8]
	mov	x1, sp
	mov	x0, x20
	bl	_mlx4_MOD_STAT_CFG
	mov	x19, x0
	cbz	w0, LBB0_9
; %bb.11:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EACCES,4,2                     ; @EACCES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"non-primary physical function, skipping\n"

l_.str.1:                               ; @.str.1
	.asciz	"QUERY_FW command failed, aborting\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to start FW, aborting\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to override log_pg_sz parameter\n"

	.no_dead_strip	_mlx4_init_fw
.subsections_via_symbols
