	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netlink_create
_netlink_create:                        ## @netlink_create
	.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
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rsi)
	movq	(%rsi), %rax
	movq	_SOCK_RAW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_ESOCKTNOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	testl	%r12d, %r12d
	js	LBB0_6
## %bb.5:
	movq	_MAX_LINKS@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jle	LBB0_6
## %bb.7:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_netlink_lock_table
	movq	_nl_table@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	%r12d, %eax
	leaq	(%rax,%rax,2), %r15
	cmpq	$0, 16(%rcx,%r15,8)
	je	LBB0_10
## %bb.8:
	movq	8(%rcx,%r15,8), %rdi
	callq	_try_module_get
	movq	(%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	8(%rcx,%r15,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_6:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	(%rcx,%r15,8), %r15
	xorl	%eax, %eax
	callq	_netlink_unlock_table
	testl	%ebx, %ebx
	js	LBB0_15
## %bb.12:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movl	%r12d, %ecx
	callq	___netlink_create
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	_netlink_proto@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_sock_prot_inuse_add
	xorl	%eax, %eax
	callq	_local_bh_enable
	movl	8(%r13), %edi
	callq	_nlk_sk
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	jmp	LBB0_15
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_module_put
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_SS_UNCONNECTED,4,2             ## @SS_UNCONNECTED
	.comm	_SOCK_RAW,8,3                   ## @SOCK_RAW
	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
	.comm	_ESOCKTNOSUPPORT,4,2            ## @ESOCKTNOSUPPORT
	.comm	_MAX_LINKS,4,2                  ## @MAX_LINKS
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_nl_table,8,3                   ## @nl_table
	.comm	_netlink_proto,4,2              ## @netlink_proto
	.comm	_PF_NETLINK,4,2                 ## @PF_NETLINK
	.no_dead_strip	_netlink_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netlink_create
_netlink_create:                        ; @netlink_create
	.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
Lloh0:
	adrp	x8, _SS_UNCONNECTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #12]
	ldr	x8, [x1]
Lloh3:
	adrp	x9, _SOCK_RAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SOCK_RAW@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _SOCK_DGRAM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SOCK_DGRAM@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_6
; %bb.1:
	mov	x21, x2
	tbnz	w2, #31, LBB0_7
; %bb.2:
Lloh9:
	adrp	x8, _MAX_LINKS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_LINKS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w21
	b.le	LBB0_7
; %bb.3:
	mov	x19, x1
	mov	x20, x0
	bl	_netlink_lock_table
Lloh12:
	adrp	x22, _nl_table@GOTPAGE
Lloh13:
	ldr	x22, [x22, _nl_table@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	w24, w21
	mov	w9, #24
	umaddl	x9, w21, w9, x8
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_10
; %bb.4:
	mov	w9, #24
	madd	x8, x24, x9, x8
	ldr	x0, [x8, #8]
	bl	_try_module_get
	ldr	x8, [x22]
	cbz	x0, LBB0_10
; %bb.5:
	mov	w22, #0
	mov	w9, #24
	madd	x9, x24, x9, x8
	ldr	x23, [x9, #8]
	b	LBB0_11
LBB0_6:
Lloh14:
	adrp	x8, _ESOCKTNOSUPPORT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ESOCKTNOSUPPORT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x22
	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_10:
	mov	x23, #0
Lloh18:
	adrp	x9, _EPROTONOSUPPORT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EPROTONOSUPPORT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	neg	w22, w9
LBB0_11:
	mov	w9, #24
	mul	x9, x24, x9
	ldr	x24, [x8, x9]
	bl	_netlink_unlock_table
	tbnz	w22, #31, LBB0_9
; %bb.12:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x21
	bl	___netlink_create
	mov	x22, x0
	tbnz	w0, #31, LBB0_14
; %bb.13:
	bl	_local_bh_disable
Lloh21:
	adrp	x1, _netlink_proto@GOTPAGE
Lloh22:
	ldr	x1, [x1, _netlink_proto@GOTPAGEOFF]
	mov	x0, x20
	mov	w2, #1
	bl	_sock_prot_inuse_add
	bl	_local_bh_enable
	ldr	w0, [x19, #8]
	bl	_nlk_sk
	str	x23, [x0]
	b	LBB0_9
LBB0_14:
	mov	x0, x23
	bl	_module_put
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SS_UNCONNECTED,4,2             ; @SS_UNCONNECTED
	.comm	_SOCK_RAW,8,3                   ; @SOCK_RAW
	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
	.comm	_ESOCKTNOSUPPORT,4,2            ; @ESOCKTNOSUPPORT
	.comm	_MAX_LINKS,4,2                  ; @MAX_LINKS
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_nl_table,8,3                   ; @nl_table
	.comm	_netlink_proto,4,2              ; @netlink_proto
	.comm	_PF_NETLINK,4,2                 ; @PF_NETLINK
	.no_dead_strip	_netlink_create
.subsections_via_symbols
