	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_pack_auth_chunks          ## -- Begin function sctp_pack_auth_chunks
	.p2align	4, 0x90
_sctp_pack_auth_chunks:                 ## @sctp_pack_auth_chunks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	cmpl	$33, (%rdi)
	movq	8(%rdi), %rdx
	jge	LBB0_3
## %bb.10:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$2, %rcx
	cmpq	$256, %rcx                      ## imm = 0x100
	je	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rcx,8)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%ecx, (%rsi)
	addq	$4, %rsi
	incl	%eax
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 8(%rdx,%rcx,8)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	1(%rcx), %edi
	movl	%edi, (%rsi)
	addq	$4, %rsi
	incl	%eax
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rax
	cmpq	$256, %rax                      ## imm = 0x100
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ecx
	andb	$6, %cl
	movl	$1, %edi
	shll	%cl, %edi
	movq	%rax, %rcx
	shrq	%rcx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	orl	%edi, (%rsi,%rcx)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%rdx,%rax,8)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rax), %ecx
	andb	$7, %cl
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movq	%rax, %rcx
	shrq	%rcx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	orl	%edi, (%rsi,%rcx)
	jmp	LBB0_8
LBB0_16:
	popq	%rbp
	retq
LBB0_9:
	movl	$32, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_pack_auth_chunks          ; -- Begin function sctp_pack_auth_chunks
	.p2align	2
_sctp_pack_auth_chunks:                 ; @sctp_pack_auth_chunks
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w9, [x0]
	ldr	x8, [x0, #8]
	cmp	w9, #33
	b.ge	LBB0_7
; %bb.2:
	mov	x9, #0
	mov	w0, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, #256
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8, x9, lsl #3]
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w9, [x1], #4
	add	w0, w0, #1
	b	LBB0_3
LBB0_6:
	ret
LBB0_7:
	mov	x9, #0
	mov	w10, #1
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
	cmp	x9, #256
	b.eq	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x9, lsl #3]
	cbz	x11, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	and	w11, w9, #0x7
	lsl	w11, w10, w11
	ubfx	x12, x9, #3, #29
	lsl	x12, x12, #2
	ldr	w13, [x1, x12]
	orr	w11, w13, w11
	str	w11, [x1, x12]
	b	LBB0_8
LBB0_11:
	mov	w0, #32
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
