	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_rdisc_sock
_get_rdisc_sock:                        ## @get_rdisc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_rdisc_sock@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	js	LBB0_1
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPPROTO_ICMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movq	%rax, (%rbx)
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_BADERR
	movq	(%rbx), %rax
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdi
	callq	_fix_sock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fix_select                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rdisc_sock,8,3                 ## @rdisc_sock
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_IPPROTO_ICMP,4,2               ## @IPPROTO_ICMP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rdisc_sock = socket()"

L_.str.1:                               ## @.str.1
	.asciz	"rdisc_sock"

	.no_dead_strip	_get_rdisc_sock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_rdisc_sock
_get_rdisc_sock:                        ; @get_rdisc_sock
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _rdisc_sock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _rdisc_sock@GOTPAGEOFF]
	ldr	x8, [x19]
	tbnz	x8, #63, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh2:
	adrp	x8, _AF_INET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _IPPROTO_ICMP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPPROTO_ICMP@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_socket
	str	x0, [x19]
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_BADERR
	ldr	x0, [x19]
LBB0_4:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fix_sock
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_fix_select
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_rdisc_sock,8,3                 ; @rdisc_sock
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_IPPROTO_ICMP,4,2               ; @IPPROTO_ICMP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rdisc_sock = socket()"

l_.str.1:                               ; @.str.1
	.asciz	"rdisc_sock"

	.no_dead_strip	_get_rdisc_sock
.subsections_via_symbols
