	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_add_chunk            ## -- Begin function sctp_auth_add_chunk
	.p2align	4, 0x90
_sctp_auth_add_chunk:                   ## @sctp_auth_add_chunk
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	$-1, %ebx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rcx
	movq	_SCTP_INITIATION@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	je	LBB0_7
## %bb.2:
	movq	_SCTP_INITIATION_ACK@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_SCTP_SHUTDOWN_COMPLETE@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	je	LBB0_7
## %bb.4:
	movq	_SCTP_AUTHENTICATION@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	je	LBB0_7
## %bb.5:
	movq	(%rsi), %rax
	xorl	%ebx, %ebx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_7
## %bb.6:
	movl	$1, (%rax,%rcx,4)
	incl	8(%rsi)
	movq	_SCTP_DEBUG_AUTH1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rcx, %rdx
	callq	_SCTPDBG
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_INITIATION,8,3            ## @SCTP_INITIATION
	.comm	_SCTP_INITIATION_ACK,8,3        ## @SCTP_INITIATION_ACK
	.comm	_SCTP_SHUTDOWN_COMPLETE,8,3     ## @SCTP_SHUTDOWN_COMPLETE
	.comm	_SCTP_AUTHENTICATION,8,3        ## @SCTP_AUTHENTICATION
	.comm	_SCTP_DEBUG_AUTH1,4,2           ## @SCTP_DEBUG_AUTH1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCTP: added chunk %u (0x%02x) to Auth list\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_auth_add_chunk            ; -- Begin function sctp_auth_add_chunk
	.p2align	2
_sctp_auth_add_chunk:                   ; @sctp_auth_add_chunk
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cbz	x1, LBB0_2
; %bb.1:
	mov	x2, x0
Lloh0:
	adrp	x8, _SCTP_INITIATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_INITIATION@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SCTP_INITIATION_ACK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SCTP_INITIATION_ACK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _SCTP_SHUTDOWN_COMPLETE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SCTP_SHUTDOWN_COMPLETE@GOTPAGEOFF]
Lloh8:
	adrp	x11, _SCTP_AUTHENTICATION@GOTPAGE
Lloh9:
	ldr	x11, [x11, _SCTP_AUTHENTICATION@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x0
	ccmp	x9, x0, #4, ne
	ccmp	x10, x0, #4, ne
	ccmp	x11, x0, #4, ne
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x1]
	ldr	w9, [x8, x2, lsl #2]
	cbnz	w9, LBB0_5
; %bb.4:
	mov	w9, #1
	str	w9, [x8, x2, lsl #2]
	ldr	w8, [x1, #8]
	add	w8, w8, #1
	str	w8, [x1, #8]
Lloh12:
	adrp	x8, _SCTP_DEBUG_AUTH1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCTP_DEBUG_AUTH1@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x2
	bl	_SCTPDBG
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_INITIATION,8,3            ; @SCTP_INITIATION
	.comm	_SCTP_INITIATION_ACK,8,3        ; @SCTP_INITIATION_ACK
	.comm	_SCTP_SHUTDOWN_COMPLETE,8,3     ; @SCTP_SHUTDOWN_COMPLETE
	.comm	_SCTP_AUTHENTICATION,8,3        ; @SCTP_AUTHENTICATION
	.comm	_SCTP_DEBUG_AUTH1,4,2           ; @SCTP_DEBUG_AUTH1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCTP: added chunk %u (0x%02x) to Auth list\n"

.subsections_via_symbols
