	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_query_socket               ## -- Begin function get_query_socket
	.p2align	4, 0x90
_get_query_socket:                      ## @get_query_socket
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	_get_query_socket.s(%rip), %eax
	cmpl	$-1, %eax
	je	LBB0_1
LBB0_3:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	callq	_get_socket_domain
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, _get_query_socket.s(%rip)
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movl	_get_query_socket.s(%rip), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @get_query_socket.s
_get_query_socket.s:
	.long	4294967295                      ## 0xffffffff

	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_query_socket               ; -- Begin function get_query_socket
	.p2align	2
_get_query_socket:                      ; @get_query_socket
	.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
	adrp	x19, _get_query_socket.s@PAGE
	ldr	w0, [x19, _get_query_socket.s@PAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.1:
	bl	_get_socket_domain
Lloh0:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	str	w0, [x19, _get_query_socket.s@PAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	w0, [x19, _get_query_socket.s@PAGEOFF]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @get_query_socket.s
_get_query_socket.s:
	.long	4294967295                      ; 0xffffffff

	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

.subsections_via_symbols
