	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_socket_create               ## -- Begin function uc_socket_create
	.p2align	4, 0x90
_uc_socket_create:                      ## @uc_socket_create
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PF_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_uc_cfg@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	cmpq	$0, 24(%r14)
	je	LBB0_4
## %bb.3:
	movl	%ebx, 8(%r14)
LBB0_4:
	movq	_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	$0, -40(%rbp)
	movq	_SOL_SOCKET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_SO_RCVTIMEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movl	%ebx, %edi
	movl	$16, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_6
## %bb.5:
	movl	(%r15), %esi
	movq	_SO_SNDTIMEO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movl	%ebx, %edi
	movl	$16, %r8d
	callq	_setsockopt
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	cmpq	$0, 24(%r14)
	je	LBB0_23
## %bb.8:
	movl	16(%r14), %edx
	leaq	12(%r14), %rsi
	movl	%ebx, %edi
	callq	_bind
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	movq	(%r14), %rax
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_23
## %bb.11:
	movq	_LISTENQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_listen
	testq	%rax, %rax
	js	LBB0_12
## %bb.13:
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_fcntl
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movq	_F_SETFL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_fcntl
	testl	%eax, %eax
	jns	LBB0_23
## %bb.16:
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_17
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
LBB0_17:
	xorl	%eax, %eax
	callq	_uc_logmsg
LBB0_18:
	movl	%ebx, %edi
	callq	_close
	testq	%rax, %rax
	jns	LBB0_20
## %bb.19:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsg
LBB0_20:
	movl	$-1, %ebx
	cmpq	$0, 24(%r14)
	je	LBB0_23
## %bb.21:
	movl	12(%r14), %edi
	callq	_unlink
	testq	%rax, %rax
	jns	LBB0_23
## %bb.22:
	movl	12(%r14), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsg
	jmp	LBB0_23
LBB0_1:
	movl	32(%r14), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsg
	movl	$-1, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	12(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsg
	jmp	LBB0_18
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_LOCAL,4,2                   ## @PF_LOCAL
	.comm	_uc_cfg,40,3                    ## @uc_cfg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket_create: socket(PF_LOCAL, %s, 0)"

	.comm	_TIMEOUT,4,2                    ## @TIMEOUT
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_RCVTIMEO,4,2                ## @SO_RCVTIMEO
	.comm	_SO_SNDTIMEO,4,2                ## @SO_SNDTIMEO
L_.str.1:                               ## @.str.1
	.asciz	"socket_create: setsockopt(SO_RCVTIMEO/SO_SNDTIMEO)"

L_.str.2:                               ## @.str.2
	.asciz	"socket_create: bind(%s)"

	.comm	_SOCK_STREAM,8,3                ## @SOCK_STREAM
	.comm	_LISTENQ,4,2                    ## @LISTENQ
L_.str.3:                               ## @.str.3
	.asciz	"socket_create: listen"

	.comm	_F_GETFL,4,2                    ## @F_GETFL
L_.str.4:                               ## @.str.4
	.asciz	"socket_create: fcntl(F_GETFL)"

	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
L_.str.5:                               ## @.str.5
	.asciz	"socket_create: fcntl(F_SETFL)"

L_.str.6:                               ## @.str.6
	.asciz	"socket_create: close"

L_.str.7:                               ## @.str.7
	.asciz	"socket_close: unlink(%s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_socket_create               ; -- Begin function uc_socket_create
	.p2align	2
_uc_socket_create:                      ; @uc_socket_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _PF_LOCAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_LOCAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _uc_cfg@GOTPAGE
Lloh4:
	ldr	x20, [x20, _uc_cfg@GOTPAGEOFF]
	ldr	x1, [x20]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_3
; %bb.2:
	str	w19, [x20, #8]
LBB0_3:
Lloh5:
	adrp	x8, _TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
Lloh8:
	adrp	x21, _SOL_SOCKET@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SOL_SOCKET@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _SO_RCVTIMEO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SO_RCVTIMEO@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x19
	mov	w4, #16
	bl	_setsockopt
	tbnz	x0, #63, LBB0_12
; %bb.4:
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _SO_SNDTIMEO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SO_SNDTIMEO@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x3, sp, #16
	mov	x0, x19
	mov	w4, #16
	bl	_setsockopt
	tbnz	x0, #63, LBB0_12
; %bb.5:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_21
; %bb.6:
	ldr	w2, [x20, #16]
	add	x1, x20, #12
	mov	x0, x19
	bl	_bind
	tbnz	x0, #63, LBB0_22
; %bb.7:
	ldr	x8, [x20]
Lloh16:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.8:
Lloh19:
	adrp	x8, _LISTENQ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LISTENQ@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_listen
	tbnz	x0, #63, LBB0_23
; %bb.9:
Lloh22:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_fcntl
	tbnz	w0, #31, LBB0_24
; %bb.10:
Lloh25:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_fcntl
	tbz	w0, #31, LBB0_21
; %bb.11:
Lloh31:
	adrp	x0, l_.str.5@PAGE
Lloh32:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_13:
	bl	_uc_logmsg
	mov	x0, x19
	bl	_close
	tbz	x0, #63, LBB0_15
; %bb.14:
Lloh35:
	adrp	x0, l_.str.6@PAGE
Lloh36:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_uc_logmsg
LBB0_15:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_20
; %bb.16:
	ldr	w0, [x20, #12]
	bl	_unlink
	tbz	x0, #63, LBB0_20
; %bb.17:
	ldr	w8, [x20, #12]
	str	x8, [sp]
Lloh37:
	adrp	x0, l_.str.7@PAGE
Lloh38:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_19
LBB0_18:
	ldr	w8, [x20, #32]
	str	x8, [sp]
Lloh39:
	adrp	x0, l_.str@PAGE
Lloh40:
	add	x0, x0, l_.str@PAGEOFF
LBB0_19:
	bl	_uc_logmsg
LBB0_20:
	mov	w19, #-1
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_22:
	ldr	w8, [x20, #12]
	str	x8, [sp]
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_23:
Lloh43:
	adrp	x0, l_.str.3@PAGE
Lloh44:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_24:
Lloh45:
	adrp	x0, l_.str.4@PAGE
Lloh46:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_LOCAL,4,2                   ; @PF_LOCAL
	.comm	_uc_cfg,40,3                    ; @uc_cfg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket_create: socket(PF_LOCAL, %s, 0)"

	.comm	_TIMEOUT,4,2                    ; @TIMEOUT
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_RCVTIMEO,4,2                ; @SO_RCVTIMEO
	.comm	_SO_SNDTIMEO,4,2                ; @SO_SNDTIMEO
l_.str.1:                               ; @.str.1
	.asciz	"socket_create: setsockopt(SO_RCVTIMEO/SO_SNDTIMEO)"

l_.str.2:                               ; @.str.2
	.asciz	"socket_create: bind(%s)"

	.comm	_SOCK_STREAM,8,3                ; @SOCK_STREAM
	.comm	_LISTENQ,4,2                    ; @LISTENQ
l_.str.3:                               ; @.str.3
	.asciz	"socket_create: listen"

	.comm	_F_GETFL,4,2                    ; @F_GETFL
l_.str.4:                               ; @.str.4
	.asciz	"socket_create: fcntl(F_GETFL)"

	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
l_.str.5:                               ; @.str.5
	.asciz	"socket_create: fcntl(F_SETFL)"

l_.str.6:                               ; @.str.6
	.asciz	"socket_create: close"

l_.str.7:                               ; @.str.7
	.asciz	"socket_close: unlink(%s)"

.subsections_via_symbols
