	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swconfig_send_switch
_swconfig_send_switch:                  ## @swconfig_send_switch
	.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	%r8, %r14
	movl	%ecx, %r8d
	movq	%rdi, %rbx
	movq	_SWITCH_CMD_NEW_ATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_switch_fam@GOTPCREL(%rip), %rcx
	callq	_genlmsg_put
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_19
## %bb.1:
	movq	_SWITCH_ATTR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_18
## %bb.2:
	movq	_SWITCH_ATTR_DEV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	40(%r14), %rdx
	movq	%rbx, %rdi
	callq	_nla_put_string
	testq	%rax, %rax
	jne	LBB0_18
## %bb.3:
	movq	_SWITCH_ATTR_ALIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%r14), %rdx
	movq	%rbx, %rdi
	callq	_nla_put_string
	testq	%rax, %rax
	jne	LBB0_18
## %bb.4:
	movq	_SWITCH_ATTR_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%r14), %rdx
	movq	%rbx, %rdi
	callq	_nla_put_string
	testq	%rax, %rax
	jne	LBB0_18
## %bb.5:
	movq	_SWITCH_ATTR_VLANS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%rbx, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_18
## %bb.6:
	movq	_SWITCH_ATTR_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movq	%rbx, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	jne	LBB0_18
## %bb.7:
	movq	_SWITCH_ATTR_CPU_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r14), %edx
	movq	%rbx, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	je	LBB0_8
LBB0_18:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_genlmsg_cancel
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SWITCH_ATTR_PORTMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_nest_start
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_18
## %bb.9:
	cmpl	$0, 8(%r14)
	jle	LBB0_17
## %bb.10:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_nla_nest_end
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	movslq	8(%r14), %rax
	addq	$16, %r12
	cmpq	%rax, %r13
	jge	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_SWITCH_ATTR_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_nest_start
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r14), %rax
	movq	8(%rax,%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_SWITCH_PORTMAP_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nla_put_string
	testq	%rax, %rax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_SWITCH_PORTMAP_VIRT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r14), %rax
	movl	(%rax,%r12), %edx
	movq	%rbx, %rdi
	callq	_nla_put_u32
	testq	%rax, %rax
	je	LBB0_15
	jmp	LBB0_18
LBB0_17:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nla_nest_end
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_genlmsg_end
	movl	(%rbx), %eax
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_switch_fam,4,2                 ## @switch_fam
	.comm	_SWITCH_CMD_NEW_ATTR,4,2        ## @SWITCH_CMD_NEW_ATTR
	.comm	_SWITCH_ATTR_ID,4,2             ## @SWITCH_ATTR_ID
	.comm	_SWITCH_ATTR_DEV_NAME,4,2       ## @SWITCH_ATTR_DEV_NAME
	.comm	_SWITCH_ATTR_ALIAS,4,2          ## @SWITCH_ATTR_ALIAS
	.comm	_SWITCH_ATTR_NAME,4,2           ## @SWITCH_ATTR_NAME
	.comm	_SWITCH_ATTR_VLANS,4,2          ## @SWITCH_ATTR_VLANS
	.comm	_SWITCH_ATTR_PORTS,4,2          ## @SWITCH_ATTR_PORTS
	.comm	_SWITCH_ATTR_CPU_PORT,4,2       ## @SWITCH_ATTR_CPU_PORT
	.comm	_SWITCH_ATTR_PORTMAP,4,2        ## @SWITCH_ATTR_PORTMAP
	.comm	_SWITCH_PORTMAP_SEGMENT,4,2     ## @SWITCH_PORTMAP_SEGMENT
	.comm	_SWITCH_PORTMAP_VIRT,4,2        ## @SWITCH_PORTMAP_VIRT
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_swconfig_send_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swconfig_send_switch
_swconfig_send_switch:                  ; @swconfig_send_switch
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x4, x3
	mov	x19, x0
Lloh0:
	adrp	x8, _SWITCH_CMD_NEW_ATTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SWITCH_CMD_NEW_ATTR@GOTPAGEOFF]
Lloh2:
	ldr	w5, [x8]
Lloh3:
	adrp	x3, _switch_fam@GOTPAGE
Lloh4:
	ldr	x3, [x3, _switch_fam@GOTPAGEOFF]
	bl	_genlmsg_put
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_10
LBB0_2:
Lloh5:
	adrp	x8, _SWITCH_ATTR_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SWITCH_ATTR_ID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_nla_put_u32
	cbnz	x0, LBB0_9
