	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_switch
_add_switch:                            ## @add_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_nlmsg_hdr
	movl	%eax, %edi
	callq	_nlmsg_data
	movq	%rax, %rbx
	movq	_tb@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_SWITCH_ATTR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_genlmsg_attrdata
	movl	%eax, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_genlmsg_attrlen
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movq	_tb@GOTPCREL(%rip), %r13
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_nla_parse
	testq	%rax, %rax
	js	LBB0_22
## %bb.1:
	movq	(%r13), %rax
	movq	_SWITCH_ATTR_DEV_NAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.2:
	callq	_nla_get_string
	movq	%rax, %r15
	movq	(%r13), %rax
	movq	_SWITCH_ATTR_ALIAS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_nla_get_string
	movq	%rax, %r12
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	16(%r14), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_22
LBB0_5:
	movl	$64, %edi
	callq	_swlib_alloc
	testq	%rax, %rax
	je	LBB0_22
## %bb.6:
	movq	%rax, %rbx
	movl	56(%rax), %edi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	movq	%r15, %rsi
	callq	_strncpy
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, 48(%rbx)
	movq	(%r13), %rax
	movq	_SWITCH_ATTR_ID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_nla_get_u32
	movq	%rax, 40(%rbx)
	movq	(%r13), %rax
LBB0_8:
	movq	_SWITCH_ATTR_NAME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_nla_get_string
	movq	%rax, %rdi
	callq	_strdup
	movq	%rax, 32(%rbx)
	movq	(%r13), %rax
LBB0_10:
	movq	_SWITCH_ATTR_PORTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_nla_get_u32
	movq	%rax, 24(%rbx)
	movq	(%r13), %rax
LBB0_12:
	movq	_SWITCH_ATTR_VLANS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_nla_get_u32
	movq	%rax, 16(%rbx)
	movq	(%r13), %rax
LBB0_14:
	movq	_SWITCH_ATTR_CPU_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_nla_get_u32
	movq	%rax, 8(%rbx)
	movq	(%r13), %rax
LBB0_16:
	movq	_SWITCH_ATTR_PORTMAP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_add_port_map
LBB0_18:
	cmpq	$0, 8(%r14)
	je	LBB0_19
## %bb.20:
	movq	(%r14), %rax
	jmp	LBB0_21
LBB0_19:
	leaq	8(%r14), %rax
LBB0_21:
	movq	%rbx, (%rax)
	movq	%rbx, (%r14)
	movq	_refcount@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_22:
	movq	_NL_SKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tb,8,3                         ## @tb
	.comm	_SWITCH_ATTR_MAX,4,2            ## @SWITCH_ATTR_MAX
	.comm	_SWITCH_ATTR_DEV_NAME,8,3       ## @SWITCH_ATTR_DEV_NAME
	.comm	_SWITCH_ATTR_ALIAS,8,3          ## @SWITCH_ATTR_ALIAS
	.comm	_IFNAMSIZ,8,3                   ## @IFNAMSIZ
	.comm	_SWITCH_ATTR_ID,8,3             ## @SWITCH_ATTR_ID
	.comm	_SWITCH_ATTR_NAME,8,3           ## @SWITCH_ATTR_NAME
	.comm	_SWITCH_ATTR_PORTS,8,3          ## @SWITCH_ATTR_PORTS
	.comm	_SWITCH_ATTR_VLANS,8,3          ## @SWITCH_ATTR_VLANS
	.comm	_SWITCH_ATTR_CPU_PORT,8,3       ## @SWITCH_ATTR_CPU_PORT
	.comm	_SWITCH_ATTR_PORTMAP,8,3        ## @SWITCH_ATTR_PORTMAP
	.comm	_refcount,4,2                   ## @refcount
	.comm	_NL_SKIP,4,2                    ## @NL_SKIP
	.no_dead_strip	_add_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_switch
_add_switch:                            ; @add_switch
	.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
	mov	x19, x1
	bl	_nlmsg_hdr
	bl	_nlmsg_data
	mov	x20, x0
Lloh0:
	adrp	x24, _tb@GOTPAGE
Lloh1:
	ldr	x24, [x24, _tb@GOTPAGEOFF]
	ldr	x21, [x24]
Lloh2:
	adrp	x8, _SWITCH_ATTR_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SWITCH_ATTR_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	w1, #0
	bl	_genlmsg_attrdata
	mov	x23, x0
	mov	x0, x20
	mov	w1, #0
	bl	_genlmsg_attrlen
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x4, #0
	bl	_nla_parse
	tbnz	x0, #63, LBB0_21
