	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spectral_opendev               ## -- Begin function spectral_opendev
	.p2align	4, 0x90
_spectral_opendev:                      ## @spectral_opendev
	.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, %r15
	movq	%rdi, %rbx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_socket
	movq	%rax, (%rbx)
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	16(%rbx), %r14
	movl	20(%rbx), %edi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_strncpy
	movq	_HAL_DIAG_REVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	-32(%rbp), %rax
	movq	%rax, 24(%rbx)
	movl	$4, 16(%rbx)
	movq	(%rbx), %rdi
	movq	_SIOCGATHDIAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	-32(%rbp), %eax
	movl	%eax, 8(%rbx)
	movl	$1, %r14d
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_warn
	jmp	LBB0_5
LBB0_3:
	movl	20(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_warn
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.comm	_HAL_DIAG_REVS,4,2              ## @HAL_DIAG_REVS
	.comm	_SIOCGATHDIAG,4,2               ## @SIOCGATHDIAG
L_.str.1:                               ## @.str.1
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_spectral_opendev               ; -- Begin function spectral_opendev
	.p2align	2
_spectral_opendev:                      ; @spectral_opendev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	x0, [x19]
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldr	w0, [x19, #20]
	mov	w21, #4
	mov	x1, x20
	mov	w2, #4
	bl	_strncpy
Lloh6:
	adrp	x8, _HAL_DIAG_REVS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HAL_DIAG_REVS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x8, sp, #8
	str	x8, [x19, #24]
	mov	x2, x19
	str	w21, [x2, #16]!
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _SIOCGATHDIAG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIOCGATHDIAG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.2:
	ldr	w8, [sp, #8]
	str	w8, [x19, #8]
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w8, [x19, #20]
	str	x8, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_warn
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.comm	_HAL_DIAG_REVS,4,2              ; @HAL_DIAG_REVS
	.comm	_SIOCGATHDIAG,4,2               ; @SIOCGATHDIAG
l_.str.1:                               ; @.str.1
	.asciz	"%s"

.subsections_via_symbols
