	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swconfig_get_attr
_swconfig_get_attr:                     ## @swconfig_get_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	8(%rsi), %edi
	callq	_nlmsg_data
	movq	$0, -48(%rbp)
	movq	_EINVAL@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	subl	(%r13), %r14d
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_swconfig_get_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-96(%rbp), %r13
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_swconfig_lookup_attr
	testq	%rax, %rax
	je	LBB0_27
## %bb.3:
	movq	%rax, %r13
	cmpq	$0, (%rax)
	je	LBB0_27
## %bb.4:
	movl	8(%r13), %eax
	cmpl	$130, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$129, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_9
## %bb.6:
	movq	32(%rbx), %rdi
	movq	%rdi, -80(%rbp)
	movl	(%rbx), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_1:
	subl	(%r13), %r12d
	jmp	LBB0_28
LBB0_7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%rdi, -96(%rbp)
	xorl	%esi, %esi
	movl	$4, %edx
LBB0_8:
	callq	_memset
LBB0_9:
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	*(%r13)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
## %bb.10:
	movq	_NLMSG_GOODSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nlmsg_new
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	_switch_fam@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	xorl	%r8d, %r8d
	movl	-72(%rbp), %r9d                 ## 4-byte Reload
	callq	_genlmsg_put
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
LBB0_25:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:
	movq	%rbx, %rdi
	callq	_nlmsg_free
	jmp	LBB0_27
LBB0_11:
	xorl	%r14d, %r14d
LBB0_27:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_swconfig_put_dev
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	testl	%r14d, %r14d
	cmovnel	%r14d, %r12d
LBB0_28:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_24
## %bb.14:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmpq	*%rax
LBB0_19:
	movq	_SWITCH_ATTR_OP_VALUE_STR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-88(%rbp), %edx
	movq	%rbx, %rdi
	callq	_nla_put_string
	jmp	LBB0_16
LBB0_24:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	xorl	%r14d, %r14d
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_25
LBB0_20:
	movq	_SWITCH_ATTR_OP_VALUE_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	leaq	-96(%rbp), %rcx
	movq	%r15, %rsi
	callq	_swconfig_send_ports
	movq	-48(%rbp), %rbx
	testl	%eax, %eax
	jns	LBB0_17
## %bb.21:
	movl	%eax, %r14d
	testq	%rbx, %rbx
	jne	LBB0_26
	jmp	LBB0_27
