	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connectToMiniSSDPD             ## -- Begin function connectToMiniSSDPD
	.p2align	4, 0x90
_connectToMiniSSDPD:                    ## @connectToMiniSSDPD
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_AF_UNIX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	testq	%r14, %r14
	leaq	L_.str.1(%rip), %rbx
	cmovneq	%r14, %rbx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r12), %eax
	movl	%eax, -36(%rbp)
	movl	-40(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strncpy
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_connect
	testq	%rax, %rax
	jns	LBB0_5
## %bb.3:
	movl	%r15d, %edi
	callq	_close
LBB0_4:
	movq	_MINISSDPC_SOCKET_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_perror
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_UNIX,4,2                    ## @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket(unix)"

	.comm	_MINISSDPC_SOCKET_ERROR,4,2     ## @MINISSDPC_SOCKET_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"/var/run/minissdpd.sock"

	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_RCVTIMEO,4,2                ## @SO_RCVTIMEO
	.comm	_SO_SNDTIMEO,4,2                ## @SO_SNDTIMEO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_connectToMiniSSDPD             ; -- Begin function connectToMiniSSDPD
	.p2align	2
_connectToMiniSSDPD:                    ; @connectToMiniSSDPD
	.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, x0
Lloh0:
	adrp	x21, _AF_UNIX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AF_UNIX@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x20, #0
	csel	x20, x8, x20, eq
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x21]
	str	w8, [sp, #12]
	ldr	w0, [sp, #8]
	mov	x1, x20
	mov	w2, #4
	bl	_strncpy
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #8
	bl	_connect
	tbz	x0, #63, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_close
LBB0_3:
Lloh7:
	adrp	x8, _MINISSDPC_SOCKET_ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MINISSDPC_SOCKET_ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w19, [x8]
LBB0_4:
	mov	x0, x19
	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
LBB0_5:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_UNIX,4,2                    ; @AF_UNIX
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket(unix)"

	.comm	_MINISSDPC_SOCKET_ERROR,4,2     ; @MINISSDPC_SOCKET_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"/var/run/minissdpd.sock"

	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_RCVTIMEO,4,2                ; @SO_RCVTIMEO
	.comm	_SO_SNDTIMEO,4,2                ; @SO_SNDTIMEO
.subsections_via_symbols
