	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_init_slave
_mlx4_init_slave:                       ## @mlx4_init_slave
	.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	%rdi, %r12
	callq	_mlx4_priv
	movq	%rax, %rbx
	movl	16(%rax), %r15d
	movq	_pf_loading@GOTPCREL(%rip), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx4_warn
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	%rbx, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$1, (%rbx)
	movq	%r12, %rdi
	callq	_mlx4_comm_check_offline
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx4_err
	jmp	LBB0_5
LBB0_7:
	movq	%r12, %rdi
	callq	_mlx4_reset_vf_support
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx4_warn
	movq	_MLX4_COMM_CMD_RESET@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_MLX4_COMM_CMD_NA_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MLX4_COMM_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_mlx4_comm_cmd
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	_MLX4_DELAY_RESET_SLAVE@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_12
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx4_warn
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_10:
	movq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %edi
	callq	_swab32
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_mlx4_comm_get_version
	movl	%eax, %edi
	callq	_MLX4_COMM_GET_IF_REV
	movq	%rax, %rbx
	movl	%r13d, %edi
	callq	_MLX4_COMM_GET_IF_REV
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx4_warn
	movq	_MLX4_COMM_CMD_VHCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MLX4_COMM_CMD_NA_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MLX4_COMM_TIME@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	callq	_mlx4_comm_cmd
	testl	%eax, %eax
	movq	_MLX4_COMM_CMD_RESET@GOTPCREL(%rip), %r13
	jne	LBB0_12
## %bb.14:
	movq	_MLX4_COMM_CMD_VHCR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MLX4_COMM_CMD_NA_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	callq	_mlx4_comm_cmd
	testl	%eax, %eax
	jne	LBB0_12
## %bb.15:
	movq	_MLX4_COMM_CMD_VHCR2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	sarl	$16, %edx
	movq	_MLX4_COMM_CMD_NA_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	callq	_mlx4_comm_cmd
	testl	%eax, %eax
	jne	LBB0_12
## %bb.16:
	movq	_MLX4_COMM_CMD_VHCR_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MLX4_COMM_CMD_NA_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_mlx4_comm_cmd
	testl	%eax, %eax
	jne	LBB0_12
## %bb.17:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx4_err
	movq	_MLX4_COMM_CMD_RESET@GOTPCREL(%rip), %r13
LBB0_12:
	movl	(%r13), %esi
	movq	_MLX4_COMM_CMD_NA_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_mlx4_comm_cmd
LBB0_5:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pf_loading,4,2                 ## @pf_loading
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PF is not ready - Deferring probe\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.1:                               ## @.str.1
	.asciz	"PF is not responsive, skipping initialization\n"

L_.str.2:                               ## @.str.2
	.asciz	"Sending reset\n"

	.comm	_MLX4_COMM_CMD_RESET,4,2        ## @MLX4_COMM_CMD_RESET
	.comm	_MLX4_COMM_CMD_NA_OP,4,2        ## @MLX4_COMM_CMD_NA_OP
	.comm	_MLX4_COMM_TIME,4,2             ## @MLX4_COMM_TIME
	.comm	_MLX4_DELAY_RESET_SLAVE,4,2     ## @MLX4_DELAY_RESET_SLAVE
L_.str.3:                               ## @.str.3
	.asciz	"slave is currently in the middle of FLR - Deferring probe\n"

L_.str.4:                               ## @.str.4
	.asciz	"slave driver version is not supported by the master\n"

