	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iucv_sock_close
_iucv_sock_close:                       ## @iucv_sock_close
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_iucv_sk
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_iucv_sock_clear_timer
	movq	%rbx, %rdi
	callq	_lock_sock
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_12
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movq	%rbx, %rdi
	callq	_iucv_sock_cleanup_listen
	jmp	LBB0_13
LBB0_3:
	movl	16(%r14), %eax
	movq	_AF_IUCV_TRANS_HIPER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_AF_IUCV_FLAG_FIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_iucv_send_ctrl
	movl	%eax, %r15d
	movl	$129, (%rbx)
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movl	$131, (%rbx)
	movq	%rbx, %rdi
	callq	*24(%rbx)
	testl	%r15d, %r15d
	jne	LBB0_11
	jmp	LBB0_6
LBB0_5:
	movl	$131, (%rbx)
	movq	%rbx, %rdi
	callq	*24(%rbx)
LBB0_6:
	leaq	12(%r14), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	movq	_SOCK_LINGER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	8(%rbx), %r15
	testq	%r15, %r15
	jne	LBB0_10
LBB0_9:
	movq	_IUCV_DISCONN_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
LBB0_10:
	movq	_IUCV_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_iucv_sock_in_state
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_iucv_sock_wait
LBB0_11:
	movq	_IUCV_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	_ECONNRESET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	callq	*24(%rbx)
	leaq	12(%r14), %rdi
	callq	_skb_queue_purge
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_skb_queue_purge
LBB0_12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_iucv_sever_path
LBB0_13:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_dev_put
	movq	$0, (%r14)
	movq	$0, 16(%rbx)
LBB0_15:
	movq	_SOCK_ZAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_set_flag
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_release_sock                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_AF_IUCV_TRANS_HIPER,4,2        ## @AF_IUCV_TRANS_HIPER
	.comm	_AF_IUCV_FLAG_FIN,4,2           ## @AF_IUCV_FLAG_FIN
	.comm	_SOCK_LINGER,4,2                ## @SOCK_LINGER
	.comm	_IUCV_DISCONN_TIMEOUT,8,3       ## @IUCV_DISCONN_TIMEOUT
	.comm	_IUCV_CLOSED,4,2                ## @IUCV_CLOSED
	.comm	_ECONNRESET,4,2                 ## @ECONNRESET
	.comm	_SOCK_ZAPPED,4,2                ## @SOCK_ZAPPED
	.no_dead_strip	_iucv_sock_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iucv_sock_close
_iucv_sock_close:                       ; @iucv_sock_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_iucv_sk
	mov	x20, x0
	mov	x0, x19
	bl	_iucv_sock_clear_timer
	mov	x0, x19
	bl	_lock_sock
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_iucv_sock_cleanup_listen
	ldr	x0, [x20]
	cbnz	x0, LBB0_13
	b	LBB0_14
LBB0_3:
	ldr	w8, [x20, #16]
Lloh2:
	adrp	x9, _AF_IUCV_TRANS_HIPER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AF_IUCV_TRANS_HIPER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _AF_IUCV_FLAG_FIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AF_IUCV_FLAG_FIN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iucv_send_ctrl
	mov	x21, x0
	mov	w8, #129
	str	w8, [x19]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	mov	w8, #131
	str	w8, [x19]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	cbnz	w21, LBB0_11
	b	LBB0_6
LBB0_5:
	mov	w8, #131
	str	w8, [x19]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
LBB0_6:
	add	x0, x20, #12
	bl	_skb_queue_empty
	cbnz	w0, LBB0_11
; %bb.7:
Lloh8:
	adrp	x8, _SOCK_LINGER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCK_LINGER@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x21, [x19, #8]
	cbnz	x21, LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _IUCV_DISCONN_TIMEOUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IUCV_DISCONN_TIMEOUT@GOTPAGEOFF]
Lloh13:
	ldr	x21, [x8]
LBB0_10:
Lloh14:
	adrp	x8, _IUCV_CLOSED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IUCV_CLOSED@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_iucv_sock_in_state
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_iucv_sock_wait
LBB0_11:
Lloh17:
	adrp	x8, _IUCV_CLOSED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IUCV_CLOSED@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
Lloh20:
	adrp	x8, _ECONNRESET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ECONNRESET@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	ldr	x8, [x19, #24]
	mov	x0, x19
	blr	x8
	add	x0, x20, #12
	bl	_skb_queue_purge
	add	x0, x20, #8
	bl	_skb_queue_purge
LBB0_12:
	mov	x0, x19
	mov	w1, #1
	bl	_iucv_sever_path
	ldr	x0, [x20]
	cbz	x0, LBB0_14
LBB0_13:
	bl	_dev_put
	str	xzr, [x20]
	str	xzr, [x19, #16]
LBB0_14:
Lloh23:
	adrp	x8, _SOCK_ZAPPED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SOCK_ZAPPED@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_set_flag
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_release_sock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_AF_IUCV_TRANS_HIPER,4,2        ; @AF_IUCV_TRANS_HIPER
	.comm	_AF_IUCV_FLAG_FIN,4,2           ; @AF_IUCV_FLAG_FIN
	.comm	_SOCK_LINGER,4,2                ; @SOCK_LINGER
	.comm	_IUCV_DISCONN_TIMEOUT,8,3       ; @IUCV_DISCONN_TIMEOUT
	.comm	_IUCV_CLOSED,4,2                ; @IUCV_CLOSED
	.comm	_ECONNRESET,4,2                 ; @ECONNRESET
	.comm	_SOCK_ZAPPED,4,2                ; @SOCK_ZAPPED
	.no_dead_strip	_iucv_sock_close
.subsections_via_symbols
