	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shutdown
_shutdown:                              ## @shutdown
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_tipc_sk_port
	movq	%rax, %r15
	movq	_SHUT_RDWR@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_lock_sock
	movl	(%r14), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_3
## %bb.5:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %r13
	movq	%r13, %rdi
	callq	___skb_dequeue
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_tipc_queue_size@GOTPCREL(%rip), %rdi
	callq	_atomic_dec
	movq	%rbx, %rdi
	callq	_TIPC_SKB_CB
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_buf_msg
	movl	%eax, %edi
	callq	_msg_data
	cmpl	%eax, %r15d
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_buf_discard
	movq	%r13, %rdi
	callq	___skb_dequeue
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_tipc_shutdown
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	cmpl	$128, %eax
	je	LBB0_11
## %bb.4:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_tipc_disconnect
	movq	_TIPC_CONN_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tipc_reject_msg
LBB0_10:
	movl	$128, (%r14)
LBB0_11:
	movq	%r12, %rdi
	callq	_discard_rx_queue
	movl	(%r12), %edi
	callq	_waitqueue_active
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	(%r12), %edi
	callq	_wake_up_interruptible
LBB0_13:
	movq	%r12, %rdi
	callq	_release_sock
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHUT_RDWR,4,2                  ## @SHUT_RDWR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tipc_queue_size,4,2            ## @tipc_queue_size
	.comm	_TIPC_CONN_SHUTDOWN,4,2         ## @TIPC_CONN_SHUTDOWN
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.no_dead_strip	_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shutdown
_shutdown:                              ; @shutdown
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_tipc_sk_port
Lloh0:
	adrp	x8, _SHUT_RDWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHUT_RDWR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	bl	_lock_sock
	ldr	w8, [x20]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_8
; %bb.2:
	add	x22, x19, #4
	mov	x0, x22
	bl	___skb_dequeue
	cbz	x0, LBB0_6
; %bb.3:
	mov	x23, x0
Lloh3:
	adrp	x24, _tipc_queue_size@GOTPAGE
Lloh4:
	ldr	x24, [x24, _tipc_queue_size@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_atomic_dec
	mov	x0, x23
	bl	_TIPC_SKB_CB
	ldr	w25, [x0]
	mov	x0, x23
	bl	_buf_msg
	bl	_msg_data
	cmp	w25, w0
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_buf_discard
	mov	x0, x22
	bl	___skb_dequeue
	mov	x23, x0
	cbnz	x0, LBB0_4
LBB0_6:
	ldr	w0, [x21]
	bl	_tipc_shutdown
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_16
LBB0_8:
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.9:
Lloh8:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_15
LBB0_10:
	ldr	w0, [x21]
	bl	_tipc_disconnect
Lloh11:
	adrp	x8, _TIPC_CONN_SHUTDOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TIPC_CONN_SHUTDOWN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_tipc_reject_msg
LBB0_11:
	mov	w8, #128
	str	w8, [x20]
LBB0_12:
	mov	x0, x19
	bl	_discard_rx_queue
	ldr	w0, [x19]
	bl	_waitqueue_active
	cbz	w0, LBB0_14
; %bb.13:
	ldr	w0, [x19]
	bl	_wake_up_interruptible
LBB0_14:
	mov	w20, #0
LBB0_15:
	mov	x0, x19
	bl	_release_sock
LBB0_16:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SHUT_RDWR,4,2                  ; @SHUT_RDWR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tipc_queue_size,4,2            ; @tipc_queue_size
	.comm	_TIPC_CONN_SHUTDOWN,4,2         ; @TIPC_CONN_SHUTDOWN
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.no_dead_strip	_shutdown
.subsections_via_symbols
