	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hvc_iucv_msg_pending
_hvc_iucv_msg_pending:                  ## @hvc_iucv_msg_pending
	.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
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movq	(%rsi), %rbx
	movq	_MSG_MAX_DATALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MSG_SIZE
	cmpq	%rax, %rbx
	jle	LBB0_1
## %bb.6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iucv_message_reject            ## TAILCALL
LBB0_1:
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	(%r15), %rax
	movq	_TTY_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.3:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_alloc_tty_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	(%r12), %rcx
	movq	%rcx, 8(%rax)
	addq	$12, %r15
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	xorl	%eax, %eax
	callq	_hvc_kick
	jmp	LBB0_5
LBB0_2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_iucv_message_reject
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MAX_DATALEN,4,2            ## @MSG_MAX_DATALEN
	.comm	_TTY_CLOSED,8,3                 ## @TTY_CLOSED
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_hvc_iucv_msg_pending
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hvc_iucv_msg_pending
_hvc_iucv_msg_pending:                  ; @hvc_iucv_msg_pending
	.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	x20, x1
	mov	x21, x0
	ldr	x22, [x0]
	ldr	x19, [x1]
Lloh0:
	adrp	x8, _MSG_MAX_DATALEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_MAX_DATALEN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MSG_SIZE
	cmp	x19, x0
	b.le	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	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	_iucv_message_reject
LBB0_2:
	add	x19, x22, #8
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _TTY_CLOSED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TTY_CLOSED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_alloc_tty_buffer
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	str	x8, [x0, #8]
	add	x1, x22, #12
	bl	_list_add_tail
	bl	_hvc_kick
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_iucv_message_reject
LBB0_6:
	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	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MAX_DATALEN,4,2            ; @MSG_MAX_DATALEN
	.comm	_TTY_CLOSED,8,3                 ; @TTY_CLOSED
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_hvc_iucv_msg_pending
.subsections_via_symbols
