	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_message_next_extension     ## -- Begin function rds_message_next_extension
	.p2align	4, 0x90
_rds_message_next_extension:            ## @rds_message_next_extension
	.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
	movl	(%rsi), %eax
	movq	_RDS_HEADER_EXT_SPACE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	cmpl	%ebx, %eax
	jae	LBB0_7
## %bb.1:
	movq	(%rdi), %r9
	movl	(%r9,%rax,4), %r14d
	movq	_RDS_EXTHDR_NONE@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %r14d
	je	LBB0_7
## %bb.2:
	movq	___RDS_EXTHDR_MAX@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %r14d
	jae	LBB0_7
## %bb.3:
	incl	%eax
	movq	_rds_exthdr_size@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	(%rdi,%r14,4), %r10d
	leal	(%r10,%rax), %edi
	cmpl	%ebx, %edi
	jbe	LBB0_4
LBB0_7:
	movl	%ebx, (%rsi)
	movl	$0, (%rcx)
	movq	_RDS_EXTHDR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movl	%edi, (%rsi)
	movl	(%rcx), %r8d
	cmpl	%r8d, %r10d
	jae	LBB0_6
## %bb.5:
	movl	%r10d, (%rcx)
	movl	%r10d, %r8d
LBB0_6:
	movl	%eax, %eax
	leaq	(%r9,%rax,4), %rsi
	movq	%rdx, %rdi
	movl	%r8d, %edx
	callq	_memcpy
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RDS_HEADER_EXT_SPACE,4,2       ## @RDS_HEADER_EXT_SPACE
	.comm	_RDS_EXTHDR_NONE,4,2            ## @RDS_EXTHDR_NONE
	.comm	___RDS_EXTHDR_MAX,4,2           ## @__RDS_EXTHDR_MAX
	.comm	_rds_exthdr_size,8,3            ## @rds_exthdr_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_message_next_extension     ; -- Begin function rds_message_next_extension
	.p2align	2
_rds_message_next_extension:            ; @rds_message_next_extension
	.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
	ldr	w11, [x1]
Lloh0:
	adrp	x8, _RDS_HEADER_EXT_SPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDS_HEADER_EXT_SPACE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _RDS_EXTHDR_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDS_EXTHDR_NONE@GOTPAGEOFF]
	cmp	w11, w10
	b.hs	LBB0_3
; %bb.1:
	ldr	x9, [x0]
	ldr	w19, [x9, x11, lsl #2]
	ldr	w12, [x8]
Lloh5:
	adrp	x13, ___RDS_EXTHDR_MAX@GOTPAGE
Lloh6:
	ldr	x13, [x13, ___RDS_EXTHDR_MAX@GOTPAGEOFF]
Lloh7:
	ldr	w13, [x13]
	cmp	w19, w12
	ccmp	w19, w13, #2, ne
	b.hs	LBB0_3
; %bb.2:
Lloh8:
	adrp	x12, _rds_exthdr_size@GOTPAGE
Lloh9:
	ldr	x12, [x12, _rds_exthdr_size@GOTPAGEOFF]
	add	w11, w11, #1
Lloh10:
	ldr	x12, [x12]
	ldr	w12, [x12, x19, lsl #2]
	add	w13, w12, w11
	cmp	w13, w10
	b.ls	LBB0_5
LBB0_3:
	str	w10, [x1]
	str	wzr, [x3]
	ldr	w19, [x8]
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	str	w13, [x1]
	ldr	w8, [x3]
	cmp	w12, w8
	b.hs	LBB0_7
; %bb.6:
	str	w12, [x3]
	mov	x8, x12
LBB0_7:
	add	x1, x9, w11, uxtw #2
	mov	x0, x2
	mov	x2, x8
	bl	_memcpy
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RDS_HEADER_EXT_SPACE,4,2       ; @RDS_HEADER_EXT_SPACE
	.comm	_RDS_EXTHDR_NONE,4,2            ; @RDS_EXTHDR_NONE
	.comm	___RDS_EXTHDR_MAX,4,2           ; @__RDS_EXTHDR_MAX
	.comm	_rds_exthdr_size,8,3            ; @rds_exthdr_size
.subsections_via_symbols
