	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_settings
_set_settings:                          ## @set_settings
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_ethtool_cmd_speed
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	leaq	16(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r12d
	movq	_FW_PORT_CAP_ANEG@GOTPCREL(%rip), %rdx
	movq	8(%rbx), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testl	%r12d, (%rdx)
	je	LBB0_3
## %bb.5:
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.6:
	movq	%r13, %rdi
	callq	_speed_to_caps
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.7:
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	je	LBB0_1
## %bb.8:
	movq	_SPEED_10000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	je	LBB0_1
## %bb.9:
	movl	%eax, 20(%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	cmpq	%rcx, %rax
	jne	LBB0_1
## %bb.4:
	movq	%r13, %rdi
	callq	_speed_to_caps
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%r12d, %ecx
	jne	LBB0_14
	jmp	LBB0_1
LBB0_10:
	movq	%rdx, %r13
	movl	16(%rbx), %edi
	callq	_to_fw_linkcaps
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	testl	%eax, (%r12)
	je	LBB0_1
## %bb.11:
	movl	$0, 20(%r14)
	orl	(%r13), %eax
LBB0_12:
	movl	%eax, 24(%r14)
	movq	8(%rbx), %rax
	movq	%rax, 32(%r14)
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	8(%r14), %rdi
	movl	(%rdi), %esi
	movl	(%r14), %edx
	movq	%r12, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_t4_link_start                  ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FW_PORT_CAP_ANEG,4,2           ## @FW_PORT_CAP_ANEG
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.no_dead_strip	_set_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_settings
_set_settings:                          ; @set_settings
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_ethtool_cmd_speed
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.1:
	mov	x23, x0
	add	x22, x19, #16
	ldr	w25, [x22]
Lloh3:
	adrp	x24, _FW_PORT_CAP_ANEG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FW_PORT_CAP_ANEG@GOTPAGEOFF]
	ldr	w10, [x24]
	ldr	x8, [x21, #8]
Lloh5:
	adrp	x9, _AUTONEG_DISABLE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	tst	w10, w25
	b.eq	LBB0_5
; %bb.2:
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x23
	bl	_speed_to_caps
	ldr	w8, [x22]
	and	w8, w8, w0
Lloh8:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _SPEED_10000@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SPEED_10000@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	w8, #0
	ccmp	x23, x9, #4, ne
	ccmp	x23, x10, #4, ne
	b.eq	LBB0_12
; %bb.4:
	mov	w8, #0
	str	w0, [x19, #20]
	b	LBB0_10
LBB0_5:
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.6:
	mov	x0, x23
	bl	_speed_to_caps
	tst	w0, w25
	b.eq	LBB0_12
; %bb.7:
	mov	w0, #0
	b	LBB0_13
LBB0_8:
	ldr	w0, [x21, #16]
	bl	_to_fw_linkcaps
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_12
; %bb.9:
	str	wzr, [x19, #20]
	ldr	w8, [x24]
	orr	w8, w8, w0
LBB0_10:
	str	w8, [x19, #24]
	ldr	x8, [x21, #8]
	str	x8, [x19, #32]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x0, [x19, #8]
	ldr	w1, [x0]
	ldr	w2, [x19]
	mov	x3, x22
	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	_t4_link_start
LBB0_12:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FW_PORT_CAP_ANEG,4,2           ; @FW_PORT_CAP_ANEG
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.no_dead_strip	_set_settings
.subsections_via_symbols
