	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_mcg_demux_handler      ## -- Begin function mlx4_ib_mcg_demux_handler
	.p2align	4, 0x90
_mlx4_ib_mcg_demux_handler:             ## @mlx4_ib_mcg_demux_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r13d
	movl	%esi, %ebx
	callq	_to_mdev
	movl	(%r15), %edx
	leal	-128(%rdx), %ecx
	cmpl	$5, %ecx
	ja	LBB0_9
## %bb.1:
	xorl	%r14d, %r14d
	movl	$27, %edx
	btl	%ecx, %edx
	jb	LBB0_10
## %bb.2:
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	leaq	(%rax,%rcx,8), %rbx
	addq	$-8, %rbx
	decq	%rcx
	movq	8(%r15), %r12
	leaq	(%rax,%rcx,8), %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r12, %rbx
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_acquire_group
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	$1, %r14d
	cmpl	$133, (%r15)
	jne	LBB0_10
## %bb.4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_search_relocate_mgid0_group
	movq	%rax, %r12
LBB0_5:
	movl	$1, %r14d
	testq	%r12, %r12
	je	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	callq	_mutex_lock
	movups	(%r15), %xmm0
	movups	%xmm0, 24(%r12)
	movl	12(%r12), %eax
	movl	%eax, 16(%r12)
	movq	_MCAST_RESP_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	leaq	4(%r12), %rbx
	movq	%rbx, %rdi
	callq	_atomic_inc
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_queue_work
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_safe_atomic_dec
LBB0_8:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_release_group
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mcg_warn
	movl	$1, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCAST_RESP_READY,4,2           ## @MCAST_RESP_READY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"In demux, port %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_demux_handler      ; -- Begin function mlx4_ib_mcg_demux_handler
	.p2align	2
_mlx4_ib_mcg_demux_handler:             ; @mlx4_ib_mcg_demux_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	bl	_to_mdev
	ldr	w2, [x19]
	sub	w8, w2, #128
	cmp	w8, #5
	b.hi	LBB0_10
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #27
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_12
LBB0_3:
	ldr	x8, [x0]
	sxtw	x9, w20
	sub	x9, x9, #1
	add	x20, x8, x9, lsl #3
	ldr	x23, [x19, #8]
	add	x8, x8, x9, lsl #3
	add	x24, x8, #4
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	bl	_acquire_group
	mov	x21, x0
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x21
	bl	_IS_ERR
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #133
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_search_relocate_mgid0_group
	mov	x21, x0
LBB0_6:
	cbz	x21, LBB0_11
; %bb.7:
	mov	x0, x21
	bl	_mutex_lock
	ldr	q0, [x19]
	stur	q0, [x21, #24]
	ldr	w8, [x21, #12]
Lloh0:
	adrp	x9, _MCAST_RESP_READY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCAST_RESP_READY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #12]
	add	x19, x21, #4
	mov	x0, x19
	bl	_atomic_inc
	ldr	w0, [x20]
	add	x1, x21, #8
	bl	_queue_work
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_safe_atomic_dec
LBB0_9:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x21
	mov	w1, #0
	bl	_release_group
	b	LBB0_11
LBB0_10:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_mcg_warn
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MCAST_RESP_READY,4,2           ; @MCAST_RESP_READY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"In demux, port %d: unexpected MCMember method: 0x%x, dropping\n"

.subsections_via_symbols
