	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_register_mac              ## -- Begin function mlx4_register_mac
	.p2align	4, 0x90
_mlx4_register_mac:                     ## @mlx4_register_mac
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	callq	_mlx4_is_mfunc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	_MLX4_FLAG_OLD_REG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:
	negl	%ebx
	testl	%ebx, %ebx
	jne	LBB0_5
	jmp	LBB0_9
LBB0_11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___mlx4_register_mac            ## TAILCALL
LBB0_3:
	movl	%r15d, %ecx
	shll	$8, %ecx
	movq	_RES_MAC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_RES_OP_RESERVE_AND_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_ALLOC_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_CMD_WRAPPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	pushq	%rbx
	pushq	%rax
	callq	_mlx4_cmd_imm
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_5:
	movl	(%r13), %eax
	addl	%ebx, %eax
	jne	LBB0_10
## %bb.6:
	movq	%r12, %rdi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_set_param_l
	movq	_RES_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RES_OP_RESERVE_AND_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_ALLOC_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_TIME_CLASS_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_CMD_WRAPPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	pushq	%rbx
	pushq	%rax
	callq	_mlx4_cmd_imm
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	_MLX4_FLAG_OLD_REG_MAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_9:
	leaq	-44(%rbp), %rdi
	callq	_get_param_l
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_FLAG_OLD_REG_MAC,4,2      ## @MLX4_FLAG_OLD_REG_MAC
	.comm	_RES_MAC,4,2                    ## @RES_MAC
	.comm	_RES_OP_RESERVE_AND_MAP,4,2     ## @RES_OP_RESERVE_AND_MAP
	.comm	_MLX4_CMD_ALLOC_RES,4,2         ## @MLX4_CMD_ALLOC_RES
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ## @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_WRAPPED,4,2           ## @MLX4_CMD_WRAPPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_register_mac              ; -- Begin function mlx4_register_mac
	.p2align	2
_mlx4_register_mac:                     ; @mlx4_register_mac
	.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, x2
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x24, _EINVAL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	ldr	w22, [x24]
	bl	_mlx4_is_mfunc
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh2:
	adrp	x23, _MLX4_FLAG_OLD_REG_MAC@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MLX4_FLAG_OLD_REG_MAC@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	neg	w22, w22
	cbnz	w22, LBB0_5
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	mov	x2, 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
	b	___mlx4_register_mac
LBB0_4:
Lloh4:
	adrp	x8, _RES_MAC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RES_MAC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	orr	w3, w8, w21, lsl #8
Lloh7:
	adrp	x8, _RES_OP_RESERVE_AND_MAP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RES_OP_RESERVE_AND_MAP@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
Lloh10:
	adrp	x8, _MLX4_CMD_ALLOC_RES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX4_CMD_ALLOC_RES@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
Lloh13:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh15:
	ldr	w6, [x8]
Lloh16:
	adrp	x8, _MLX4_CMD_WRAPPED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MLX4_CMD_WRAPPED@GOTPAGEOFF]
Lloh18:
	ldr	w7, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_cmd_imm
	mov	x22, x0
	cbz	w22, LBB0_9
LBB0_5:
	ldr	w8, [x24]
	cmn	w22, w8
	b.ne	LBB0_10
; %bb.6:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	x0, LBB0_10
; %bb.7:
	add	x0, sp, #12
	mov	x1, x21
	bl	_set_param_l
Lloh19:
	adrp	x8, _RES_MAC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RES_MAC@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
Lloh22:
	adrp	x8, _RES_OP_RESERVE_AND_MAP@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RES_OP_RESERVE_AND_MAP@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
Lloh25:
	adrp	x8, _MLX4_CMD_ALLOC_RES@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLX4_CMD_ALLOC_RES@GOTPAGEOFF]
Lloh27:
	ldr	w5, [x8]
Lloh28:
	adrp	x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_A@GOTPAGEOFF]
Lloh30:
	ldr	w6, [x8]
Lloh31:
	adrp	x8, _MLX4_CMD_WRAPPED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MLX4_CMD_WRAPPED@GOTPAGEOFF]
Lloh33:
	ldr	w7, [x8]
	add	x2, sp, #12
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_cmd_imm
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w8, [x23]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	add	x0, sp, #12
	bl	_get_param_l
	mov	x22, x0
LBB0_10:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_FLAG_OLD_REG_MAC,4,2      ; @MLX4_FLAG_OLD_REG_MAC
	.comm	_RES_MAC,4,2                    ; @RES_MAC
	.comm	_RES_OP_RESERVE_AND_MAP,4,2     ; @RES_OP_RESERVE_AND_MAP
	.comm	_MLX4_CMD_ALLOC_RES,4,2         ; @MLX4_CMD_ALLOC_RES
	.comm	_MLX4_CMD_TIME_CLASS_A,4,2      ; @MLX4_CMD_TIME_CLASS_A
	.comm	_MLX4_CMD_WRAPPED,4,2           ; @MLX4_CMD_WRAPPED
.subsections_via_symbols
