	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rocker_cmd_get_port_settings_ethtool_proc
_rocker_cmd_get_port_settings_ethtool_proc: ## @rocker_cmd_get_port_settings_ethtool_proc
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ROCKER_TLV_CMD_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	leal	1(%r13), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_ROCKER_TLV_CMD_PORT_SETTINGS_MAX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	incl	%eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_rocker_tlv_parse_desc
	movq	_ROCKER_TLV_CMD_INFO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx,%rax,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_rocker_tlv_parse_nested
	movq	_ROCKER_TLV_CMD_PORT_SETTINGS_SPEED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	_ROCKER_TLV_CMD_PORT_SETTINGS_DUPLEX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cmpq	$0, (%r12,%rax,8)
	je	LBB0_1
## %bb.4:
	movq	_ROCKER_TLV_CMD_PORT_SETTINGS_AUTONEG@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	cmpq	$0, (%r12,%rax,8)
	je	LBB0_1
## %bb.5:
	callq	_rocker_tlv_get_u32
	movl	%eax, %r15d
	movq	(%rbx), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_rocker_tlv_get_u8
	movq	%rax, %r14
	movq	(%r13), %rax
	movq	(%r12,%rax,8), %rdi
	callq	_rocker_tlv_get_u8
	movq	%rax, %r12
	movq	_supported@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_zero_link_mode
	movl	(%r13), %esi
	movq	_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ethtool_link_ksettings_add_link_mode
	movl	$255, (%rbx)
	movq	_PORT_TP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	%r15d, 12(%rbx)
	testq	%r14, %r14
	jne	LBB0_6
## %bb.7:
	movq	_DUPLEX_HALF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	testq	%r12, %r12
	jne	LBB0_9
## %bb.10:
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ROCKER_TLV_CMD_MAX,4,2         ## @ROCKER_TLV_CMD_MAX
	.comm	_ROCKER_TLV_CMD_PORT_SETTINGS_MAX,4,2 ## @ROCKER_TLV_CMD_PORT_SETTINGS_MAX
	.comm	_ROCKER_TLV_CMD_INFO,8,3        ## @ROCKER_TLV_CMD_INFO
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ROCKER_TLV_CMD_PORT_SETTINGS_SPEED,8,3 ## @ROCKER_TLV_CMD_PORT_SETTINGS_SPEED
	.comm	_ROCKER_TLV_CMD_PORT_SETTINGS_DUPLEX,8,3 ## @ROCKER_TLV_CMD_PORT_SETTINGS_DUPLEX
	.comm	_ROCKER_TLV_CMD_PORT_SETTINGS_AUTONEG,8,3 ## @ROCKER_TLV_CMD_PORT_SETTINGS_AUTONEG
	.comm	_supported,4,2                  ## @supported
	.comm	_TP,4,2                         ## @TP
	.comm	_PORT_TP,4,2                    ## @PORT_TP
	.comm	_DUPLEX_FULL,4,2                ## @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ## @DUPLEX_HALF
	.comm	_AUTONEG_ENABLE,4,2             ## @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ## @AUTONEG_DISABLE
	.no_dead_strip	_rocker_cmd_get_port_settings_ethtool_proc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rocker_cmd_get_port_settings_ethtool_proc
_rocker_cmd_get_port_settings_ethtool_proc: ; @rocker_cmd_get_port_settings_ethtool_proc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x2, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _ROCKER_TLV_CMD_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROCKER_TLV_CMD_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w1, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh8:
	adrp	x22, _ROCKER_TLV_CMD_PORT_SETTINGS_MAX@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ROCKER_TLV_CMD_PORT_SETTINGS_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x21
	bl	_rocker_tlv_parse_desc
