	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_mcg_multiplex_handler  ## -- Begin function mlx4_ib_mcg_multiplex_handler
	.p2align	4, 0x90
_mlx4_ib_mcg_multiplex_handler:         ## @mlx4_ib_mcg_multiplex_handler
	.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	%rcx, %r13
	movl	%edx, %ebx
	movl	%esi, %r12d
	callq	_to_mdev
	movq	(%rax), %r15
	movslq	%r12d, %r14
	shlq	$4, %r14
	cmpq	$0, -8(%r14,%r15)
	je	LBB0_3
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movl	(%r13), %ecx
	leal	-128(%rcx), %eax
	cmpl	$5, %eax
	ja	LBB0_12
## %bb.4:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rdx
	xorl	%ebx, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movl	$1, %ebx
LBB0_6:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	addq	%r14, %r15
	addq	$-16, %r15
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movups	(%r13), %xmm0
	movups	%xmm0, 16(%rax)
	movq	%r15, %rdi
	movq	%rax, %r14
	callq	_mutex_lock
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_acquire_group
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_9
## %bb.15:
	movq	%r14, %rdi
	callq	_kfree
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mcg_warn
	jmp	LBB0_13
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	%r14, %r15
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	8(%r13), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %edx
	movq	_MAX_PEND_REQS_PER_FUNC@GOTPCREL(%rip), %r14
	cmpl	(%r14), %edx
	jle	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_mcg_debug_group
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_release_group
	movq	%r15, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_11:
	incl	%edx
	movl	%edx, (%rax,%rcx,4)
	movq	%r13, 8(%r15)
	movq	%r15, %rdi
	callq	_queue_req
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_release_group
LBB0_13:
	movl	$1, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MAX_PEND_REQS_PER_FUNC,4,2     ## @MAX_PEND_REQS_PER_FUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Port %d, Func %d has too many pending requests (%d), dropping\n"

L_.str.1:                               ## @.str.1
	.asciz	"In multiplex, port %d, func %d: unexpected MCMember method: 0x%x, dropping\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_mcg_multiplex_handler  ; -- Begin function mlx4_ib_mcg_multiplex_handler
	.p2align	2
_mlx4_ib_mcg_multiplex_handler:         ; @mlx4_ib_mcg_multiplex_handler
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	bl	_to_mdev
	ldr	x8, [x0]
	add	x25, x8, w20, sxtw #4
	ldur	x8, [x25, #-8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_3:
	ldr	w3, [x22]
	sub	w8, w3, #128
	cmp	w8, #5
	b.hi	LBB0_9
; %bb.4:
	mov	w23, #0
	mov	w0, #0
	ldr	x24, [x22, #8]
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	mov	w23, #1
LBB0_6:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.7:
	mov	x21, x0
	sub	x25, x25, #16
	str	w19, [x0]
	ldr	q0, [x22]
	str	q0, [x0, #16]
	mov	x0, x25
	bl	_mutex_lock
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	bl	_acquire_group
	mov	x22, x0
	mov	x0, x25
	bl	_mutex_unlock
	mov	x0, x22
	bl	_IS_ERR
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x21
	bl	_kfree
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_9:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_mcg_warn
	b	LBB0_14
LBB0_10:
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x22, #8]
	ldr	w9, [x8, w19, sxtw #2]
Lloh9:
	adrp	x23, _MAX_PEND_REQS_PER_FUNC@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MAX_PEND_REQS_PER_FUNC@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w9, w10
	b.le	LBB0_13
; %bb.11:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	w4, [x23]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	bl	_mcg_debug_group
	mov	x0, x22
	mov	w1, #0
	bl	_release_group
	mov	x0, x21
	bl	_kfree
LBB0_12:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_13:
	sxtw	x10, w19
	add	w9, w9, #1
	str	w9, [x8, x10, lsl #2]
	str	x22, [x21, #8]
	mov	x0, x21
	bl	_queue_req
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x22
	mov	w1, #0
	bl	_release_group
LBB0_14:
	mov	w0, #1
LBB0_15:
	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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_6-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MAX_PEND_REQS_PER_FUNC,4,2     ; @MAX_PEND_REQS_PER_FUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Port %d, Func %d has too many pending requests (%d), dropping\n"

l_.str.1:                               ; @.str.1
	.asciz	"In multiplex, port %d, func %d: unexpected MCMember method: 0x%x, dropping\n"

.subsections_via_symbols
