	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_new                         ## -- Begin function sm_new
	.p2align	4, 0x90
_sm_new:                                ## @sm_new
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_sm_private_new
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	$4, %edi
	callq	_malloc
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movslq	%eax, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_sm_add_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_sm_remove_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_sm_send@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_sm_select@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_sm_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, (%rbx)
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	callq	_sm_private_free
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sm_add_fd,4,2                  ## @sm_add_fd
	.comm	_sm_remove_fd,4,2               ## @sm_remove_fd
	.comm	_sm_send,4,2                    ## @sm_send
	.comm	_sm_select,4,2                  ## @sm_select
	.comm	_sm_cleanup,4,2                 ## @sm_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sm_new                         ; -- Begin function sm_new
	.p2align	2
_sm_new:                                ; @sm_new
	.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
	bl	_sm_private_new
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w0, #4
	bl	_malloc
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_3
; %bb.2:
	sxtw	x20, w0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _sm_add_fd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sm_add_fd@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh3:
	adrp	x8, _sm_remove_fd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sm_remove_fd@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _sm_send@GOTPAGE
Lloh7:
	ldr	x9, [x9, _sm_send@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh9:
	adrp	x8, _sm_select@GOTPAGE
Lloh10:
	ldr	x8, [x8, _sm_select@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _sm_cleanup@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sm_cleanup@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	str	x19, [x20]
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	bl	_sm_private_free
LBB0_4:
	mov	x20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_sm_add_fd,4,2                  ; @sm_add_fd
	.comm	_sm_remove_fd,4,2               ; @sm_remove_fd
	.comm	_sm_send,4,2                    ; @sm_send
	.comm	_sm_select,4,2                  ; @sm_select
	.comm	_sm_cleanup,4,2                 ; @sm_cleanup
.subsections_via_symbols
