	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_sock_type
_test_sock_type:                        ## @test_sock_type
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_disc_setup
	movl	$-1, %ebx
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movq	_DISC_IFNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DISC_IFUNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DISC_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DISC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_ifconfig_inet
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	leaq	-28(%rbp), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_multicast_open
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_disc_done
	testq	%r15, %r15
	js	LBB0_5
## %bb.4:
	movl	-28(%rbp), %edi
	callq	_multicast_close
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_printf
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	callq	_disc_done
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DISC_IFNAME,4,2                ## @DISC_IFNAME
	.comm	_DISC_IFUNIT,4,2                ## @DISC_IFUNIT
	.comm	_DISC_IP,4,2                    ## @DISC_IP
	.comm	_DISC_MASK,4,2                  ## @DISC_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test_sock_type(%s) passed\n"

	.no_dead_strip	_test_sock_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_sock_type
_test_sock_type:                        ; @test_sock_type
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_disc_setup
	tbnz	x0, #63, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _DISC_IFNAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISC_IFNAME@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _DISC_IFUNIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DISC_IFUNIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _DISC_IP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DISC_IP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _DISC_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DISC_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_ifconfig_inet
	tbnz	x0, #63, LBB0_4
; %bb.2:
	add	x0, sp, #12
	mov	x1, x20
	mov	x2, x19
	bl	_multicast_open
	mov	x20, x0
	bl	_disc_done
	tbnz	x20, #63, LBB0_5
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_multicast_close
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	bl	_disc_done
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DISC_IFNAME,4,2                ; @DISC_IFNAME
	.comm	_DISC_IFUNIT,4,2                ; @DISC_IFUNIT
	.comm	_DISC_IP,4,2                    ; @DISC_IP
	.comm	_DISC_MASK,4,2                  ; @DISC_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test_sock_type(%s) passed\n"

	.no_dead_strip	_test_sock_type
.subsections_via_symbols
