	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swlib_priv_init
_swlib_priv_init:                       ## @swlib_priv_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_nl_socket_alloc
	movq	_handle@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %edi
	callq	_genl_connect
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_8:
	callq	_DPRINTF
	xorl	%eax, %eax
	callq	_swlib_priv_free
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	(%r14), %edi
	movq	_cache@GOTPCREL(%rip), %r14
	movq	%r14, %rsi
	callq	_genl_ctrl_alloc_cache
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_genl_ctrl_search_by_name
	movl	%eax, %ecx
	movq	_family@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.7:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_handle,4,2                     ## @handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to create handle\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to connect to generic netlink\n"

	.comm	_cache,4,2                      ## @cache
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate netlink cache\n"

L_.str.3:                               ## @.str.3
	.asciz	"switch"

	.comm	_family,4,2                     ## @family
L_.str.4:                               ## @.str.4
	.asciz	"Switch API not present\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_swlib_priv_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swlib_priv_init
_swlib_priv_init:                       ; @swlib_priv_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_nl_socket_alloc
Lloh0:
	adrp	x19, _handle@GOTPAGE
Lloh1:
	ldr	x19, [x19, _handle@GOTPAGEOFF]
	str	w0, [x19]
	cbz	w0, LBB0_3
; %bb.1:
	bl	_genl_connect
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_DPRINTF
	bl	_swlib_priv_free
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x19]
Lloh9:
	adrp	x19, _cache@GOTPAGE
Lloh10:
	ldr	x19, [x19, _cache@GOTPAGEOFF]
	mov	x1, x19
	bl	_genl_ctrl_alloc_cache
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w0, [x19]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_genl_ctrl_search_by_name
Lloh13:
	adrp	x8, _family@GOTPAGE
Lloh14:
	ldr	x8, [x8, _family@GOTPAGEOFF]
Lloh15:
	str	w0, [x8]
	cbz	w0, LBB0_10
; %bb.8:
	mov	w0, #0
	b	LBB0_5
LBB0_9:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_10:
Lloh18:
	adrp	x0, l_.str.4@PAGE
Lloh19:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_handle,4,2                     ; @handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to create handle\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to connect to generic netlink\n"

	.comm	_cache,4,2                      ; @cache
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate netlink cache\n"

l_.str.3:                               ; @.str.3
	.asciz	"switch"

	.comm	_family,4,2                     ; @family
l_.str.4:                               ; @.str.4
	.asciz	"Switch API not present\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_swlib_priv_init
.subsections_via_symbols
