	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netlink_connect
_netlink_connect:                       ## @netlink_connect
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_nlk_sk
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	_AF_UNSPEC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_NETLINK_UNCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_11
LBB0_2:
	movq	_AF_NETLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_NL_NONROOT_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_netlink_capable
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	cmpl	$0, 16(%r14)
	je	LBB0_9
LBB0_10:
	movq	_NETLINK_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	8(%r15), %rax
	movq	%rax, 8(%r14)
	movq	(%r15), %rdi
	callq	_ffs
	movq	%rax, (%r14)
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_netlink_autobind
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_10
LBB0_7:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNSPEC,8,3                  ## @AF_UNSPEC
	.comm	_NETLINK_UNCONNECTED,4,2        ## @NETLINK_UNCONNECTED
	.comm	_AF_NETLINK,8,3                 ## @AF_NETLINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL_NONROOT_SEND,4,2            ## @NL_NONROOT_SEND
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_NETLINK_CONNECTED,4,2          ## @NETLINK_CONNECTED
	.no_dead_strip	_netlink_connect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netlink_connect
_netlink_connect:                       ; @netlink_connect
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x22, x0
	ldr	x21, [x0]
	mov	x0, x21
	bl	_nlk_sk
	mov	x19, x0
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_UNSPEC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
Lloh3:
	adrp	x8, _NETLINK_UNCONNECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETLINK_UNCONNECTED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21]
	stp	xzr, xzr, [x19]
	b	LBB0_9
LBB0_2:
Lloh6:
	adrp	x9, _AF_NETLINK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AF_NETLINK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	cbz	x8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _NL_NONROOT_SEND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL_NONROOT_SEND@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_netlink_capable
	cbz	w0, LBB0_11
LBB0_5:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
LBB0_6:
Lloh12:
	adrp	x8, _NETLINK_CONNECTED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETLINK_CONNECTED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x21]
	ldp	x0, x8, [x20]
	str	x8, [x19, #8]
	bl	_ffs
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x22
	bl	_netlink_autobind
	cbnz	w0, LBB0_9
	b	LBB0_6
LBB0_11:
Lloh17:
	adrp	x8, _EPERM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNSPEC,8,3                  ; @AF_UNSPEC
	.comm	_NETLINK_UNCONNECTED,4,2        ; @NETLINK_UNCONNECTED
	.comm	_AF_NETLINK,8,3                 ; @AF_NETLINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL_NONROOT_SEND,4,2            ; @NL_NONROOT_SEND
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_NETLINK_CONNECTED,4,2          ; @NETLINK_CONNECTED
	.no_dead_strip	_netlink_connect
.subsections_via_symbols
