	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function svc_setup_socket
_svc_setup_socket:                      ## @svc_setup_socket
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_SVC_SOCK_ANONYMOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %r13
	movl	(%r12), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	andl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.4:
	movl	24(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	28(%r13), %r14d
	movq	%r13, %rdi
	callq	_inet_sk
	movl	(%rax), %edi
	callq	_ntohs
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ecx
	callq	_svc_register
	movl	%eax, (%r12)
LBB0_5:
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	%rbx, 16(%r13)
	movq	%r15, 8(%rbx)
	movq	%r13, (%rbx)
	movl	8(%r13), %eax
	movl	%eax, 24(%rbx)
	movl	4(%r13), %eax
	movl	%eax, 20(%rbx)
	movl	(%r13), %eax
	movl	%eax, 16(%rbx)
	movq	(%r15), %rax
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_svc_udp_init
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edx
	shll	$2, %edx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_svc_sock_setbufsize
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_svc_tcp_init
LBB0_10:
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SVC_SOCK_ANONYMOUS,4,2         ## @SVC_SOCK_ANONYMOUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"svc: svc_setup_socket %p\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SOCK_DGRAM,8,3                 ## @SOCK_DGRAM
L_.str.1:                               ## @.str.1
	.asciz	"svc: svc_setup_socket created %p (inet %p)\n"

	.no_dead_strip	_svc_setup_socket
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function svc_setup_socket
_svc_setup_socket:                      ; @svc_setup_socket
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SVC_SOCK_ANONYMOUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVC_SOCK_ANONYMOUS@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	str	x1, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x23, [x21, #8]
	ldr	w0, [x22]
	tbnz	w0, #31, LBB0_4
; %bb.2:
	and	w8, w25, w24
	cbnz	w8, LBB0_4
; %bb.3:
	ldp	w25, w24, [x23, #24]
	mov	x0, x23
	bl	_inet_sk
	ldr	w0, [x0]
	bl	_ntohs
	mov	x3, x0
	mov	x0, x20
	mov	x1, x24
	mov	x2, x25
	bl	_svc_register
	str	w0, [x22]
LBB0_4:
	tbnz	w0, #31, LBB0_8
; %bb.5:
	str	x19, [x23, #16]
	stp	x23, x21, [x19]
	ldr	w8, [x23, #8]
	str	w8, [x19, #24]
	ldr	d0, [x23]
	str	d0, [x19, #16]
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _SOCK_DGRAM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SOCK_DGRAM@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	bl	_svc_udp_init
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x22]
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_11
LBB0_9:
	ldr	w8, [x20]
	lsl	w1, w8, #2
	mov	x0, x21
	mov	x2, x1
	bl	_svc_sock_setbufsize
	mov	x0, x19
	mov	x1, x20
	bl	_svc_tcp_init
LBB0_10:
	ldr	x8, [x19]
	stp	x19, x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SVC_SOCK_ANONYMOUS,4,2         ; @SVC_SOCK_ANONYMOUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"svc: svc_setup_socket %p\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SOCK_DGRAM,8,3                 ; @SOCK_DGRAM
l_.str.1:                               ; @.str.1
	.asciz	"svc: svc_setup_socket created %p (inet %p)\n"

	.no_dead_strip	_svc_setup_socket
.subsections_via_symbols
