	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_mark_ifa_addr_down        ## -- Begin function sctp_mark_ifa_addr_down
	.p2align	4, 0x90
_sctp_mark_ifa_addr_down:               ## @sctp_mark_ifa_addr_down
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_SCTP_IPI_ADDR_RLOCK
	movq	%rbx, %rdi
	callq	_sctp_find_vrf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %esi
	movq	_SCTP_ADDR_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_sctp_find_ifa_by_addr
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:
	movq	(%rax), %rsi
	movq	_SCTP_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	_SCTP_DEBUG_PCB4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rcx
	jmp	LBB0_12
LBB0_1:
	movq	_SCTP_DEBUG_PCB4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_SCTPDBG
	jmp	LBB0_14
LBB0_3:
	movq	_SCTP_DEBUG_PCB4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movq	_SCTP_DEBUG_PCB4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_SCTPDBG
	jmp	LBB0_14
LBB0_10:
	movq	8(%rax), %rdx
	cmpq	%r14, %rdx
	je	LBB0_13
## %bb.11:
	movq	_SCTP_DEBUG_PCB4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rcx
LBB0_12:
	xorl	%eax, %eax
	callq	_SCTPDBG
	jmp	LBB0_14
LBB0_13:
	movq	_SCTP_ADDR_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_SCTP_ADDR_IFA_UNUSEABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_14:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SCTP_IPI_ADDR_RUNLOCK          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_DEBUG_PCB4,4,2            ## @SCTP_DEBUG_PCB4
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't find vrf_id 0x%x\n"

	.comm	_SCTP_ADDR_LOCKED,4,2           ## @SCTP_ADDR_LOCKED
L_.str.1:                               ## @.str.1
	.asciz	"Can't find sctp_ifap for address\n"

L_.str.2:                               ## @.str.2
	.asciz	"IFA has no IFN - can't mark unusable\n"

	.comm	_SCTP_IFNAMSIZ,4,2              ## @SCTP_IFNAMSIZ
L_.str.3:                               ## @.str.3
	.asciz	"IFN %s of IFA not the same as %s\n"

L_.str.4:                               ## @.str.4
	.asciz	"IFA owned by ifn_index:%d down command for ifn_index:%d - ignored\n"

	.comm	_SCTP_ADDR_VALID,4,2            ## @SCTP_ADDR_VALID
	.comm	_SCTP_ADDR_IFA_UNUSEABLE,4,2    ## @SCTP_ADDR_IFA_UNUSEABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_mark_ifa_addr_down        ; -- Begin function sctp_mark_ifa_addr_down
	.p2align	2
_sctp_mark_ifa_addr_down:               ; @sctp_mark_ifa_addr_down
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_SCTP_IPI_ADDR_RLOCK
	mov	x0, x22
	bl	_sctp_find_vrf
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _SCTP_ADDR_LOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_ADDR_LOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_sctp_find_ifa_by_addr
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_8
; %bb.3:
	cbz	x19, LBB0_9
; %bb.4:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _SCTP_IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_strncmp
	cbz	x0, LBB0_11
; %bb.5:
Lloh6:
	adrp	x8, _SCTP_DEBUG_PCB4@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_DEBUG_PCB4@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	stp	x8, x19, [sp]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_SCTPDBG
	b	LBB0_12
LBB0_6:
Lloh11:
	adrp	x8, _SCTP_DEBUG_PCB4@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SCTP_DEBUG_PCB4@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_SCTPDBG
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x8, _SCTP_DEBUG_PCB4@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SCTP_DEBUG_PCB4@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_SCTPDBG
	b	LBB0_12
LBB0_8:
Lloh21:
	adrp	x8, _SCTP_DEBUG_PCB4@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SCTP_DEBUG_PCB4@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_SCTPDBG
	b	LBB0_12
LBB0_9:
	ldr	x8, [x8, #8]
	cmp	x8, x20
	b.eq	LBB0_11
; %bb.10:
Lloh26:
	adrp	x9, _SCTP_DEBUG_PCB4@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SCTP_DEBUG_PCB4@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x9]
	stp	x8, x20, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_SCTPDBG
	b	LBB0_12
LBB0_11:
Lloh31:
	adrp	x8, _SCTP_ADDR_VALID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SCTP_ADDR_VALID@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
Lloh34:
	adrp	x9, _SCTP_ADDR_IFA_UNUSEABLE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SCTP_ADDR_IFA_UNUSEABLE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_SCTP_IPI_ADDR_RUNLOCK
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_DEBUG_PCB4,4,2            ; @SCTP_DEBUG_PCB4
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't find vrf_id 0x%x\n"

	.comm	_SCTP_ADDR_LOCKED,4,2           ; @SCTP_ADDR_LOCKED
l_.str.1:                               ; @.str.1
	.asciz	"Can't find sctp_ifap for address\n"

l_.str.2:                               ; @.str.2
	.asciz	"IFA has no IFN - can't mark unusable\n"

	.comm	_SCTP_IFNAMSIZ,4,2              ; @SCTP_IFNAMSIZ
l_.str.3:                               ; @.str.3
	.asciz	"IFN %s of IFA not the same as %s\n"

l_.str.4:                               ; @.str.4
	.asciz	"IFA owned by ifn_index:%d down command for ifn_index:%d - ignored\n"

	.comm	_SCTP_ADDR_VALID,4,2            ; @SCTP_ADDR_VALID
	.comm	_SCTP_ADDR_IFA_UNUSEABLE,4,2    ; @SCTP_ADDR_IFA_UNUSEABLE
.subsections_via_symbols
