	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swconfig_set_attr
_swconfig_set_attr:                     ## @swconfig_set_attr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_EINVAL@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	subl	(%r14), %r12d
	movq	_CAP_NET_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rbx
	movq	%r13, %rdi
	callq	_swconfig_get_dev
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_swconfig_lookup_attr
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	%rax, %r14
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.6:
	movq	%r14, -48(%rbp)
	movl	8(%r14), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_20
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	movq	(%r13), %rax
	movq	_SWITCH_ATTR_OP_VALUE_STR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_20
## %bb.11:
	callq	_nla_data
	movl	%eax, -56(%rbp)
	jmp	LBB0_18
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r12d
	jmp	LBB0_21
LBB0_3:
	xorl	%r12d, %r12d
	subl	(%r14), %r12d
	jmp	LBB0_21
LBB0_12:
	movq	48(%r15), %rdi
	movq	%rdi, -64(%rbp)
	movl	(%r15), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r13), %rax
	movq	_SWITCH_ATTR_OP_VALUE_PORTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.13:
	movl	(%r15), %ecx
	leaq	-80(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_swconfig_parse_ports
	jmp	LBB0_16
LBB0_14:
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	%rdi, -72(%rbp)
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r13), %rax
	movq	_SWITCH_ATTR_OP_VALUE_LINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	testl	%esi, %esi
	je	LBB0_17
## %bb.15:
	movq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_swconfig_parse_link
LBB0_16:
	testl	%eax, %eax
	jns	LBB0_18
	jmp	LBB0_19
LBB0_8:
	movq	(%r13), %rax
	movq	_SWITCH_ATTR_OP_VALUE_INT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_20
## %bb.9:
	callq	_nla_get_u32
	movl	%eax, -52(%rbp)
	jmp	LBB0_18
LBB0_17:
	movl	$0, -80(%rbp)
LBB0_18:
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*(%r14)
LBB0_19:
	movl	%eax, %r12d
LBB0_20:
	movq	%r15, %rdi
	callq	_swconfig_put_dev
LBB0_21:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_18
	.long	L0_0_set_14
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CAP_NET_ADMIN,4,2              ## @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_SWITCH_ATTR_OP_VALUE_INT,8,3   ## @SWITCH_ATTR_OP_VALUE_INT
	.comm	_SWITCH_ATTR_OP_VALUE_STR,8,3   ## @SWITCH_ATTR_OP_VALUE_STR
	.comm	_SWITCH_ATTR_OP_VALUE_PORTS,8,3 ## @SWITCH_ATTR_OP_VALUE_PORTS
	.comm	_SWITCH_ATTR_OP_VALUE_LINK,8,3  ## @SWITCH_ATTR_OP_VALUE_LINK
	.no_dead_strip	_swconfig_set_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swconfig_set_attr
_swconfig_set_attr:                     ; @swconfig_set_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x20, _EINVAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
	ldr	w22, [x20]
Lloh2:
	adrp	x8, _CAP_NET_ADMIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAP_NET_ADMIN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_8
; %bb.1:
	mov	x0, x23
	bl	_swconfig_get_dev
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	neg	w22, w22
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x23
	bl	_swconfig_lookup_attr
	cbz	x0, LBB0_19
; %bb.3:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_19
; %bb.4:
	str	x20, [sp, #40]
	ldr	w8, [x20, #8]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_19
; %bb.5:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	x8, [x23]
Lloh7:
	adrp	x9, _SWITCH_ATTR_OP_VALUE_STR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SWITCH_ATTR_OP_VALUE_STR@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	cbz	w0, LBB0_19
; %bb.7:
	bl	_nla_data
	str	w0, [sp, #32]
	b	LBB0_17
LBB0_8:
Lloh10:
	adrp	x8, _EPERM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_9:
	ldr	w8, [x20]
	neg	w22, w8
	b	LBB0_20
LBB0_10:
	ldr	x0, [x19, #48]
	str	x0, [sp, #24]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	x8, [x23]
Lloh13:
	adrp	x9, _SWITCH_ATTR_OP_VALUE_PORTS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SWITCH_ATTR_OP_VALUE_PORTS@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	cbz	w1, LBB0_16
; %bb.11:
	ldr	w3, [x19]
	add	x2, sp, #8
	mov	x0, x21
	bl	_swconfig_parse_ports
	tbz	w0, #31, LBB0_17
	b	LBB0_18
LBB0_12:
	add	x0, x19, #8
	str	x0, [sp, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x23]
Lloh16:
	adrp	x9, _SWITCH_ATTR_OP_VALUE_LINK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SWITCH_ATTR_OP_VALUE_LINK@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	cbz	w1, LBB0_16
; %bb.13:
	ldr	x2, [sp, #16]
	mov	x0, x21
	bl	_swconfig_parse_link
	tbz	w0, #31, LBB0_17
	b	LBB0_18
LBB0_14:
	ldr	x8, [x23]
Lloh19:
	adrp	x9, _SWITCH_ATTR_OP_VALUE_INT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SWITCH_ATTR_OP_VALUE_INT@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	cbz	w0, LBB0_19
; %bb.15:
	bl	_nla_get_u32
	str	w0, [sp, #36]
	b	LBB0_17
LBB0_16:
	str	wzr, [sp, #8]
LBB0_17:
	ldr	x8, [x20]
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_18:
	mov	x22, x0
LBB0_19:
	mov	x0, x19
	bl	_swconfig_put_dev
LBB0_20:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_17-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CAP_NET_ADMIN,4,2              ; @CAP_NET_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_SWITCH_ATTR_OP_VALUE_INT,8,3   ; @SWITCH_ATTR_OP_VALUE_INT
	.comm	_SWITCH_ATTR_OP_VALUE_STR,8,3   ; @SWITCH_ATTR_OP_VALUE_STR
	.comm	_SWITCH_ATTR_OP_VALUE_PORTS,8,3 ; @SWITCH_ATTR_OP_VALUE_PORTS
	.comm	_SWITCH_ATTR_OP_VALUE_LINK,8,3  ; @SWITCH_ATTR_OP_VALUE_LINK
	.no_dead_strip	_swconfig_set_attr
.subsections_via_symbols
