	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uc_socket_close                ## -- Begin function uc_socket_close
	.p2align	4, 0x90
_uc_socket_close:                       ## @uc_socket_close
	.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
	movl	%edi, %ebx
	callq	_close
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsg
	movl	$-1, %r14d
LBB0_2:
	movq	_uc_cfg@GOTPCREL(%rip), %r15
	cmpq	$0, 8(%r15)
	je	LBB0_6
## %bb.3:
	cmpl	%ebx, (%r15)
	jne	LBB0_6
## %bb.4:
	movl	4(%r15), %edi
	callq	_unlink
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movl	4(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_uc_logmsg
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket_close: close"

	.comm	_uc_cfg,16,3                    ## @uc_cfg
L_.str.1:                               ## @.str.1
	.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_close                ; -- Begin function uc_socket_close
	.p2align	2
_uc_socket_close:                       ; @uc_socket_close
	.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
	bl	_close
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_uc_logmsg
	mov	w19, #-1
LBB0_3:
Lloh2:
	adrp	x21, _uc_cfg@GOTPAGE
Lloh3:
	ldr	x21, [x21, _uc_cfg@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	ldr	w9, [x21]
	cmp	x8, #0
	ccmp	w9, w20, #0, ne
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x21, #4]
	bl	_unlink
	tbz	x0, #63, LBB0_6
; %bb.5:
	ldr	w8, [x21, #4]
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_uc_logmsg
	mov	w19, #-1
LBB0_6:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket_close: close"

	.comm	_uc_cfg,16,3                    ; @uc_cfg
l_.str.1:                               ; @.str.1
	.asciz	"socket_close: unlink(%s)"

.subsections_via_symbols
