	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_reg_mcda_set
_mlx5_reg_mcda_set:                     ## @mlx5_reg_mcda_set
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r14d
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_mcda_reg@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_MLX5_ST_SZ_BYTES
	movl	%eax, %r12d
	addl	%r14d, %r12d
	movl	(%r13), %edi
	callq	_MLX5_ST_SZ_DW
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	_mcda_reg@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	%rax, %rsi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_MLX5_SET
	movl	(%r15), %edi
	movq	%r13, %rsi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %edx
	callq	_MLX5_SET
	movl	(%r15), %edi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	callq	_MLX5_SET
	cmpl	$4, %r14d
	jl	LBB0_5
## %bb.3:
	sarl	$2, %r14d
	cmpl	$2, %r14d
	movl	$1, %r15d
	cmovgel	%r14d, %r15d
	shlq	$2, %r15
	xorl	%r12d, %r12d
	leaq	-68(%rbp), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r12,4), %edi
	callq	_htonl
	movl	%eax, -68(%rbp)
	movq	_mcda_reg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_MLX5_ADDR_OF
	leaq	(%rax,%r12), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	addq	$4, %r12
	cmpq	%r12, %r15
	jne	LBB0_4
LBB0_5:
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	shll	$2, %r8d
	movq	_MLX5_REG_MCDA@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	pushq	$1
	pushq	$0
	callq	_mlx5_core_access_reg
	addq	$16, %rsp
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_mcda_reg,4,2                   ## @mcda_reg
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_REG_MCDA,4,2              ## @MLX5_REG_MCDA
	.no_dead_strip	_mlx5_reg_mcda_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_reg_mcda_set
_mlx5_reg_mcda_set:                     ; @mlx5_reg_mcda_set
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x20, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _mcda_reg@GOTPAGE
Lloh4:
	ldr	x28, [x28, _mcda_reg@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_MLX5_ST_SZ_BYTES
	add	w21, w0, w25
	ldr	w0, [x28]
	bl	_MLX5_ST_SZ_DW
	mov	x22, x0
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x24, x0
	ldr	w0, [x28]
	mov	x1, x24
	mov	x2, x27
	mov	x3, x27
	bl	_MLX5_SET
	ldr	w0, [x28]
	mov	x1, x24
	mov	x2, x26
	mov	x3, x26
	bl	_MLX5_SET
	ldr	w0, [x28]
	mov	x1, x24
	mov	x2, x25
	mov	x3, x25
	bl	_MLX5_SET
	cmp	w25, #4
	b.lt	LBB0_4
; %bb.2:
	mov	x26, #0
	asr	w8, w25, #2
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	lsl	x25, x8, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x26, lsl #2]
	bl	_htonl
	stur	w0, [x29, #-92]
	ldr	w0, [x28]
	mov	x1, x24
	mov	x2, x20
	bl	_MLX5_ADDR_OF
	add	x0, x0, x26
	sub	x1, x29, #92
	mov	w2, #4
	bl	_memcpy
	add	x26, x26, #4
	cmp	x25, x26
	b.ne	LBB0_3
LBB0_4:
	lsl	w4, w22, #2
Lloh10:
	adrp	x8, _MLX5_REG_MCDA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX5_REG_MCDA@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x23
	mov	w6, #0
	mov	w7, #1
	bl	_mlx5_core_access_reg
	mov	x19, x0
	mov	x0, x24
	bl	_kfree
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_6:
	ldur	x8, [x29, #-88]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_mcda_reg,4,2                   ; @mcda_reg
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_REG_MCDA,4,2              ; @MLX5_REG_MCDA
	.no_dead_strip	_mlx5_reg_mcda_set
.subsections_via_symbols
