	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_do_mirror_rule
_mlx4_do_mirror_rule:                   ## @mlx4_do_mirror_rule
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movl	4(%rbx), %edi
	movl	(%r14), %edx
	callq	_memcpy
	movl	(%rbx), %esi
	movl	(%r14), %ecx
	sarl	$2, %ecx
	movq	_MLX4_QP_FLOW_STEERING_ATTACH@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_imm
	addq	$16, %rsp
	movl	%eax, %r15d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mlx4_free_cmd_mailbox
	testl	%r15d, %r15d
	jne	LBB0_9
## %bb.4:
	movq	-48(%rbp), %rdx
	movq	_RES_FS_RULE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movl	4(%r14), %esi
	movl	24(%r14), %r9d
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_add_res_range
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	4(%r14), %esi
	movq	-48(%rbp), %rdx
	movl	(%rbx), %ecx
	leaq	-56(%rbp), %r8
	movq	%r12, %rdi
	callq	_get_res
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %r15d
	movl	4(%r14), %esi
	movq	-48(%rbp), %rdx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	callq	_rem_res_range
LBB0_8:
	movq	-48(%rbp), %rsi
	movq	_MLX4_QP_FLOW_STEERING_DETACH@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r13), %eax
	subq	$8, %rsp
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	%rax
	callq	_mlx4_cmd
	addq	$16, %rsp
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx4_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	-48(%rbp), %rdx
	movq	%rdx, 16(%r14)
	movq	-56(%rbp), %rax
	movl	$0, (%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movl	4(%r14), %esi
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	callq	_put_res
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rule mirroring mailbox is null\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_QP_FLOW_STEERING_ATTACH,4,2 ## @MLX4_QP_FLOW_STEERING_ATTACH
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.comm	_RES_FS_RULE,4,2                ## @RES_FS_RULE
	.comm	_MLX4_QP_FLOW_STEERING_DETACH,4,2 ## @MLX4_QP_FLOW_STEERING_DETACH
	.no_dead_strip	_mlx4_do_mirror_rule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_do_mirror_rule
_mlx4_do_mirror_rule:                   ; @mlx4_do_mirror_rule
	.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	x20, x1
	mov	x19, x0
	bl	_mlx4_alloc_cmd_mailbox
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x22
	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
	b	_PTR_ERR
LBB0_2:
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_8
; %bb.3:
	ldr	w0, [x22, #4]
	ldr	w2, [x20]
	bl	_memcpy
	ldr	w1, [x22]
	ldr	w8, [x20]
	asr	w3, w8, #2
Lloh0:
	adrp	x8, _MLX4_QP_FLOW_STEERING_ATTACH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_QP_FLOW_STEERING_ATTACH@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x23, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
	ldr	w6, [x23]
Lloh5:
	adrp	x24, _MLX4_CMD_NATIVE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MLX4_CMD_NATIVE@GOTPAGEOFF]
	ldr	w7, [x24]
	mov	x2, sp
	mov	x0, x19
	mov	w4, #0
	bl	_mlx4_cmd_imm
	mov	x21, x0
	mov	x0, x19
	mov	x1, x22
	bl	_mlx4_free_cmd_mailbox
	cbnz	w21, LBB0_9
; %bb.4:
	ldr	w1, [x20, #4]
	ldr	x2, [sp]
Lloh7:
	adrp	x22, _RES_FS_RULE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _RES_FS_RULE@GOTPAGEOFF]
	ldr	w4, [x22]
	ldr	w5, [x20, #24]
	mov	x0, x19
	mov	w3, #1
	bl	_add_res_range
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w1, [x20, #4]
	ldr	x2, [sp]
	ldr	w3, [x22]
	add	x4, sp, #8
	mov	x0, x19
	bl	_get_res
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.6:
	ldr	w1, [x20, #4]
	ldr	x2, [sp]
	ldr	w4, [x22]
	mov	x0, x19
	mov	w3, #1
	mov	w5, #0
	bl	_rem_res_range
LBB0_7:
	ldr	x1, [sp]
Lloh9:
	adrp	x8, _MLX4_QP_FLOW_STEERING_DETACH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLX4_QP_FLOW_STEERING_DETACH@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	ldr	w5, [x23]
	ldr	w6, [x24]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_mlx4_cmd
	b	LBB0_9
LBB0_8:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	ldp	x2, x8, [sp]
	str	x2, [x20, #16]
	str	wzr, [x8]
	stp	xzr, xzr, [x8, #8]
	ldr	w1, [x20, #4]
	ldr	w3, [x22]
	mov	x0, x19
	bl	_put_res
	b	LBB0_9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rule mirroring mailbox is null\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_QP_FLOW_STEERING_ATTACH,4,2 ; @MLX4_QP_FLOW_STEERING_ATTACH
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.comm	_RES_FS_RULE,4,2                ; @RES_FS_RULE
	.comm	_MLX4_QP_FLOW_STEERING_DETACH,4,2 ; @MLX4_QP_FLOW_STEERING_DETACH
	.no_dead_strip	_mlx4_do_mirror_rule
.subsections_via_symbols
