	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_send_sock
_make_send_sock:                        ## @make_send_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -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	-24(%rbp), %rcx
	callq	_sock_create_kern
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-24(%rbp), %rax
	movl	8(%rax), %edi
	movq	_ip_vs_master_mcast_ifn@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_set_mcast_if
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-24(%rbp), %rax
	movl	8(%rax), %edi
	xorl	%esi, %esi
	callq	_set_mcast_loop
	movq	-24(%rbp), %rax
	movl	8(%rax), %edi
	movl	$1, %esi
	callq	_set_mcast_ttl
	xorl	%eax, %eax
	callq	_sysctl_sync_sock_size
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	movq	-24(%rbp), %rcx
	movl	8(%rcx), %edi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_set_sock_size
LBB0_6:
	movq	-24(%rbp), %rdi
	movl	(%r14), %esi
	callq	_bind_mcastif_addr
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	-24(%rbp), %rdi
	movq	(%rdi), %rax
	movq	_mcast_addr@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_9
## %bb.13:
	movq	-24(%rbp), %rax
	jmp	LBB0_12
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_11
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
LBB0_10:
	callq	_pr_err
	movq	-24(%rbp), %rdi
	callq	_sock_release
LBB0_11:
	movl	%ebx, %edi
	callq	_ERR_PTR
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	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	_ip_vs_master_mcast_ifn,4,2     ## @ip_vs_master_mcast_ifn
L_.str.1:                               ## @.str.1
	.asciz	"Error setting outbound mcast interface\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error binding address of the mcast interface\n"

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

	.no_dead_strip	_make_send_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_send_sock
_make_send_sock:                        ; @make_send_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_7
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
Lloh9:
	adrp	x20, _ip_vs_master_mcast_ifn@GOTPAGE
Lloh10:
	ldr	x20, [x20, _ip_vs_master_mcast_ifn@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_set_mcast_if
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
	mov	w1, #0
	bl	_set_mcast_loop
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
	mov	w1, #1
	bl	_set_mcast_ttl
	bl	_sysctl_sync_sock_size
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	mov	x2, x0
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #8]
	mov	w1, #1
	bl	_set_sock_size
LBB0_4:
	ldr	x0, [sp, #8]
	ldr	w1, [x20]
	bl	_bind_mcastif_addr
	tbnz	w0, #31, LBB0_9
; %bb.5:
	ldr	x0, [sp, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh11:
	adrp	x1, _mcast_addr@GOTPAGE
Lloh12:
	ldr	x1, [x1, _mcast_addr@GOTPAGEOFF]
	mov	w2, #4
	mov	w3, #0
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	x0, [sp, #8]
	b	LBB0_13
LBB0_7:
	mov	x19, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_12
LBB0_8:
	mov	x19, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x19, x0
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	mov	x19, x0
Lloh19:
	adrp	x0, l_.str.3@PAGE
Lloh20:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_pr_err
	ldr	x0, [sp, #8]
	bl	_sock_release
LBB0_12:
	mov	x0, x19
	bl	_ERR_PTR
LBB0_13:
	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	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.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	_ip_vs_master_mcast_ifn,4,2     ; @ip_vs_master_mcast_ifn
l_.str.1:                               ; @.str.1
	.asciz	"Error setting outbound mcast interface\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error binding address of the mcast interface\n"

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

	.no_dead_strip	_make_send_sock
.subsections_via_symbols
