	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_SET_PORT_SCHEDULER        ## -- Begin function mlx4_SET_PORT_SCHEDULER
	.p2align	4, 0x90
_mlx4_SET_PORT_SCHEDULER:               ## @mlx4_SET_PORT_SCHEDULER
	.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
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%r15, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_MLX4_NUM_TC@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.2:
	movl	$24, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_MLX4_RATELIMIT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %edi
	callq	_htons
	movq	%rax, (%r14,%r13)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,4), %edi
	callq	_htons
	movq	%rax, -8(%r14,%r13)
	movq	_MLX4_RATELIMIT_UNITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -16(%r14,%r13)
	movl	%r12d, %edi
	callq	_htons
	movq	%rax, -24(%r14,%r13)
	incq	%r15
	movq	_MLX4_NUM_TC@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$32, %r13
	cmpq	%rax, %r15
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx,%r15,4), %r12d
	testl	%r12d, %r12d
	jne	LBB0_6
	jmp	LBB0_5
LBB0_7:
	movq	_MLX4_SET_PORT_SCHEDULER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$8, %edx
	orl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %esi
	movq	_MLX4_CMD_SET_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MLX4_CMD_TIME_CLASS_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_mlx4_cmd
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mlx4_free_cmd_mailbox
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_NUM_TC,4,2                ## @MLX4_NUM_TC
	.comm	_MLX4_RATELIMIT_DEFAULT,4,2     ## @MLX4_RATELIMIT_DEFAULT
	.comm	_MLX4_RATELIMIT_UNITS,4,2       ## @MLX4_RATELIMIT_UNITS
	.comm	_MLX4_SET_PORT_SCHEDULER,4,2    ## @MLX4_SET_PORT_SCHEDULER
	.comm	_MLX4_CMD_SET_PORT,4,2          ## @MLX4_CMD_SET_PORT
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ## @MLX4_CMD_TIME_CLASS_B
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_SET_PORT_SCHEDULER        ; -- Begin function mlx4_SET_PORT_SCHEDULER
	.p2align	2
_mlx4_SET_PORT_SCHEDULER:               ; @mlx4_SET_PORT_SCHEDULER
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mlx4_alloc_cmd_mailbox
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_PTR_ERR
LBB0_2:
	str	w21, [sp, #12]                  ; 4-byte Folded Spill
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	ldr	x25, [x20, #8]
	mov	x0, x25
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _MLX4_NUM_TC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_NUM_TC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x28, #0
	mov	x21, #0
Lloh3:
	adrp	x20, _MLX4_RATELIMIT_UNITS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MLX4_RATELIMIT_UNITS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh5:
	adrp	x8, _MLX4_RATELIMIT_DEFAULT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_RATELIMIT_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x19, [x25]
	lsl	x27, x21, #2
	ldr	w0, [x23, x27]
	bl	_htons
	add	x19, x19, x28
	str	x0, [x19, #24]
	ldr	w0, [x24, x27]
	bl	_htons
	str	x0, [x19, #16]
	ldr	w0, [x20]
	bl	_htons
	str	x0, [x19, #8]
	mov	x0, x26
	bl	_htons
	str	x0, [x19]
	add	x21, x21, #1
Lloh8:
	adrp	x8, _MLX4_NUM_TC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX4_NUM_TC@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	add	x28, x28, #32
	cmp	x21, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w26, [x22, x21, lsl #2]
	cbnz	w26, LBB0_5
	b	LBB0_4
LBB0_8:
Lloh11:
	adrp	x8, _MLX4_SET_PORT_SCHEDULER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX4_SET_PORT_SCHEDULER@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	orr	w2, w9, w8, lsl #8
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldr	w1, [x20]
Lloh14:
	adrp	x8, _MLX4_CMD_SET_PORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX4_CMD_SET_PORT@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
Lloh20:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh22:
	ldr	w6, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_mlx4_cmd
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_NUM_TC,4,2                ; @MLX4_NUM_TC
	.comm	_MLX4_RATELIMIT_DEFAULT,4,2     ; @MLX4_RATELIMIT_DEFAULT
	.comm	_MLX4_RATELIMIT_UNITS,4,2       ; @MLX4_RATELIMIT_UNITS
	.comm	_MLX4_SET_PORT_SCHEDULER,4,2    ; @MLX4_SET_PORT_SCHEDULER
	.comm	_MLX4_CMD_SET_PORT,4,2          ; @MLX4_CMD_SET_PORT
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ; @MLX4_CMD_TIME_CLASS_B
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
.subsections_via_symbols
