	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_ether_multi
_test_ether_multi:                      ## @test_ether_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_dorandom@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_22
## %bb.1:
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	callq	_ether_aton
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	-72(%rbp), %rdi
	movq	_ifname@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movabsq	$34359738400, %rax              ## imm = 0x800000020
	movq	%rax, -80(%rbp)
	movq	_AF_LINK@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	%r15, %rdi
	callq	_LLADDR
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	movl	$8, %edx
	callq	_memcpy
	movq	_SIOCADDMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_4
## %bb.2:
	leaq	-56(%rbp), %rdi
	callq	_getifmaddrs
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_warn
	jmp	LBB0_17
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_20
LBB0_5:
	movq	-56(%rbp), %r12
	testq	%r12, %r12
	je	LBB0_15
## %bb.6:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%r12), %r12
	testq	%r12, %r12
	je	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r12)
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	32(%rdi), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movslq	4(%rdi), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_LLADDR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_LLADDR
	movq	(%r14), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.13:
	movq	-56(%rbp), %rdi
	callq	_freeifmaddrs
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	_ifname@GOTPCREL(%rip), %rbx
	jmp	LBB0_18
LBB0_14:
	movq	-56(%rbp), %rdi
	callq	_freeifmaddrs
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_16
LBB0_15:
	xorl	%edi, %edi
	callq	_freeifmaddrs
LBB0_16:
	movq	_ifname@GOTPCREL(%rip), %rbx
LBB0_17:
	leaq	-64(%rbp), %rdi
	callq	_ether_ntoa
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
LBB0_18:
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	-72(%rbp), %rdi
	movl	(%rbx), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movabsq	$34359738400, %rax              ## imm = 0x800000020
	movq	%rax, -80(%rbp)
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	%r15, %rdi
	callq	_LLADDR
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	movl	$8, %edx
	callq	_memcpy
	movq	_SIOCDELMULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_21
## %bb.19:
	leaq	L_.str.4(%rip), %rdi
LBB0_20:
	callq	_warn
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	_test_ether_multi.cold.1
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function test_ether_multi.cold.1
_test_ether_multi.cold.1:               ## @test_ether_multi.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_srandomdev
	xorl	%eax, %eax
	callq	_random
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_dorandom,8,3                   ## @dorandom
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"01:80:DE:FA:CA:7E"

	.comm	_ifname,4,2                     ## @ifname
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_AF_LINK,8,3                    ## @AF_LINK
	.comm	_SIOCADDMULTI,4,2               ## @SIOCADDMULTI
L_.str.1:                               ## @.str.1
	.asciz	"can't add ethernet multicast membership"

L_.str.2:                               ## @.str.2
	.asciz	"getifmaddrs()"

	.comm	_ETHER_ADDR_LEN,8,3             ## @ETHER_ADDR_LEN
L_.str.3:                               ## @.str.3
	.asciz	"group membership for %s not returned by getifmaddrs()"

	.comm	_SIOCDELMULTI,4,2               ## @SIOCDELMULTI
L_.str.4:                               ## @.str.4
	.asciz	"can't delete ethernet multicast membership"

	.no_dead_strip	_test_ether_multi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function test_ether_multi
lCPI0_0:
	.long	32                              ; 0x20
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_test_ether_multi:                      ; @test_ether_multi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
Lloh0:
	adrp	x8, _dorandom@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dorandom@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_21
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ether_aton
	ldr	x8, [x0]
	str	x8, [sp, #8]
	add	x20, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x0, [sp, #40]
Lloh5:
	adrp	x22, _ifname@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ifname@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _IFNAMSIZ@GOTPAGE
Lloh8:
	ldr	x23, [x23, _IFNAMSIZ@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_strlcpy
	add	x20, x20, #16
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh9:
	adrp	x24, _AF_LINK@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AF_LINK@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [sp, #40]
Lloh11:
	adrp	x8, lCPI0_0@PAGE
Lloh12:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
	str	d8, [sp, #32]
	mov	x0, x20
	bl	_LLADDR
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
Lloh13:
	adrp	x8, _SIOCADDMULTI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SIOCADDMULTI@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	x0, sp
	bl	_getifmaddrs
	cbz	x0, LBB0_5
; %bb.3:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warn
	b	LBB0_16
LBB0_4:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_19
LBB0_5:
	ldr	x25, [sp]
	cbz	x25, LBB0_14
; %bb.6:
Lloh20:
	adrp	x26, _ETHER_ADDR_LEN@GOTPAGE
Lloh21:
	ldr	x26, [x26, _ETHER_ADDR_LEN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x25, [x25, #16]
	cbz	x25, LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x0, [x25]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x0, #32]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrsw	x8, [x0, #4]
	ldr	x9, [x26]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_LLADDR
	mov	x21, x0
	mov	x0, x20
	bl	_LLADDR
	mov	x1, x0
	ldr	x2, [x26]
	mov	x0, x21
	bl	_bcmp
	cbnz	x0, LBB0_7
; %bb.12:
	ldr	x0, [sp]
	bl	_freeifmaddrs
	b	LBB0_17
LBB0_13:
	ldr	x0, [sp]
	b	LBB0_15
LBB0_14:
	mov	x0, #0
LBB0_15:
	bl	_freeifmaddrs
LBB0_16:
	add	x0, sp, #8
	bl	_ether_ntoa
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
LBB0_17:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x0, [sp, #40]
	ldr	w1, [x22]
	ldr	w2, [x23]
	bl	_strlcpy
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x24]
	str	x8, [sp, #40]
	str	d8, [sp, #32]
	mov	x0, x20
	bl	_LLADDR
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
Lloh24:
	adrp	x8, _SIOCDELMULTI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SIOCDELMULTI@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	bl	_ioctl
	tbz	x0, #63, LBB0_20
; %bb.18:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
LBB0_19:
	bl	_warn
LBB0_20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_21:
	bl	_test_ether_multi.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function test_ether_multi.cold.1
_test_ether_multi.cold.1:               ; @test_ether_multi.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_srandomdev
	bl	_random
	brk	#0x1
	.cfi_endproc
                                        ; -- End function
	.comm	_dorandom,8,3                   ; @dorandom
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"01:80:DE:FA:CA:7E"

	.comm	_ifname,4,2                     ; @ifname
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_AF_LINK,8,3                    ; @AF_LINK
	.comm	_SIOCADDMULTI,4,2               ; @SIOCADDMULTI
l_.str.1:                               ; @.str.1
	.asciz	"can't add ethernet multicast membership"

l_.str.2:                               ; @.str.2
	.asciz	"getifmaddrs()"

	.comm	_ETHER_ADDR_LEN,8,3             ; @ETHER_ADDR_LEN
l_.str.3:                               ; @.str.3
	.asciz	"group membership for %s not returned by getifmaddrs()"

	.comm	_SIOCDELMULTI,4,2               ; @SIOCDELMULTI
l_.str.4:                               ; @.str.4
	.asciz	"can't delete ethernet multicast membership"

	.no_dead_strip	_test_ether_multi
.subsections_via_symbols