; %bb.3:
Lloh8:
	adrp	x8, _SWITCH_ATTR_DEV_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SWITCH_ATTR_DEV_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x2, [x20, #40]
	mov	x0, x19
	bl	_nla_put_string
	cbnz	x0, LBB0_9
; %bb.4:
Lloh11:
	adrp	x8, _SWITCH_ATTR_ALIAS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SWITCH_ATTR_ALIAS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x2, [x20, #32]
	mov	x0, x19
	bl	_nla_put_string
	cbnz	x0, LBB0_9
; %bb.5:
Lloh14:
	adrp	x8, _SWITCH_ATTR_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SWITCH_ATTR_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x2, [x20, #24]
	mov	x0, x19
	bl	_nla_put_string
	cbnz	x0, LBB0_9
; %bb.6:
Lloh17:
	adrp	x8, _SWITCH_ATTR_VLANS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SWITCH_ATTR_VLANS@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_nla_put_u32
	cbnz	x0, LBB0_9
; %bb.7:
Lloh20:
	adrp	x24, _SWITCH_ATTR_PORTS@GOTPAGE
Lloh21:
	ldr	x24, [x24, _SWITCH_ATTR_PORTS@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x20, #8]
	mov	x0, x19
	bl	_nla_put_u32
	cbnz	x0, LBB0_9
; %bb.8:
Lloh22:
	adrp	x8, _SWITCH_ATTR_CPU_PORT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SWITCH_ATTR_CPU_PORT@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x20, #12]
	mov	x0, x19
	bl	_nla_put_u32
	cbz	x0, LBB0_11
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	bl	_genlmsg_cancel
Lloh25:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh28:
	adrp	x8, _SWITCH_ATTR_PORTMAP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _SWITCH_ATTR_PORTMAP@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nla_nest_start
	cbz	x0, LBB0_9
; %bb.12:
	mov	x22, x0
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.13:
	mov	x25, #0
	mov	x26, #0
Lloh31:
	adrp	x27, _SWITCH_PORTMAP_SEGMENT@GOTPAGE
Lloh32:
	ldr	x27, [x27, _SWITCH_PORTMAP_SEGMENT@GOTPAGEOFF]
Lloh33:
	adrp	x28, _SWITCH_PORTMAP_VIRT@GOTPAGE
Lloh34:
	ldr	x28, [x28, _SWITCH_PORTMAP_VIRT@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_nla_nest_end
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x20, #8]
	add	x25, x25, #16
	cmp	x26, x8
	b.ge	LBB0_20
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_nla_nest_start
	cbz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x23, x0
	ldr	x8, [x20, #16]
	add	x8, x8, x25
	ldr	x2, [x8, #8]
	cbz	x2, LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_nla_put_string
	cbnz	x0, LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x28]
	ldr	x8, [x20, #16]
	ldr	w2, [x8, x25]
	mov	x0, x19
	bl	_nla_put_u32
	cbz	x0, LBB0_14
	b	LBB0_9
LBB0_20:
	mov	x0, x19
	mov	x1, x22
	bl	_nla_nest_end
	mov	x0, x19
	mov	x1, x21
	bl	_genlmsg_end
	ldr	w0, [x19]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_switch_fam,4,2                 ; @switch_fam
	.comm	_SWITCH_CMD_NEW_ATTR,4,2        ; @SWITCH_CMD_NEW_ATTR
	.comm	_SWITCH_ATTR_ID,4,2             ; @SWITCH_ATTR_ID
	.comm	_SWITCH_ATTR_DEV_NAME,4,2       ; @SWITCH_ATTR_DEV_NAME
	.comm	_SWITCH_ATTR_ALIAS,4,2          ; @SWITCH_ATTR_ALIAS
	.comm	_SWITCH_ATTR_NAME,4,2           ; @SWITCH_ATTR_NAME
	.comm	_SWITCH_ATTR_VLANS,4,2          ; @SWITCH_ATTR_VLANS
	.comm	_SWITCH_ATTR_PORTS,4,2          ; @SWITCH_ATTR_PORTS
	.comm	_SWITCH_ATTR_CPU_PORT,4,2       ; @SWITCH_ATTR_CPU_PORT
	.comm	_SWITCH_ATTR_PORTMAP,4,2        ; @SWITCH_ATTR_PORTMAP
	.comm	_SWITCH_PORTMAP_SEGMENT,4,2     ; @SWITCH_PORTMAP_SEGMENT
	.comm	_SWITCH_PORTMAP_VIRT,4,2        ; @SWITCH_PORTMAP_VIRT
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_swconfig_send_switch
.subsections_via_symbols
