	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sx_from_ptys_speed_duplex
_mlxsw_sx_from_ptys_speed_duplex:       ## @mlxsw_sx_from_ptys_speed_duplex
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SPEED_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DUPLEX_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%edi, %edi
	je	LBB0_6
## %bb.1:
	movq	_MLXSW_SX_PORT_LINK_MODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%edi, %edi
	jle	LBB0_6
## %bb.2:
	movq	_mlxsw_sx_port_link_mode@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%esi, (%rax,%rcx,8)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movl	4(%rax,%rcx,8), %r8d
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
LBB0_6:
	movl	%r8d, (%rdx)
	movl	%r9d, 4(%rdx)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_UNKNOWN,4,2              ## @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ## @DUPLEX_UNKNOWN
	.comm	_MLXSW_SX_PORT_LINK_MODE_LEN,4,2 ## @MLXSW_SX_PORT_LINK_MODE_LEN
	.comm	_mlxsw_sx_port_link_mode,8,3    ## @mlxsw_sx_port_link_mode
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.no_dead_strip	_mlxsw_sx_from_ptys_speed_duplex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sx_from_ptys_speed_duplex
_mlxsw_sx_from_ptys_speed_duplex:       ; @mlxsw_sx_from_ptys_speed_duplex
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SPEED_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPEED_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DUPLEX_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DUPLEX_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cbz	w0, LBB0_5
; %bb.1:
Lloh6:
	adrp	x10, _MLXSW_SX_PORT_LINK_MODE_LEN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MLXSW_SX_PORT_LINK_MODE_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.2:
Lloh9:
	adrp	x11, _mlxsw_sx_port_link_mode@GOTPAGE
Lloh10:
	ldr	x11, [x11, _mlxsw_sx_port_link_mode@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	add	x11, x11, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w12, [x11, #-4]
	tst	w12, w1
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_3
LBB0_5:
	stp	w8, w9, [x2]
	ret
LBB0_6:
	ldr	w8, [x11]
Lloh12:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [x2]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_UNKNOWN,4,2              ; @SPEED_UNKNOWN
	.comm	_DUPLEX_UNKNOWN,4,2             ; @DUPLEX_UNKNOWN
	.comm	_MLXSW_SX_PORT_LINK_MODE_LEN,4,2 ; @MLXSW_SX_PORT_LINK_MODE_LEN
	.comm	_mlxsw_sx_port_link_mode,8,3    ; @mlxsw_sx_port_link_mode
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.no_dead_strip	_mlxsw_sx_from_ptys_speed_duplex
.subsections_via_symbols
