	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bind_mcastif_addr
_bind_mcastif_addr:                     ## @bind_mcastif_addr
	.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	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	___dev_get_by_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_RT_SCOPE_UNIVERSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_inet_select_addr
	movq	%rax, -24(%rbp)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	leaq	-24(%rbp), %rcx
	movl	$7, %edi
	movq	%rbx, %rdx
	callq	_IP_VS_DBG
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	-24(%rbp), %rax
	movq	%rax, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	(%r14), %rax
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	*(%rax)
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_net,4,2                   ## @init_net
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_RT_SCOPE_UNIVERSE,4,2          ## @RT_SCOPE_UNIVERSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"You probably need to specify IP address on multicast interface.\n"

L_.str.1:                               ## @.str.1
	.asciz	"binding socket with (%s) %pI4\n"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.no_dead_strip	_bind_mcastif_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bind_mcastif_addr
_bind_mcastif_addr:                     ; @bind_mcastif_addr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _init_net@GOTPAGE
Lloh1:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	bl	___dev_get_by_name
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _RT_SCOPE_UNIVERSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RT_SCOPE_UNIVERSE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_inet_select_addr
	str	x0, [sp, #24]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #24
	mov	w0, #7
	mov	x2, x20
	bl	_IP_VS_DBG
Lloh9:
	adrp	x8, _AF_INET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x8, [sp, #24]
	stp	xzr, x8, [sp]
	ldr	x8, [x19]
	ldr	x8, [x8]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #24
	blr	x8
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_init_net,4,2                   ; @init_net
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_RT_SCOPE_UNIVERSE,4,2          ; @RT_SCOPE_UNIVERSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"You probably need to specify IP address on multicast interface.\n"

l_.str.1:                               ; @.str.1
	.asciz	"binding socket with (%s) %pI4\n"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.no_dead_strip	_bind_mcastif_addr
.subsections_via_symbols