; %bb.1:
	ldr	x8, [x24]
Lloh5:
	adrp	x9, _SWITCH_ATTR_DEV_NAME@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SWITCH_ATTR_DEV_NAME@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_21
; %bb.2:
	bl	_nla_get_string
	mov	x21, x0
	ldr	x8, [x24]
Lloh8:
	adrp	x9, _SWITCH_ATTR_ALIAS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SWITCH_ATTR_ALIAS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	bl	_nla_get_string
	mov	x22, x0
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x1, [x19, #16]
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_21
LBB0_5:
	mov	w0, #64
	bl	_swlib_alloc
	cbz	x0, LBB0_21
; %bb.6:
	mov	x20, x0
	ldr	w0, [x0, #56]
Lloh11:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	sub	x2, x8, #1
	mov	x1, x21
	bl	_strncpy
	mov	x0, x22
	bl	_strdup
	str	x0, [x20, #48]
	ldr	x8, [x24]
Lloh14:
	adrp	x9, _SWITCH_ATTR_ID@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SWITCH_ATTR_ID@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_nla_get_u32
	str	x0, [x20, #40]
	ldr	x8, [x24]
LBB0_8:
Lloh17:
	adrp	x9, _SWITCH_ATTR_NAME@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SWITCH_ATTR_NAME@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_nla_get_string
	bl	_strdup
	str	x0, [x20, #32]
	ldr	x8, [x24]
LBB0_10:
Lloh20:
	adrp	x9, _SWITCH_ATTR_PORTS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SWITCH_ATTR_PORTS@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_nla_get_u32
	str	x0, [x20, #24]
	ldr	x8, [x24]
LBB0_12:
Lloh23:
	adrp	x9, _SWITCH_ATTR_VLANS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _SWITCH_ATTR_VLANS@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_nla_get_u32
	str	x0, [x20, #16]
	ldr	x8, [x24]
LBB0_14:
Lloh26:
	adrp	x9, _SWITCH_ATTR_CPU_PORT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SWITCH_ATTR_CPU_PORT@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_nla_get_u32
	str	x0, [x20, #8]
	ldr	x8, [x24]
LBB0_16:
Lloh29:
	adrp	x9, _SWITCH_ATTR_PORTMAP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SWITCH_ATTR_PORTMAP@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	ldr	x1, [x8, x9, lsl #3]
	cbz	x1, LBB0_18
; %bb.17:
	mov	x0, x20
	bl	_add_port_map
LBB0_18:
	mov	x8, x19
	ldr	x9, [x8, #8]!
	cbz	x9, LBB0_20
; %bb.19:
	ldr	x8, [x19]
LBB0_20:
	str	x20, [x8]
	str	x20, [x19]
Lloh32:
	adrp	x8, _refcount@GOTPAGE
Lloh33:
	ldr	x8, [x8, _refcount@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_21:
Lloh34:
	adrp	x8, _NL_SKIP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _NL_SKIP@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_tb,8,3                         ; @tb
	.comm	_SWITCH_ATTR_MAX,4,2            ; @SWITCH_ATTR_MAX
	.comm	_SWITCH_ATTR_DEV_NAME,8,3       ; @SWITCH_ATTR_DEV_NAME
	.comm	_SWITCH_ATTR_ALIAS,8,3          ; @SWITCH_ATTR_ALIAS
	.comm	_IFNAMSIZ,8,3                   ; @IFNAMSIZ
	.comm	_SWITCH_ATTR_ID,8,3             ; @SWITCH_ATTR_ID
	.comm	_SWITCH_ATTR_NAME,8,3           ; @SWITCH_ATTR_NAME
	.comm	_SWITCH_ATTR_PORTS,8,3          ; @SWITCH_ATTR_PORTS
	.comm	_SWITCH_ATTR_VLANS,8,3          ; @SWITCH_ATTR_VLANS
	.comm	_SWITCH_ATTR_CPU_PORT,8,3       ; @SWITCH_ATTR_CPU_PORT
	.comm	_SWITCH_ATTR_PORTMAP,8,3        ; @SWITCH_ATTR_PORTMAP
	.comm	_refcount,4,2                   ; @refcount
	.comm	_NL_SKIP,4,2                    ; @NL_SKIP
	.no_dead_strip	_add_switch
.subsections_via_symbols
