	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qp_attach
_qp_attach:                             ## @qp_attach
	.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
	movl	%r9d, %r15d
	movl	%r8d, %r14d
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_8
## %bb.2:
	movq	24(%rbp), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	20(%r13), %edx
	movq	%rbx, %rdi
	callq	_mlx4_slave_convert_port
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_mlx4_trans_to_dmfs_attach
	jmp	LBB0_9
LBB0_4:
	movl	16(%rbp), %r9d
	movq	_MLX4_PROT_ETH@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_7
## %bb.5:
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	20(%r13), %edx
	movq	%rbx, %rdi
	callq	_mlx4_slave_convert_port
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movl	%eax, 20(%r13)
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_qp_attach_common          ## TAILCALL
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_PROT_ETH,4,2              ## @MLX4_PROT_ETH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_qp_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qp_attach
_qp_attach:                             ; @qp_attach
	.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	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_8
; %bb.2:
	mov	x25, x7
	ldr	w2, [x21, #20]
	mov	x0, x23
	bl	_mlx4_slave_convert_port
	mov	x3, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x4, x20
	mov	x5, x19
	mov	x6, x25
	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	_mlx4_trans_to_dmfs_attach
LBB0_4:
	mov	x24, x6
Lloh0:
	adrp	x8, _MLX4_PROT_ETH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_PROT_ETH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_7
; %bb.5:
	ldr	w2, [x21, #20]
	mov	x0, x23
	bl	_mlx4_slave_convert_port
	mov	x3, x0
	tbnz	w0, #31, LBB0_9
; %bb.6:
	str	w3, [x21, #20]
LBB0_7:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	x5, x24
	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	_mlx4_qp_attach_common
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w3, w8
LBB0_9:
	mov	x0, x3
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_PROT_ETH,4,2              ; @MLX4_PROT_ETH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_qp_attach
.subsections_via_symbols
