	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swconfig_send_link
_swconfig_send_link:                    ## @swconfig_send_link
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movl	%edx, %esi
	callq	_nla_nest_start
	movq	%rax, %r14
	cmpq	$0, 40(%r15)
	je	LBB0_2
## %bb.1:
	movq	_SWITCH_LINK_FLAG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_17
LBB0_2:
	cmpq	$0, 32(%r15)
	je	LBB0_4
## %bb.3:
	movq	_SWITCH_LINK_FLAG_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_17
LBB0_4:
	cmpq	$0, 24(%r15)
	je	LBB0_6
## %bb.5:
	movq	_SWITCH_LINK_FLAG_ANEG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_17
LBB0_6:
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.7:
	movq	_SWITCH_LINK_FLAG_TX_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_17
LBB0_8:
	cmpq	$0, 8(%r15)
	je	LBB0_10
## %bb.9:
	movq	_SWITCH_LINK_FLAG_RX_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_17
LBB0_10:
	movq	_SWITCH_LINK_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	je	LBB0_11
LBB0_17:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_nla_nest_cancel
	movl	$-1, %eax
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%r15), %eax
	movq	_ADVERTISED_100baseT_Full@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.12:
	movq	_SWITCH_LINK_FLAG_EEE_100BASET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_17
## %bb.13:
	movl	(%r15), %eax
LBB0_14:
	movq	_ADVERTISED_1000baseT_Full@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_16
## %bb.15:
	movq	_SWITCH_LINK_FLAG_EEE_1000BASET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_put_flag
	testq	%rax, %rax
	jne	LBB0_17
LBB0_16:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_nla_nest_end
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_SWITCH_LINK_FLAG_LINK,4,2      ## @SWITCH_LINK_FLAG_LINK
	.comm	_SWITCH_LINK_FLAG_DUPLEX,4,2    ## @SWITCH_LINK_FLAG_DUPLEX
	.comm	_SWITCH_LINK_FLAG_ANEG,4,2      ## @SWITCH_LINK_FLAG_ANEG
	.comm	_SWITCH_LINK_FLAG_TX_FLOW,4,2   ## @SWITCH_LINK_FLAG_TX_FLOW
	.comm	_SWITCH_LINK_FLAG_RX_FLOW,4,2   ## @SWITCH_LINK_FLAG_RX_FLOW
	.comm	_SWITCH_LINK_SPEED,4,2          ## @SWITCH_LINK_SPEED
	.comm	_ADVERTISED_100baseT_Full,4,2   ## @ADVERTISED_100baseT_Full
	.comm	_SWITCH_LINK_FLAG_EEE_100BASET,4,2 ## @SWITCH_LINK_FLAG_EEE_100BASET
	.comm	_ADVERTISED_1000baseT_Full,4,2  ## @ADVERTISED_1000baseT_Full
	.comm	_SWITCH_LINK_FLAG_EEE_1000BASET,4,2 ## @SWITCH_LINK_FLAG_EEE_1000BASET
	.no_dead_strip	_swconfig_send_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swconfig_send_link
_swconfig_send_link:                    ; @swconfig_send_link
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x3
	mov	x1, x2
	mov	x19, x0
	bl	_nla_nest_start
	mov	x20, x0
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SWITCH_LINK_FLAG_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWITCH_LINK_FLAG_LINK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_11
LBB0_2:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _SWITCH_LINK_FLAG_DUPLEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SWITCH_LINK_FLAG_DUPLEX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_11
LBB0_4:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _SWITCH_LINK_FLAG_ANEG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SWITCH_LINK_FLAG_ANEG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_11
LBB0_6:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _SWITCH_LINK_FLAG_TX_FLOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SWITCH_LINK_FLAG_TX_FLOW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_11
LBB0_8:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _SWITCH_LINK_FLAG_RX_FLOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SWITCH_LINK_FLAG_RX_FLOW@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_11
LBB0_10:
Lloh15:
	adrp	x8, _SWITCH_LINK_SPEED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SWITCH_LINK_SPEED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	mov	x0, x19
	bl	_nla_put_u32
	cbz	x0, LBB0_13
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_nla_nest_cancel
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w8, [x21]
Lloh18:
	adrp	x9, _ADVERTISED_100baseT_Full@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ADVERTISED_100baseT_Full@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
Lloh21:
	adrp	x8, _SWITCH_LINK_FLAG_EEE_100BASET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SWITCH_LINK_FLAG_EEE_100BASET@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_11
; %bb.15:
	ldr	w8, [x21]
LBB0_16:
Lloh24:
	adrp	x9, _ADVERTISED_1000baseT_Full@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ADVERTISED_1000baseT_Full@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
Lloh27:
	adrp	x8, _SWITCH_LINK_FLAG_EEE_1000BASET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SWITCH_LINK_FLAG_EEE_1000BASET@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_put_flag
	cbnz	x0, LBB0_11
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_nla_nest_end
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SWITCH_LINK_FLAG_LINK,4,2      ; @SWITCH_LINK_FLAG_LINK
	.comm	_SWITCH_LINK_FLAG_DUPLEX,4,2    ; @SWITCH_LINK_FLAG_DUPLEX
	.comm	_SWITCH_LINK_FLAG_ANEG,4,2      ; @SWITCH_LINK_FLAG_ANEG
	.comm	_SWITCH_LINK_FLAG_TX_FLOW,4,2   ; @SWITCH_LINK_FLAG_TX_FLOW
	.comm	_SWITCH_LINK_FLAG_RX_FLOW,4,2   ; @SWITCH_LINK_FLAG_RX_FLOW
	.comm	_SWITCH_LINK_SPEED,4,2          ; @SWITCH_LINK_SPEED
	.comm	_ADVERTISED_100baseT_Full,4,2   ; @ADVERTISED_100baseT_Full
	.comm	_SWITCH_LINK_FLAG_EEE_100BASET,4,2 ; @SWITCH_LINK_FLAG_EEE_100BASET
	.comm	_ADVERTISED_1000baseT_Full,4,2  ; @ADVERTISED_1000baseT_Full
	.comm	_SWITCH_LINK_FLAG_EEE_1000BASET,4,2 ; @SWITCH_LINK_FLAG_EEE_1000BASET
	.no_dead_strip	_swconfig_send_link
.subsections_via_symbols
