	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uni_msg_alloc                  ## -- Begin function uni_msg_alloc
	.p2align	4, 0x90
_uni_msg_alloc:                         ## @uni_msg_alloc
	.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
	movq	%rdi, %r14
	movq	_ngatm_unilist_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_ngatm_freeuni@GOTPCREL(%rip), %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	_ngatm_unilist_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	jmp	LBB0_4
LBB0_2:
	movq	_ngatm_unilist_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_M_UNIMSGHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
LBB0_4:
	movq	_EXTRA@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	_M_UNIMSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, 16(%rbx)
	movq	%rax, 24(%rbx)
	leaq	(%rax,%r14,4), %rax
	movq	%rax, 8(%rbx)
	jmp	LBB0_8
LBB0_6:
	movq	_ngatm_unilist_mtx@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ngatm_freeuni@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LIST_INSERT_HEAD
	movq	%r14, %rdi
	callq	_mtx_unlock
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ngatm_unilist_mtx,4,2          ## @ngatm_unilist_mtx
	.comm	_ngatm_freeuni,4,2              ## @ngatm_freeuni
	.comm	_link,4,2                       ## @link
	.comm	_M_UNIMSGHDR,4,2                ## @M_UNIMSGHDR
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_EXTRA,8,3                      ## @EXTRA
	.comm	_M_UNIMSG,4,2                   ## @M_UNIMSG
	.comm	_M_ZERO,4,2                     ## @M_ZERO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uni_msg_alloc                  ; -- Begin function uni_msg_alloc
	.p2align	2
_uni_msg_alloc:                         ; @uni_msg_alloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x0, _ngatm_unilist_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ngatm_unilist_mtx@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x0, _ngatm_freeuni@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ngatm_freeuni@GOTPAGEOFF]
	bl	_LIST_FIRST
Lloh4:
	adrp	x21, _M_NOWAIT@GOTPAGE
Lloh5:
	ldr	x21, [x21, _M_NOWAIT@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _link@GOTPAGE
Lloh7:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_LIST_REMOVE
Lloh9:
	adrp	x0, _ngatm_unilist_mtx@GOTPAGE
Lloh10:
	ldr	x0, [x0, _ngatm_unilist_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x0, _ngatm_unilist_mtx@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ngatm_unilist_mtx@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh13:
	adrp	x8, _M_UNIMSGHDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_UNIMSGHDR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w0, #32
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_6
LBB0_3:
Lloh16:
	adrp	x8, _EXTRA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXTRA@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	add	x20, x8, x20
Lloh19:
	adrp	x8, _M_UNIMSG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _M_UNIMSG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh22:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	stp	x0, x0, [x19, #16]
	add	x8, x0, x20, lsl #2
	str	x8, [x19, #8]
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x20, _ngatm_unilist_mtx@GOTPAGE
Lloh26:
	ldr	x20, [x20, _ngatm_unilist_mtx@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
Lloh27:
	adrp	x8, _link@GOTPAGE
Lloh28:
	ldr	x8, [x8, _link@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x0, _ngatm_freeuni@GOTPAGE
Lloh31:
	ldr	x0, [x0, _ngatm_freeuni@GOTPAGEOFF]
	mov	x1, x19
	bl	_LIST_INSERT_HEAD
	mov	x0, x20
	bl	_mtx_unlock
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ngatm_unilist_mtx,4,2          ; @ngatm_unilist_mtx
	.comm	_ngatm_freeuni,4,2              ; @ngatm_freeuni
	.comm	_link,4,2                       ; @link
	.comm	_M_UNIMSGHDR,4,2                ; @M_UNIMSGHDR
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_EXTRA,8,3                      ; @EXTRA
	.comm	_M_UNIMSG,4,2                   ; @M_UNIMSG
	.comm	_M_ZERO,4,2                     ; @M_ZERO
.subsections_via_symbols
