	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_addsock                    ## -- Begin function svc_addsock
	.p2align	4, 0x90
_svc_addsock:                           ## @svc_addsock
	.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	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %eax
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rsi
	movl	%eax, %edi
	callq	_sockfd_lookup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	8(%rax), %rax
	movq	(%rax), %rcx
	movq	_PF_INET@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.3:
	movq	_PF_INET6@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.4:
	movq	_EAFNOSUPPORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movl	-44(%rbp), %eax
	jmp	LBB0_21
LBB0_6:
	movq	8(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_9:
	movq	(%rbx), %rax
	movq	_SS_UNCONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_11
## %bb.10:
	movq	_EISCONN@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_15
LBB0_22:
	movq	%rbx, %rdi
	callq	_sockfd_put
	movl	-44(%rbp), %eax
	jmp	LBB0_21
LBB0_11:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_12
## %bb.16:
	movq	_SVC_SOCK_DEFAULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_svc_setup_socket
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	movq	%rax, %r13
	movl	8(%rax), %edi
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_kernel_getsockname
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movl	-52(%rbp), %edx
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_svc_xprt_set_local
LBB0_19:
	movq	_XPT_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	addq	$4, %rsi
	callq	_clear_bit
	movq	%r12, %rdi
	callq	_spin_lock_bh
	leaq	4(%r12), %rsi
	movq	%r13, %rdi
	callq	_list_add
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movq	%r13, %rdi
	callq	_svc_xprt_received
	movl	$0, -44(%rbp)
	jmp	LBB0_20
LBB0_12:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
LBB0_13:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_module_put
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_22
LBB0_15:
	xorl	%r13d, %r13d
LBB0_20:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_svc_one_sock_name
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,8,3                    ## @PF_INET
	.comm	_PF_INET6,8,3                   ## @PF_INET6
	.comm	_EAFNOSUPPORT,4,2               ## @EAFNOSUPPORT
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_SS_UNCONNECTED,8,3             ## @SS_UNCONNECTED
	.comm	_EISCONN,4,2                    ## @EISCONN
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SVC_SOCK_DEFAULTS,4,2          ## @SVC_SOCK_DEFAULTS
	.comm	_XPT_TEMP,4,2                   ## @XPT_TEMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_addsock                    ; -- Begin function svc_addsock
	.p2align	2
_svc_addsock:                           ; @svc_addsock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x8, x1
	mov	x21, x0
	str	wzr, [sp, #12]
	add	x1, sp, #12
	mov	x0, x8
	bl	_sockfd_lookup
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0, #8]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _PF_INET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _PF_INET6@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PF_INET6@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x8, #8]
Lloh6:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _IPPROTO_UDP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _IPPROTO_UDP@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_7
; %bb.3:
	ldr	x8, [x22]
Lloh12:
	adrp	x9, _SS_UNCONNECTED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SS_UNCONNECTED@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.4:
Lloh15:
	adrp	x8, _EISCONN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EISCONN@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	ldr	w0, [sp, #12]
	b	LBB0_19
LBB0_6:
Lloh17:
	adrp	x8, _EAFNOSUPPORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAFNOSUPPORT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh19:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	cbz	w8, LBB0_17
LBB0_9:
	mov	x0, x22
	bl	_sockfd_put
	ldr	w0, [sp, #12]
	b	LBB0_19
LBB0_10:
Lloh21:
	adrp	x24, _THIS_MODULE@GOTPAGE
Lloh22:
	ldr	x24, [x24, _THIS_MODULE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_try_module_get
	cbz	w0, LBB0_15
; %bb.11:
Lloh23:
	adrp	x8, _SVC_SOCK_DEFAULTS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SVC_SOCK_DEFAULTS@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_svc_setup_socket
	cbz	x0, LBB0_16
; %bb.12:
	mov	x23, x0
	ldr	w0, [x0, #8]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_kernel_getsockname
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	w2, [sp, #4]
	add	x1, sp, #8
	mov	x0, x23
	bl	_svc_xprt_set_local
LBB0_14:
Lloh26:
	adrp	x8, _XPT_TEMP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XPT_TEMP@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	add	x1, x23, #4
	bl	_clear_bit
	mov	x0, x21
	bl	_spin_lock_bh
	add	x1, x21, #4
	mov	x0, x23
	bl	_list_add
	mov	x0, x21
	bl	_spin_unlock_bh
	mov	x0, x23
	bl	_svc_xprt_received
	str	wzr, [sp, #12]
	b	LBB0_18
LBB0_15:
Lloh29:
	adrp	x8, _ENOENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
LBB0_16:
	ldr	w0, [x24]
	bl	_module_put
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_9
LBB0_17:
	mov	x23, #0
LBB0_18:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_svc_one_sock_name
LBB0_19:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,8,3                    ; @PF_INET
	.comm	_PF_INET6,8,3                   ; @PF_INET6
	.comm	_EAFNOSUPPORT,4,2               ; @EAFNOSUPPORT
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_SS_UNCONNECTED,8,3             ; @SS_UNCONNECTED
	.comm	_EISCONN,4,2                    ; @EISCONN
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SVC_SOCK_DEFAULTS,4,2          ; @SVC_SOCK_DEFAULTS
	.comm	_XPT_TEMP,4,2                   ; @XPT_TEMP
.subsections_via_symbols
