	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swconfig_lookup_attr
_swconfig_lookup_attr:                  ## @swconfig_lookup_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	8(%rsi), %edi
	callq	_nlmsg_data
	movq	(%rbx), %rcx
	movq	_SWITCH_ATTR_OP_ID@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	cmpl	$0, (%rcx,%rdx,4)
	je	LBB0_19
## %bb.1:
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_21
## %bb.2:
	movl	$9, %ecx
	btl	%eax, %ecx
	jb	LBB0_5
## %bb.3:
	movl	$18, %ecx
	btl	%eax, %ecx
	jae	LBB0_4
## %bb.8:
	movq	32(%r15), %r13
	movq	_default_port@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	_SWITCH_ATTR_OP_PORT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_19
## %bb.9:
	callq	_nla_get_u32
	movq	%rax, 8(%r14)
	cmpq	24(%r15), %rax
	jae	LBB0_19
## %bb.10:
	testq	%r13, %r13
	je	LBB0_19
## %bb.11:
	addq	$16, %r15
	jmp	LBB0_12
LBB0_5:
	movq	32(%r15), %r13
	movq	_default_vlan@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	_SWITCH_ATTR_OP_VLAN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	testl	%edi, %edi
	je	LBB0_19
## %bb.6:
	callq	_nla_get_u32
	movq	%rax, 8(%r14)
	cmpq	40(%r15), %rax
	jae	LBB0_19
## %bb.7:
	addq	$8, %r15
	addq	$16, %r13
	jmp	LBB0_12
LBB0_4:
	movq	32(%r15), %r13
	addq	$32, %r13
	movq	_default_global@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_12:
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_nla_get_u32
	movq	%rax, %rbx
	movq	_SWITCH_ATTR_DEFAULTS_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%ebx, %eax
	jbe	LBB0_13
## %bb.16:
	cmpl	%ebx, (%r13)
	jbe	LBB0_19
## %bb.17:
	movl	%ebx, %eax
	shlq	$3, %rax
	addq	8(%r13), %rax
	cmpq	$0, (%rax)
	jne	LBB0_19
	jmp	LBB0_20
LBB0_13:
	subl	%eax, %ebx
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jae	LBB0_19
## %bb.14:
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_19
## %bb.15:
	movl	%ebx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rax
	cmpq	$0, (%rax)
	jne	LBB0_19
	jmp	LBB0_20
LBB0_21:
	movl	$1, %edi
	callq	_WARN_ON
LBB0_19:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	xorl	%eax, %eax
LBB0_20:
	movq	%rax, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SWITCH_ATTR_OP_ID,8,3          ## @SWITCH_ATTR_OP_ID
	.comm	_default_global,8,3             ## @default_global
	.comm	_default_vlan,8,3               ## @default_vlan
	.comm	_SWITCH_ATTR_OP_VLAN,8,3        ## @SWITCH_ATTR_OP_VLAN
	.comm	_default_port,8,3               ## @default_port
	.comm	_SWITCH_ATTR_OP_PORT,8,3        ## @SWITCH_ATTR_OP_PORT
	.comm	_SWITCH_ATTR_DEFAULTS_OFFSET,4,2 ## @SWITCH_ATTR_DEFAULTS_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"attribute lookup failed\n"

	.no_dead_strip	_swconfig_lookup_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swconfig_lookup_attr
_swconfig_lookup_attr:                  ; @swconfig_lookup_attr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x1, #8]
	bl	_nlmsg_data
	ldr	x8, [x21]
Lloh0:
	adrp	x24, _SWITCH_ATTR_OP_ID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SWITCH_ATTR_OP_ID@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_18
; %bb.1:
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_17
; %bb.2:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #9
	tst	w8, w9
	b.ne	LBB0_7
; %bb.3:
	mov	w9, #18
	tst	w8, w9
	b.eq	LBB0_10
; %bb.4:
	ldr	x25, [x20, #32]
Lloh2:
	adrp	x8, _default_port@GOTPAGE
Lloh3:
	ldr	x8, [x8, _default_port@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _SWITCH_ATTR_OP_PORT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SWITCH_ATTR_OP_PORT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	cbz	w0, LBB0_18
; %bb.5:
	bl	_nla_get_u32
	str	x0, [x19, #8]
	ldr	x8, [x20, #24]
	cmp	x0, x8
	ccmp	x25, #0, #4, lo
	b.eq	LBB0_18
; %bb.6:
	add	x20, x20, #16
	b	LBB0_11
LBB0_7:
	ldr	x25, [x20, #32]
Lloh8:
	adrp	x8, _default_vlan@GOTPAGE
Lloh9:
	ldr	x8, [x8, _default_vlan@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _SWITCH_ATTR_OP_VLAN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SWITCH_ATTR_OP_VLAN@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	cbz	w0, LBB0_18
; %bb.8:
	bl	_nla_get_u32
	str	x0, [x19, #8]
	ldr	x8, [x20, #40]
	cmp	x0, x8
	b.hs	LBB0_18
; %bb.9:
	add	x20, x20, #8
	add	x25, x25, #16
	b	LBB0_11
LBB0_10:
	ldr	x8, [x20, #32]
	add	x25, x8, #32
Lloh14:
	adrp	x8, _default_global@GOTPAGE
Lloh15:
	ldr	x8, [x8, _default_global@GOTPAGEOFF]
Lloh16:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x23, x0
LBB0_11:
	ldr	x8, [x21]
	ldr	x9, [x24]
	ldr	w0, [x8, x9, lsl #2]
	bl	_nla_get_u32
Lloh17:
	adrp	x8, _SWITCH_ATTR_DEFAULTS_OFFSET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SWITCH_ATTR_DEFAULTS_OFFSET@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_14
; %bb.12:
	ldr	w8, [x25]
	cmp	w8, w0
	b.ls	LBB0_18
; %bb.13:
	ldr	x8, [x25, #8]
	add	x0, x8, w0, uxtw #3
	ldr	x8, [x0]
	cbnz	x8, LBB0_18
	b	LBB0_19
LBB0_14:
	sub	w21, w0, w8
	cmp	w21, w23
	b.hs	LBB0_18
; %bb.15:
	mov	x0, x21
	mov	x1, x20
	bl	_test_bit
	cbz	w0, LBB0_18
; %bb.16:
	add	x0, x22, w21, uxtw #3
	ldr	x8, [x0]
	cbnz	x8, LBB0_18
	b	LBB0_19
LBB0_17:
	mov	w0, #1
	bl	_WARN_ON
LBB0_18:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, #0
LBB0_19:
	str	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_SWITCH_ATTR_OP_ID,8,3          ; @SWITCH_ATTR_OP_ID
	.comm	_default_global,8,3             ; @default_global
	.comm	_default_vlan,8,3               ; @default_vlan
	.comm	_SWITCH_ATTR_OP_VLAN,8,3        ; @SWITCH_ATTR_OP_VLAN
	.comm	_default_port,8,3               ; @default_port
	.comm	_SWITCH_ATTR_OP_PORT,8,3        ; @SWITCH_ATTR_OP_PORT
	.comm	_SWITCH_ATTR_DEFAULTS_OFFSET,4,2 ; @SWITCH_ATTR_DEFAULTS_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"attribute lookup failed\n"

	.no_dead_strip	_swconfig_lookup_attr
.subsections_via_symbols
