	.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	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %r12
	leaq	(%rax,%rax,2), %r13
	shlq	$4, %r13
	movl	8(%r12,%r13), %ecx
	movq	_SUPPORTED_Autoneg@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	leaq	(%r12,%r13), %r14
	addq	$8, %r14
	movq	(%rsi), %rax
	movq	_AUTONEG_DISABLE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
## %bb.4:
	movq	8(%rbx), %rdi
	movl	20(%rbx), %esi
	callq	_speed_duplex_to_caps
	testl	%eax, (%r14)
	je	LBB0_8
## %bb.5:
	movq	8(%rbx), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, 16(%r12,%r13)
	movl	20(%rbx), %eax
	movl	%eax, 40(%r12,%r13)
	movl	$0, 24(%r12,%r13)
	movq	(%rbx), %rax
	jmp	LBB0_10
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_ADVERTISED_MASK@GOTPCREL(%rip), %rsi
	movl	16(%rbx), %edx
	andl	(%rsi), %edx
	leal	-1(%rdx), %esi
	testl	%esi, %edx
	cmovnel	%ecx, %edx
	andl	%ecx, %edx
	movl	%edx, 16(%rbx)
	je	LBB0_8
## %bb.9:
	movq	_SPEED_INVALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%r12,%r13)
	movq	_DUPLEX_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%r12,%r13)
	movq	_ADVERTISED_Autoneg@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 24(%r12,%r13)
LBB0_10:
	movq	%rax, 32(%r12,%r13)
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%r12,%r13), %esi
	movl	4(%r12,%r13), %edi
	movq	%r14, %rdx
	callq	_t1_link_start
	jmp	LBB0_12
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUPPORTED_Autoneg,4,2          ## @SUPPORTED_Autoneg
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_AUTONEG_DISABLE,8,3            ## @AUTONEG_DISABLE
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ADVERTISED_MASK,4,2            ## @ADVERTISED_MASK
	.comm	_SPEED_INVALID,8,3              ## @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ## @DUPLEX_INVALID
	.comm	_ADVERTISED_Autoneg,4,2         ## @ADVERTISED_Autoneg
	.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	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
	ldp	x22, x8, [x0]
	ldr	x23, [x8]
	mov	w8, #48
	madd	x19, x22, x8, x23
	ldr	w9, [x19, #8]!
Lloh0:
	adrp	x8, _SUPPORTED_Autoneg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUPPORTED_Autoneg@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.1:
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh3:
	adrp	x10, _AUTONEG_DISABLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AUTONEG_DISABLE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_6
; %bb.2:
	ldr	x0, [x21, #8]
	ldr	w1, [x21, #20]
	bl	_speed_duplex_to_caps
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.3:
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.4:
	mov	w9, #48
	madd	x9, x22, x9, x23
	str	x8, [x9, #16]
	ldr	w8, [x21, #20]
	str	w8, [x9, #40]
	str	wzr, [x9, #24]
	ldr	x8, [x21]
	b	LBB0_8
LBB0_5:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh11:
	adrp	x10, _ADVERTISED_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ADVERTISED_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	ldr	w11, [x21, #16]
	and	w10, w11, w10
	sub	w11, w10, #1
	tst	w10, w11
	csel	w10, w10, w9, eq
	ands	w9, w10, w9
	str	w9, [x21, #16]
	b.eq	LBB0_10
; %bb.7:
Lloh14:
	adrp	x10, _SPEED_INVALID@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SPEED_INVALID@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	mov	w11, #48
	madd	x11, x22, x11, x23
	str	x10, [x11, #16]
Lloh17:
	adrp	x10, _DUPLEX_INVALID@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DUPLEX_INVALID@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	str	w10, [x11, #40]
Lloh20:
	adrp	x10, _ADVERTISED_Autoneg@GOTPAGE
Lloh21:
	ldr	x10, [x10, _ADVERTISED_Autoneg@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x11, #24]
LBB0_8:
	mov	w9, #48
	madd	x9, x22, x9, x23
	str	x8, [x9, #32]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_12
; %bb.9:
	mov	w8, #48
	madd	x8, x22, x8, x23
	ldp	w1, w0, [x8]
	mov	x2, x19
	bl	_t1_link_start
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SUPPORTED_Autoneg,4,2          ; @SUPPORTED_Autoneg
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_AUTONEG_DISABLE,8,3            ; @AUTONEG_DISABLE
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ADVERTISED_MASK,4,2            ; @ADVERTISED_MASK
	.comm	_SPEED_INVALID,8,3              ; @SPEED_INVALID
	.comm	_DUPLEX_INVALID,4,2             ; @DUPLEX_INVALID
	.comm	_ADVERTISED_Autoneg,4,2         ; @ADVERTISED_Autoneg
	.no_dead_strip	_set_settings
.subsections_via_symbols