LBB0_22:
	movq	_SWITCH_ATTR_OP_VALUE_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-96(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_swconfig_send_link
	testl	%eax, %eax
	jns	LBB0_17
## %bb.23:
	movl	%eax, %r14d
	jmp	LBB0_26
LBB0_15:
	movq	_SWITCH_ATTR_OP_VALUE_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-84(%rbp), %edx
	movq	%rbx, %rdi
	callq	_nla_put_u32
LBB0_16:
	testl	%eax, %eax
	jne	LBB0_26
LBB0_17:
	movq	%rbx, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_genlmsg_end
	movq	-48(%rbp), %rbx
	movl	(%rbx), %r14d
	testl	%r14d, %r14d
	js	LBB0_26
## %bb.18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_swconfig_put_dev
	movq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_genlmsg_reply
	movl	%eax, %r12d
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_22
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NLMSG_GOODSIZE,4,2             ## @NLMSG_GOODSIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_switch_fam,4,2                 ## @switch_fam
	.comm	_SWITCH_ATTR_OP_VALUE_INT,4,2   ## @SWITCH_ATTR_OP_VALUE_INT
	.comm	_SWITCH_ATTR_OP_VALUE_STR,4,2   ## @SWITCH_ATTR_OP_VALUE_STR
	.comm	_SWITCH_ATTR_OP_VALUE_PORTS,4,2 ## @SWITCH_ATTR_OP_VALUE_PORTS
	.comm	_SWITCH_ATTR_OP_VALUE_LINK,4,2  ## @SWITCH_ATTR_OP_VALUE_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid type in attribute\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_swconfig_get_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swconfig_get_attr
_swconfig_get_attr:                     ; @swconfig_get_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	ldr	w0, [x1, #8]
	bl	_nlmsg_data
	str	xzr, [sp, #24]
Lloh0:
	adrp	x25, _EINVAL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
	ldr	w21, [x25]
	ldr	w22, [x0]
	mov	x0, x20
	bl	_swconfig_get_dev
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	neg	w23, w21
	mov	x0, sp
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_swconfig_lookup_attr
	cbz	x0, LBB0_15
; %bb.2:
	mov	x24, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.3:
	ldr	w8, [x24, #8]
	cmp	w8, #130
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.ne	LBB0_9
; %bb.5:
	ldr	x0, [x19, #32]
	str	x0, [sp, #16]
	ldr	w8, [x19]
	lsl	w2, w8, #2
	mov	w1, #0
	b	LBB0_8
LBB0_6:
	ldr	w8, [x25]
	neg	w0, w8
	b	LBB0_16
LBB0_7:
	add	x0, x19, #8
	str	x0, [sp]
	mov	w1, #0
	mov	w2, #4
LBB0_8:
	bl	_memset
LBB0_9:
	ldr	x8, [x24]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x24
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_15
; %bb.10:
Lloh2:
	adrp	x8, _NLMSG_GOODSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NLMSG_GOODSIZE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_nlmsg_new
	str	x0, [sp, #24]
	cbz	x0, LBB0_14
; %bb.11:
	mov	x21, x0
	ldp	w2, w1, [x20]
Lloh8:
	adrp	x3, _switch_fam@GOTPAGE
Lloh9:
	ldr	x3, [x3, _switch_fam@GOTPAGEOFF]
	mov	w4, #0
	mov	x5, x22
	bl	_genlmsg_put
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_17
LBB0_12:
	mov	w23, #0
LBB0_13:
	mov	x0, x21
	bl	_nlmsg_free
	b	LBB0_15
LBB0_14:
	mov	w23, #0
LBB0_15:
	mov	x0, x19
	bl	_swconfig_put_dev
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w23, #0
	csneg	w0, w23, w8, ne
LBB0_16:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	ldr	w8, [x24, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_20
; %bb.18:
Lloh13:
	adrp	x9, lJTI0_0@PAGE
Lloh14:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_19
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_19:
Lloh15:
	adrp	x8, _SWITCH_ATTR_OP_VALUE_STR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SWITCH_ATTR_OP_VALUE_STR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x21
	bl	_nla_put_string
	cbnz	w0, LBB0_12
	b	LBB0_26
LBB0_20:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x25]
	neg	w23, w8
	b	LBB0_13
LBB0_21:
Lloh20:
	adrp	x8, _SWITCH_ATTR_OP_VALUE_PORTS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SWITCH_ATTR_OP_VALUE_PORTS@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	add	x0, sp, #24
	mov	x3, sp
	mov	x1, x20
	bl	_swconfig_send_ports
	ldr	x21, [sp, #24]
	tbz	w0, #31, LBB0_26
; %bb.22:
	mov	x23, x0
	cbnz	x21, LBB0_13
	b	LBB0_15
LBB0_23:
Lloh23:
	adrp	x8, _SWITCH_ATTR_OP_VALUE_LINK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SWITCH_ATTR_OP_VALUE_LINK@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	ldr	x3, [sp]
	mov	x0, x21
	mov	x1, x20
	bl	_swconfig_send_link
	tbz	w0, #31, LBB0_26
; %bb.24:
	mov	x23, x0
	b	LBB0_13
LBB0_25:
Lloh26:
	adrp	x8, _SWITCH_ATTR_OP_VALUE_INT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SWITCH_ATTR_OP_VALUE_INT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x21
	bl	_nla_put_u32
	cbnz	w0, LBB0_12
LBB0_26:
	mov	x0, x21
	mov	x1, x22
	bl	_genlmsg_end
	ldr	x21, [sp, #24]
	ldr	w23, [x21]
	tbnz	w23, #31, LBB0_13
; %bb.27:
	mov	x0, x19
	bl	_swconfig_put_dev
	ldr	x0, [sp, #24]
	mov	x1, x20
	bl	_genlmsg_reply
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_19-LBB0_19)>>2
	.byte	(LBB0_21-LBB0_19)>>2
	.byte	(LBB0_23-LBB0_19)>>2
	.byte	(LBB0_25-LBB0_19)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NLMSG_GOODSIZE,4,2             ; @NLMSG_GOODSIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_switch_fam,4,2                 ; @switch_fam
	.comm	_SWITCH_ATTR_OP_VALUE_INT,4,2   ; @SWITCH_ATTR_OP_VALUE_INT
	.comm	_SWITCH_ATTR_OP_VALUE_STR,4,2   ; @SWITCH_ATTR_OP_VALUE_STR
	.comm	_SWITCH_ATTR_OP_VALUE_PORTS,4,2 ; @SWITCH_ATTR_OP_VALUE_PORTS
	.comm	_SWITCH_ATTR_OP_VALUE_LINK,4,2  ; @SWITCH_ATTR_OP_VALUE_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid type in attribute\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_swconfig_get_attr
.subsections_via_symbols
