	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdr_string                     ## -- Begin function xdr_string
	.p2align	4, 0x90
_xdr_string:                            ## @xdr_string
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rsi), %r15
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	testq	%r15, %r15
	je	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	callq	_strlen
	movq	%rax, -56(%rbp)
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	callq	_xdr_u_int
	testl	%eax, %eax
	je	LBB0_21
## %bb.6:
	movq	-56(%rbp), %rdx
	cmpq	%rbx, %rdx
	jg	LBB0_21
## %bb.7:
	leaq	1(%rdx), %rsi
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_19
## %bb.8:
	cmpl	$129, %eax
	je	LBB0_15
## %bb.9:
	cmpl	$130, %eax
	jne	LBB0_21
## %bb.10:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.11:
	testq	%r15, %r15
	jne	LBB0_14
## %bb.12:
	movq	%rsi, %rdi
	callq	_mem_alloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	%rax, %r15
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdx
LBB0_14:
	movb	$0, (%r15,%rdx)
	movq	-56(%rbp), %rdx
LBB0_15:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_xdr_opaque
	movl	%eax, %ebx
	cmpl	$130, (%r12)
	jne	LBB0_22
## %bb.16:
	cmpl	(%r13), %ebx
	jne	LBB0_22
## %bb.17:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	jne	LBB0_22
## %bb.18:
	movq	%r15, %rdi
	callq	_free
	movq	$0, (%r14)
	jmp	LBB0_22
LBB0_19:
	movq	%r15, %rdi
	callq	_mem_free
	movq	$0, (%r14)
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
LBB0_21:
	movl	(%r13), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"xdr_string: out of memory"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xdr_string                     ; -- Begin function xdr_string
	.p2align	2
_xdr_string:                            ; @xdr_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x23, _FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	w24, [x23]
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	cbz	x20, LBB0_18
LBB0_3:
	mov	x0, x20
	bl	_strlen
	str	x0, [sp, #8]
LBB0_4:
	add	x1, sp, #8
	mov	x0, x21
	bl	_xdr_u_int
	cbz	w0, LBB0_20
; %bb.5:
	ldr	x2, [sp, #8]
	cmp	x2, x22
	b.gt	LBB0_20
; %bb.6:
	add	x1, x2, #1
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_17
; %bb.7:
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.8:
	cmp	w8, #130
	b.ne	LBB0_20
; %bb.9:
	cbz	x1, LBB0_18
; %bb.10:
	cbnz	x20, LBB0_13
; %bb.11:
	mov	x0, x1
	bl	_mem_alloc
	str	x0, [x19]
	cbz	x0, LBB0_19
; %bb.12:
	mov	x20, x0
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
	ldr	x2, [sp, #8]
LBB0_13:
	strb	wzr, [x20, x2]
	ldr	x2, [sp, #8]
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	bl	_xdr_opaque
	mov	x22, x0
	ldr	w8, [x21]
	cmp	w8, #130
	b.ne	LBB0_21
; %bb.15:
	ldr	w8, [x23]
Lloh5:
	adrp	x9, _TRUE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w22, w8
	ccmp	w24, w9, #0, eq
	b.ne	LBB0_21
; %bb.16:
	mov	x0, x20
	bl	_free
	str	xzr, [x19]
	b	LBB0_21
LBB0_17:
	mov	x0, x20
	bl	_mem_free
	str	xzr, [x19]
LBB0_18:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	b	LBB0_21
LBB0_19:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_20:
	ldr	w22, [x23]
LBB0_21:
	mov	x0, x22
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"xdr_string: out of memory"

.subsections_via_symbols
