	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_port_set_eth_ptys         ## -- Begin function mlx5_port_set_eth_ptys
	.p2align	4, 0x90
_mlx5_port_set_eth_ptys:                ## @mlx5_port_set_eth_ptys
	.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
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ptys_reg@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_MLX5_ST_SZ_DW
	movl	%eax, %r13d
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	movl	%r15d, %ebx
	callq	_MLX5_ST_SZ_DW
	movl	%eax, %r15d
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	leaq	-84(%rbp), %rsi
	leaq	-60(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_mlx5_port_query_eth_autoneg
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	cmpl	$0, -60(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_3:
	shll	$2, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	_ptys_reg@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_local_port@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	movl	$1, %ecx
	callq	_MLX5_SET
	movl	(%r14), %edi
	movl	-64(%rbp), %edx
	movq	%r12, %rsi
	movl	%ebx, %ecx
	callq	_MLX5_SET
	movl	(%r14), %edi
	movq	_proto_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MLX5_PTYS_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	callq	_MLX5_SET
	movl	(%r14), %edi
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.5:
	movq	_eth_proto_admin@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_ext_eth_proto_admin@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %edx
	movq	%r12, %rsi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_MLX5_SET
	shll	$2, %r13d
	movq	_MLX5_REG_PTYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%r15d, %edx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, %r8d
	pushq	$1
	pushq	$0
	callq	_mlx5_core_access_reg
	addq	$16, %rsp
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ptys_reg,4,2                   ## @ptys_reg
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_local_port,4,2                 ## @local_port
	.comm	_proto_mask,4,2                 ## @proto_mask
	.comm	_MLX5_PTYS_EN,4,2               ## @MLX5_PTYS_EN
	.comm	_ext_eth_proto_admin,4,2        ## @ext_eth_proto_admin
	.comm	_eth_proto_admin,4,2            ## @eth_proto_admin
	.comm	_MLX5_REG_PTYS,4,2              ## @MLX5_REG_PTYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_port_set_eth_ptys         ; -- Begin function mlx5_port_set_eth_ptys
	.p2align	2
_mlx5_port_set_eth_ptys:                ; @mlx5_port_set_eth_ptys
	.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, #32
	mov	x21, x3
	mov	x20, x2
	mov	x24, 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	x27, _ptys_reg@GOTPAGE
Lloh4:
	ldr	x27, [x27, _ptys_reg@GOTPAGEOFF]
	ldr	w0, [x27]
	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
	ldr	w0, [x27]
	bl	_MLX5_ST_SZ_DW
	mov	x26, x0
	mov	w8, w0
	lsl	x8, x8, #2
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x25, x9, x8
	mov	sp, x25
	sub	x1, x29, #100
	sub	x2, x29, #96
	sub	x3, x29, #92
	mov	x0, x19
	bl	_mlx5_port_query_eth_autoneg
	cbz	w24, LBB0_3
; %bb.1:
	ldur	w8, [x29, #-96]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	lsl	w26, w26, #2
	mov	x0, x25
	mov	w1, #0
	mov	x2, x26
	bl	_memset
	ldr	w0, [x27]
Lloh12:
	adrp	x8, _local_port@GOTPAGE
Lloh13:
	ldr	x8, [x8, _local_port@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x25
	mov	w3, #1
	bl	_MLX5_SET
	ldr	w0, [x27]
	ldur	w2, [x29, #-92]
	mov	x1, x25
	mov	x3, x24
	bl	_MLX5_SET
	ldr	w0, [x27]
Lloh15:
	adrp	x8, _proto_mask@GOTPAGE
Lloh16:
	ldr	x8, [x8, _proto_mask@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _MLX5_PTYS_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MLX5_PTYS_EN@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x1, x25
	bl	_MLX5_SET
Lloh21:
	adrp	x8, _eth_proto_admin@GOTPAGE
Lloh22:
	ldr	x8, [x8, _eth_proto_admin@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh23:
	adrp	x9, _ext_eth_proto_admin@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ext_eth_proto_admin@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	x1, x25
	mov	x3, x20
	bl	_MLX5_SET
	lsl	w4, w22, #2
Lloh25:
	adrp	x8, _MLX5_REG_PTYS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLX5_REG_PTYS@GOTPAGEOFF]
Lloh27:
	ldr	w5, [x8]
	mov	x0, x19
	mov	x1, x25
	mov	x2, x26
	mov	x3, x23
	mov	w6, #0
	mov	w7, #1
	bl	_mlx5_core_access_reg
LBB0_4:
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ptys_reg,4,2                   ; @ptys_reg
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_local_port,4,2                 ; @local_port
	.comm	_proto_mask,4,2                 ; @proto_mask
	.comm	_MLX5_PTYS_EN,4,2               ; @MLX5_PTYS_EN
	.comm	_ext_eth_proto_admin,4,2        ; @ext_eth_proto_admin
	.comm	_eth_proto_admin,4,2            ; @eth_proto_admin
	.comm	_MLX5_REG_PTYS,4,2              ; @MLX5_REG_PTYS
.subsections_via_symbols