Lloh12:
	adrp	x8, _ROCKER_TLV_CMD_INFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ROCKER_TLV_CMD_INFO@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x2, [x21, x8, lsl #3]
	cbz	x2, LBB0_5
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_rocker_tlv_parse_nested
Lloh15:
	adrp	x8, _ROCKER_TLV_CMD_PORT_SETTINGS_SPEED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ROCKER_TLV_CMD_PORT_SETTINGS_SPEED@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_5
; %bb.2:
Lloh18:
	adrp	x22, _ROCKER_TLV_CMD_PORT_SETTINGS_DUPLEX@GOTPAGE
Lloh19:
	ldr	x22, [x22, _ROCKER_TLV_CMD_PORT_SETTINGS_DUPLEX@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_5
; %bb.3:
Lloh20:
	adrp	x23, _ROCKER_TLV_CMD_PORT_SETTINGS_AUTONEG@GOTPAGE
Lloh21:
	ldr	x23, [x23, _ROCKER_TLV_CMD_PORT_SETTINGS_AUTONEG@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x20, x8, lsl #3]
	cbz	x8, LBB0_5
; %bb.4:
	bl	_rocker_tlv_get_u32
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x0, [x20, x8, lsl #3]
	bl	_rocker_tlv_get_u8
	mov	x22, x0
	ldr	x8, [x23]
	ldr	x0, [x20, x8, lsl #3]
	bl	_rocker_tlv_get_u8
	mov	x20, x0
Lloh22:
	adrp	x23, _supported@GOTPAGE
Lloh23:
	ldr	x23, [x23, _supported@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ethtool_link_ksettings_zero_link_mode
	ldr	w1, [x23]
Lloh24:
	adrp	x8, _TP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TP@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ethtool_link_ksettings_add_link_mode
	mov	w0, #0
	mov	w8, #255
	str	w8, [x19]
Lloh27:
	adrp	x8, _PORT_TP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PORT_TP@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	stp	w21, w8, [x19, #12]
Lloh30:
	adrp	x8, _DUPLEX_FULL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DUPLEX_FULL@GOTPAGEOFF]
Lloh32:
	adrp	x9, _DUPLEX_HALF@GOTPAGE
Lloh33:
	ldr	x9, [x9, _DUPLEX_HALF@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh34:
	adrp	x8, _AUTONEG_ENABLE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh36:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_6
LBB0_5:
Lloh38:
	adrp	x8, _EIO@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ROCKER_TLV_CMD_MAX,4,2         ; @ROCKER_TLV_CMD_MAX
	.comm	_ROCKER_TLV_CMD_PORT_SETTINGS_MAX,4,2 ; @ROCKER_TLV_CMD_PORT_SETTINGS_MAX
	.comm	_ROCKER_TLV_CMD_INFO,8,3        ; @ROCKER_TLV_CMD_INFO
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ROCKER_TLV_CMD_PORT_SETTINGS_SPEED,8,3 ; @ROCKER_TLV_CMD_PORT_SETTINGS_SPEED
	.comm	_ROCKER_TLV_CMD_PORT_SETTINGS_DUPLEX,8,3 ; @ROCKER_TLV_CMD_PORT_SETTINGS_DUPLEX
	.comm	_ROCKER_TLV_CMD_PORT_SETTINGS_AUTONEG,8,3 ; @ROCKER_TLV_CMD_PORT_SETTINGS_AUTONEG
	.comm	_supported,4,2                  ; @supported
	.comm	_TP,4,2                         ; @TP
	.comm	_PORT_TP,4,2                    ; @PORT_TP
	.comm	_DUPLEX_FULL,4,2                ; @DUPLEX_FULL
	.comm	_DUPLEX_HALF,4,2                ; @DUPLEX_HALF
	.comm	_AUTONEG_ENABLE,4,2             ; @AUTONEG_ENABLE
	.comm	_AUTONEG_DISABLE,4,2            ; @AUTONEG_DISABLE
	.no_dead_strip	_rocker_cmd_get_port_settings_ethtool_proc
.subsections_via_symbols
