	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_comm_cmd_poll
_mlx4_comm_cmd_poll:                    ## @mlx4_comm_cmd_poll
	.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	%rcx, %r12
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_mlx4_priv
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_comm_pending
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%r14), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_mlx4_warn
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_2:
	movq	%r14, %rdi
	callq	_down
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_mlx4_comm_cmd_post
	movq	%r12, %rdi
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	_jiffies@GOTPCREL(%rip), %r12
	addq	(%r12), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_comm_pending
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	jmp	LBB0_3
LBB0_6:
	movq	%r13, %rdi
	callq	_comm_pending
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	_MLX4_COMM_CMD_RESET@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx4_warn
	movq	_MLX4_DELAY_RESET_SLAVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_11
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_11:
	movq	%r14, %rdi
	callq	_up
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Communication channel is not idle.my toggle is %d (cmd:0x%x)\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MLX4_COMM_CMD_RESET,4,2        ## @MLX4_COMM_CMD_RESET
L_.str.1:                               ## @.str.1
	.asciz	"Got slave FLRed from Communication channel (ret:0x%x)\n"

	.comm	_MLX4_DELAY_RESET_SLAVE,4,2     ## @MLX4_DELAY_RESET_SLAVE
L_.str.2:                               ## @.str.2
	.asciz	"Communication channel timed out\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_mlx4_comm_cmd_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_comm_cmd_poll
_mlx4_comm_cmd_poll:                    ; @mlx4_comm_cmd_poll
	.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	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	bl	_mlx4_priv
	mov	x19, x0
	mov	x0, x20
	bl	_comm_pending
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	stp	x8, x21, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_2:
	mov	x0, x19
	bl	_down
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_mlx4_comm_cmd_post
	mov	x0, x22
	bl	_msecs_to_jiffies
	mov	x22, x0
Lloh5:
	adrp	x23, _jiffies@GOTPAGE
Lloh6:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x24, [x23]
	mov	x0, x20
	bl	_comm_pending
	cbz	w0, LBB0_6
; %bb.3:
	add	x22, x24, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x22
	bl	_time_before
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_cond_resched
	mov	x0, x20
	bl	_comm_pending
	cbnz	w0, LBB0_4
LBB0_6:
	mov	x0, x20
	bl	_comm_pending
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.7:
Lloh7:
	adrp	x8, _MLX4_COMM_CMD_RESET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MLX4_COMM_CMD_RESET@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.8:
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
Lloh12:
	adrp	x8, _MLX4_DELAY_RESET_SLAVE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MLX4_DELAY_RESET_SLAVE@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_9:
	mov	w20, #0
	b	LBB0_11
LBB0_10:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
Lloh17:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_11:
	mov	x0, x19
	bl	_up
LBB0_12:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Communication channel is not idle.my toggle is %d (cmd:0x%x)\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MLX4_COMM_CMD_RESET,4,2        ; @MLX4_COMM_CMD_RESET
l_.str.1:                               ; @.str.1
	.asciz	"Got slave FLRed from Communication channel (ret:0x%x)\n"

	.comm	_MLX4_DELAY_RESET_SLAVE,4,2     ; @MLX4_DELAY_RESET_SLAVE
l_.str.2:                               ; @.str.2
	.asciz	"Communication channel timed out\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_mlx4_comm_cmd_poll
.subsections_via_symbols
