	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hvc_iucv_send
_hvc_iucv_send:                         ## @hvc_iucv_send
	.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), %rax
	movq	_IUCV_SEVERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_EPIPE@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_IUCV_DISCONN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	testl	%edi, %edi
	je	LBB0_6
## %bb.7:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_tty_buffer
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r14
	movq	8(%rax), %rax
	movl	8(%rax), %edi
	movl	8(%rbx), %edx
	movl	20(%rbx), %esi
	callq	_memcpy
	movslq	8(%rbx), %rdi
	movq	8(%r14), %rax
	movq	%rdi, (%rax)
	callq	_MSG_SIZE
	movq	%r14, %r15
	addq	$4, %r15
	movl	%eax, 4(%r14)
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_list_add_tail
	movl	12(%rbx), %edi
	movq	8(%r14), %r8
	movl	4(%r14), %r9d
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	___iucv_message_send
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_destroy_tty_buffer
LBB0_11:
	movl	8(%rbx), %eax
	movl	$0, 8(%rbx)
	jmp	LBB0_12
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_IUCV_SEVERED,8,3               ## @IUCV_SEVERED
	.comm	_EPIPE,4,2                      ## @EPIPE
	.comm	_IUCV_DISCONN,8,3               ## @IUCV_DISCONN
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_hvc_iucv_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hvc_iucv_send
_hvc_iucv_send:                         ; @hvc_iucv_send
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IUCV_SEVERED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IUCV_SEVERED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EPIPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPIPE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x9, _IUCV_DISCONN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IUCV_DISCONN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
	ret
LBB0_6:
	mov	x19, x0
	ldr	w0, [x0, #8]
	cbz	w0, LBB0_5
; %bb.7:
Lloh10:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_alloc_tty_buffer
	cbz	x0, LBB0_11
; %bb.8:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #8]
	ldr	w1, [x19, #20]
	ldr	w2, [x19, #8]
	bl	_memcpy
	ldrsw	x0, [x19, #8]
	ldr	x8, [x20, #8]
	str	x0, [x8]
	bl	_MSG_SIZE
	mov	x21, x20
	str	w0, [x21, #4]!
	add	x1, x19, #16
	mov	x0, x20
	bl	_list_add_tail
	ldr	w0, [x19, #12]
	ldr	x4, [x20, #8]
	ldr	w5, [x21]
	mov	x1, x21
	mov	w2, #0
	mov	w3, #0
	bl	___iucv_message_send
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_list_del
	mov	x0, x20
	bl	_destroy_tty_buffer
LBB0_10:
	ldr	w0, [x19, #8]
	str	wzr, [x19, #8]
	b	LBB0_5
LBB0_11:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IUCV_SEVERED,8,3               ; @IUCV_SEVERED
	.comm	_EPIPE,4,2                      ; @EPIPE
	.comm	_IUCV_DISCONN,8,3               ; @IUCV_DISCONN
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_hvc_iucv_send
.subsections_via_symbols
