	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netlink_bind
_netlink_bind:                          ## @netlink_bind
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movq	%r12, %rdi
	callq	_sock_net
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_nlk_sk
	movq	%rax, %rsi
	movq	(%r14), %rax
	movq	_AF_NETLINK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	cmpl	$0, 8(%r14)
	je	LBB0_7
## %bb.4:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_NL_NONROOT_RECV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_netlink_capable
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_netlink_realloc_groups
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_17
LBB0_7:
	movq	(%rsi), %rax
	movq	16(%r14), %rdx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	cmpq	%rax, %rdx
	je	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	movq	%rsi, %rbx
	movq	%r15, %rsi
	callq	_netlink_insert
	jmp	LBB0_12
LBB0_11:
	movq	%r13, %rdi
	movq	%rsi, %rbx
	callq	_netlink_autobind
LBB0_12:
	movq	%rbx, %rsi
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_13:
	cmpl	$0, 8(%r14)
	je	LBB0_14
LBB0_16:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rsi, %r13
	callq	_netlink_table_grab
	movq	16(%r13), %r15
	movl	8(%r14), %edi
	callq	_hweight32
	addq	%rax, %r15
	movq	8(%r13), %rax
	movl	(%rax), %edi
	callq	_hweight32
	subq	%rax, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_netlink_update_subscriptions
	movq	8(%r13), %rax
	movl	8(%r14), %ecx
	movl	%ecx, (%rax)
	movq	%r12, %rdi
	callq	_netlink_update_listeners
	xorl	%eax, %eax
	callq	_netlink_table_ungrab
	jmp	LBB0_17
LBB0_14:
	movq	8(%rsi), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	cmpl	$0, (%rax)
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_NETLINK,8,3                 ## @AF_NETLINK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL_NONROOT_RECV,4,2            ## @NL_NONROOT_RECV
	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_netlink_bind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netlink_bind
_netlink_bind:                          ; @netlink_bind
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x22, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_sock_net
	mov	x23, x0
	mov	x0, x19
	bl	_nlk_sk
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AF_NETLINK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AF_NETLINK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _NL_NONROOT_RECV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NL_NONROOT_RECV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_netlink_capable
	cbz	w0, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_netlink_realloc_groups
	cbnz	w0, LBB0_8
LBB0_4:
	ldr	x8, [x21]
	ldr	x2, [x20, #16]
	cbz	x8, LBB0_10
; %bb.5:
	cmp	x2, x8
	b.eq	LBB0_13
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
LBB0_10:
	cbz	x2, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x23
	bl	_netlink_insert
	cbnz	w0, LBB0_8
	b	LBB0_13
LBB0_12:
	mov	x0, x22
	bl	_netlink_autobind
	cbnz	w0, LBB0_8
LBB0_13:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_16
LBB0_14:
	bl	_netlink_table_grab
	ldr	x22, [x21, #16]
	ldr	w0, [x20, #8]
	bl	_hweight32
	add	x22, x0, x22
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_hweight32
	sub	x1, x22, x0
	mov	x0, x19
	bl	_netlink_update_subscriptions
	ldr	x8, [x21, #8]
	ldr	w9, [x20, #8]
	str	w9, [x8]
	mov	x0, x19
	bl	_netlink_update_listeners
	bl	_netlink_table_ungrab
LBB0_15:
	mov	w0, #0
	b	LBB0_8
LBB0_16:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_15
; %bb.17:
	ldr	w8, [x8]
	cbnz	w8, LBB0_14
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_NETLINK,8,3                 ; @AF_NETLINK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL_NONROOT_RECV,4,2            ; @NL_NONROOT_RECV
	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_netlink_bind
.subsections_via_symbols