L_.str.5:                               ## @.str.5
	.asciz	"Sending vhcr0\n"

	.comm	_MLX4_COMM_CMD_VHCR0,4,2        ## @MLX4_COMM_CMD_VHCR0
	.comm	_MLX4_COMM_CMD_VHCR1,4,2        ## @MLX4_COMM_CMD_VHCR1
	.comm	_MLX4_COMM_CMD_VHCR2,4,2        ## @MLX4_COMM_CMD_VHCR2
	.comm	_MLX4_COMM_CMD_VHCR_EN,4,2      ## @MLX4_COMM_CMD_VHCR_EN
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mlx4_init_slave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_init_slave
_mlx4_init_slave:                       ; @mlx4_init_slave
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	bl	_mlx4_priv
	mov	x22, x0
	ldr	w21, [x0, #16]
Lloh0:
	adrp	x0, _pf_loading@GOTPAGE
Lloh1:
	ldr	x0, [x0, _pf_loading@GOTPAGEOFF]
	bl	_atomic_read
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
LBB0_2:
Lloh4:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_17
LBB0_3:
	add	x19, x22, #4
	mov	x0, x19
	bl	_mutex_lock
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x20
	bl	_mlx4_comm_check_offline
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mlx4_err
	b	LBB0_16
LBB0_5:
	mov	x0, x20
	bl	_mlx4_reset_vf_support
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
Lloh10:
	adrp	x24, _MLX4_COMM_CMD_RESET@GOTPAGE
Lloh11:
	ldr	x24, [x24, _MLX4_COMM_CMD_RESET@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh12:
	adrp	x25, _MLX4_COMM_CMD_NA_OP@GOTPAGE
Lloh13:
	ldr	x25, [x25, _MLX4_COMM_CMD_NA_OP@GOTPAGEOFF]
	ldr	w3, [x25]
Lloh14:
	adrp	x26, _MLX4_COMM_TIME@GOTPAGE
Lloh15:
	ldr	x26, [x26, _MLX4_COMM_TIME@GOTPAGEOFF]
	ldr	w4, [x26]
	mov	x0, x20
	mov	w2, #0
	bl	_mlx4_comm_cmd
	cbz	w0, LBB0_8
; %bb.6:
Lloh16:
	adrp	x8, _MLX4_DELAY_RESET_SLAVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX4_DELAY_RESET_SLAVE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_15
; %bb.7:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_2
LBB0_8:
	ldr	x0, [x22, #8]
	bl	_readl
	bl	_swab32
	mov	x22, x0
	bl	_mlx4_comm_get_version
	bl	_MLX4_COMM_GET_IF_REV
	mov	x23, x0
	mov	x0, x22
	bl	_MLX4_COMM_GET_IF_REV
	cmp	x23, x0
	b.ne	LBB0_14
; %bb.9:
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
Lloh23:
	adrp	x8, _MLX4_COMM_CMD_VHCR0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MLX4_COMM_CMD_VHCR0@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w3, [x25]
	ldr	w4, [x26]
	mov	x0, x20
	bl	_mlx4_comm_cmd
	cbnz	w0, LBB0_15
; %bb.10:
Lloh26:
	adrp	x8, _MLX4_COMM_CMD_VHCR1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MLX4_COMM_CMD_VHCR1@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w3, [x25]
	ldr	w4, [x26]
	mov	x0, x20
	bl	_mlx4_comm_cmd
	cbnz	w0, LBB0_15
; %bb.11:
Lloh29:
	adrp	x8, _MLX4_COMM_CMD_VHCR2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MLX4_COMM_CMD_VHCR2@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	asr	w2, w21, #16
	ldr	w3, [x25]
	ldr	w4, [x26]
	mov	x0, x20
	bl	_mlx4_comm_cmd
	cbnz	w0, LBB0_15
; %bb.12:
Lloh32:
	adrp	x8, _MLX4_COMM_CMD_VHCR_EN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MLX4_COMM_CMD_VHCR_EN@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w3, [x25]
	ldr	w4, [x26]
	mov	x0, x20
	mov	x2, x21
	bl	_mlx4_comm_cmd
	cbnz	w0, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_18
LBB0_14:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_mlx4_err
LBB0_15:
	ldr	w1, [x24]
	ldr	w3, [x25]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	bl	_mlx4_comm_cmd
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
Lloh37:
	adrp	x8, _EIO@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_pf_loading,4,2                 ; @pf_loading
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PF is not ready - Deferring probe\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.1:                               ; @.str.1
	.asciz	"PF is not responsive, skipping initialization\n"

l_.str.2:                               ; @.str.2
	.asciz	"Sending reset\n"

	.comm	_MLX4_COMM_CMD_RESET,4,2        ; @MLX4_COMM_CMD_RESET
	.comm	_MLX4_COMM_CMD_NA_OP,4,2        ; @MLX4_COMM_CMD_NA_OP
	.comm	_MLX4_COMM_TIME,4,2             ; @MLX4_COMM_TIME
	.comm	_MLX4_DELAY_RESET_SLAVE,4,2     ; @MLX4_DELAY_RESET_SLAVE
l_.str.3:                               ; @.str.3
	.asciz	"slave is currently in the middle of FLR - Deferring probe\n"

l_.str.4:                               ; @.str.4
	.asciz	"slave driver version is not supported by the master\n"

l_.str.5:                               ; @.str.5
	.asciz	"Sending vhcr0\n"

	.comm	_MLX4_COMM_CMD_VHCR0,4,2        ; @MLX4_COMM_CMD_VHCR0
	.comm	_MLX4_COMM_CMD_VHCR1,4,2        ; @MLX4_COMM_CMD_VHCR1
	.comm	_MLX4_COMM_CMD_VHCR2,4,2        ; @MLX4_COMM_CMD_VHCR2
	.comm	_MLX4_COMM_CMD_VHCR_EN,4,2      ; @MLX4_COMM_CMD_VHCR_EN
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mlx4_init_slave
.subsections_via_symbols
