	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_add_multi
_test_add_multi:                        ## @test_add_multi
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdx, -184(%rbp)
	movq	_IPPROTO_IP@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_IP_ADD_MEMBERSHIP@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	-184(%rbp), %rcx
	movl	$8, %r8d
	callq	_setsockopt
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	jne	LBB0_5
## %bb.3:
	movq	_WARN_SUCCESS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	-180(%rbp), %edi
	callq	_inet_ntoa
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$128, %edx
	callq	_strlcpy
	movl	-184(%rbp), %edi
	callq	_inet_ntoa
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_warnx
	jmp	LBB0_5
LBB0_1:
	movl	-180(%rbp), %edi
	callq	_inet_ntoa
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$128, %edx
	callq	_strlcpy
	movl	-184(%rbp), %edi
	callq	_inet_ntoa
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_err
LBB0_5:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	-184(%rbp), %rcx
	movl	%ebx, %edi
	movl	$8, %r8d
	callq	_setsockopt
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	jns	LBB0_11
## %bb.8:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EADDRINUSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.9:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.2(%rip), %rbx
LBB0_10:
	movl	-180(%rbp), %edi
	callq	_inet_ntoa
	leaq	-176(%rbp), %r15
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$128, %edx
	callq	_strlcpy
	movl	-184(%rbp), %edi
	callq	_inet_ntoa
	movl	$-1, %edi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_err
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IP_ADD_MEMBERSHIP,4,2          ## @IP_ADD_MEMBERSHIP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FAIL: setsockopt(%s, IPPROTO_IP, IP_ADD_MEMBERSHIP %s, %s)"

	.comm	_WARN_SUCCESS,4,2               ## @WARN_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"WARN: setsockopt(%s, IPPROTO_IP, IP_ADD_MEMBERSHIP %s, %s) returned 0"

L_.str.2:                               ## @.str.2
	.asciz	"FAIL: setsockopt(%s, IPPROTO_IP, IP_ADD_MEMBERSHIP %s, %s) dup returned 0"

	.comm	_errno,8,3                      ## @errno
	.comm	_EADDRINUSE,8,3                 ## @EADDRINUSE
	.no_dead_strip	_test_add_multi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_add_multi
_test_add_multi:                        ; @test_add_multi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x21, x3
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	str	x2, [sp]
Lloh3:
	adrp	x22, _IPPROTO_IP@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IPPROTO_IP@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _IP_ADD_MEMBERSHIP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IP_ADD_MEMBERSHIP@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x3, sp
	mov	w4, #8
	bl	_setsockopt
	tbnz	w0, #31, LBB0_4
; %bb.1:
	cbnz	w0, LBB0_5
; %bb.2:
Lloh7:
	adrp	x8, _WARN_SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _WARN_SUCCESS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [sp, #4]
	bl	_inet_ntoa
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #128
	bl	_strlcpy
	ldr	w0, [sp]
	bl	_inet_ntoa
	mov	x3, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x1, x19
	bl	_warnx
	b	LBB0_5
LBB0_4:
	ldr	w0, [sp, #4]
	bl	_inet_ntoa
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #128
	bl	_strlcpy
	ldr	w0, [sp]
	bl	_inet_ntoa
	mov	x4, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w0, #-1
	mov	x2, x19
	bl	_err
LBB0_5:
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x3, sp
	mov	x0, x20
	mov	w4, #8
	bl	_setsockopt
	cbz	w0, LBB0_9
; %bb.6:
	tbz	w0, #31, LBB0_11
; %bb.7:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _EADDRINUSE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EADDRINUSE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.8:
Lloh20:
	adrp	x20, l_.str@PAGE
Lloh21:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x20, l_.str.2@PAGE
Lloh23:
	add	x20, x20, l_.str.2@PAGEOFF
LBB0_10:
	ldr	w0, [sp, #4]
	bl	_inet_ntoa
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #128
	bl	_strlcpy
	ldr	w0, [sp]
	bl	_inet_ntoa
	mov	x4, x0
	add	x3, sp, #8
	mov	w0, #-1
	mov	x1, x20
	mov	x2, x19
	bl	_err
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IP_ADD_MEMBERSHIP,4,2          ; @IP_ADD_MEMBERSHIP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FAIL: setsockopt(%s, IPPROTO_IP, IP_ADD_MEMBERSHIP %s, %s)"

	.comm	_WARN_SUCCESS,4,2               ; @WARN_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"WARN: setsockopt(%s, IPPROTO_IP, IP_ADD_MEMBERSHIP %s, %s) returned 0"

l_.str.2:                               ; @.str.2
	.asciz	"FAIL: setsockopt(%s, IPPROTO_IP, IP_ADD_MEMBERSHIP %s, %s) dup returned 0"

	.comm	_errno,8,3                      ; @errno
	.comm	_EADDRINUSE,8,3                 ; @EADDRINUSE
	.no_dead_strip	_test_add_multi
.subsections_via_symbols
