	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_receive_sock
_make_receive_sock:                     ## @make_receive_sock
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rcx
	callq	_sock_create_kern
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_sysctl_sync_sock_size
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movq	-16(%rbp), %rcx
	movq	(%rcx), %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_set_sock_size
LBB0_4:
	movq	-16(%rbp), %rdi
	movq	8(%rdi), %rax
	movq	_mcast_addr@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	-16(%rbp), %rax
	movq	(%rax), %rdi
	movq	_ip_vs_backup_mcast_ifn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_mcast_addr@GOTPCREL(%rip), %rsi
	callq	_join_mcast_group
	testl	%eax, %eax
	js	LBB0_7
## %bb.11:
	movq	-16(%rbp), %rax
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
LBB0_8:
	callq	_pr_err
	movq	-16(%rbp), %rdi
	callq	_sock_release
LBB0_9:
	movl	%ebx, %edi
	callq	_ERR_PTR
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error during creation of socket; terminating\n"

	.comm	_mcast_addr,4,2                 ## @mcast_addr
L_.str.1:                               ## @.str.1
	.asciz	"Error binding to the multicast addr\n"

	.comm	_ip_vs_backup_mcast_ifn,4,2     ## @ip_vs_backup_mcast_ifn
L_.str.2:                               ## @.str.2
	.asciz	"Error joining to the multicast group\n"

	.no_dead_strip	_make_receive_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_receive_sock
_make_receive_sock:                     ; @make_receive_sock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _IPPROTO_UDP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPPROTO_UDP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_sock_create_kern
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	mov	w9, #1
	str	w9, [x8]
	bl	_sysctl_sync_sock_size
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
	mov	w1, #0
	bl	_set_sock_size
LBB0_3:
	ldr	x0, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh9:
	adrp	x1, _mcast_addr@GOTPAGE
Lloh10:
	ldr	x1, [x1, _mcast_addr@GOTPAGEOFF]
	mov	w2, #4
	blr	x8
	tbnz	w0, #31, LBB0_7
; %bb.4:
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
Lloh11:
	adrp	x8, _ip_vs_backup_mcast_ifn@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ip_vs_backup_mcast_ifn@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x1, _mcast_addr@GOTPAGE
Lloh15:
	ldr	x1, [x1, _mcast_addr@GOTPAGEOFF]
	bl	_join_mcast_group
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	x0, [sp, #8]
	b	LBB0_11
LBB0_6:
	mov	x19, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_10
LBB0_7:
	mov	x19, x0
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	mov	x19, x0
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_9:
	bl	_pr_err
	ldr	x0, [sp, #8]
	bl	_sock_release
LBB0_10:
	mov	x0, x19
	bl	_ERR_PTR
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error during creation of socket; terminating\n"

	.comm	_mcast_addr,4,2                 ; @mcast_addr
l_.str.1:                               ; @.str.1
	.asciz	"Error binding to the multicast addr\n"

	.comm	_ip_vs_backup_mcast_ifn,4,2     ; @ip_vs_backup_mcast_ifn
l_.str.2:                               ; @.str.2
	.asciz	"Error joining to the multicast group\n"

	.no_dead_strip	_make_receive_sock
.subsections_via_symbols
