	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hvc_alloc                      ## -- Begin function hvc_alloc
	.p2align	4, 0x90
_hvc_alloc:                             ## @hvc_alloc
	.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	%ecx, %r14d
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_hvc_driver@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
LBB0_4:
	movl	$56, %edi
	movl	$8, %esi
	callq	_ALIGN
	leal	(%rax,%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %rbx
	movq	%r13, (%rax)
	movl	%r12d, 8(%rax)
	movq	%r15, 32(%rax)
	movl	%r14d, 12(%rax)
	movl	$56, %edi
	movl	$8, %esi
	callq	_ALIGN
	addq	%rbx, %rax
	movq	%rax, 16(%rbx)
	leaq	48(%rbx), %rdi
	callq	_kref_init
	leaq	44(%rbx), %rdi
	movq	_hvc_set_winsz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	40(%rbx), %rdi
	callq	_spin_lock_init
	movq	_hvc_structs_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_MAX_NR_HVC_CONSOLES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movq	_vtermnos@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rbx), %rsi
	movq	_cons_ops@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	xorl	%ecx, %ecx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdx,%rcx,8)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r8,%rcx,8), %rdi
	cmpq	32(%rbx), %rdi
	jne	LBB0_10
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	callq	_hvc_init
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %edi
	jmp	LBB0_3
LBB0_11:
	movq	_last_hvc@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, (%rax)
LBB0_12:
	movl	%ecx, 24(%rbx)
	movq	%rbx, %rdi
	addq	$28, %rdi
	movq	_hvc_structs@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	_hvc_structs_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hvc_driver,4,2                 ## @hvc_driver
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hvc_set_winsz,4,2              ## @hvc_set_winsz
	.comm	_hvc_structs_lock,4,2           ## @hvc_structs_lock
	.comm	_MAX_NR_HVC_CONSOLES,4,2        ## @MAX_NR_HVC_CONSOLES
	.comm	_vtermnos,8,3                   ## @vtermnos
	.comm	_cons_ops,8,3                   ## @cons_ops
	.comm	_last_hvc,4,2                   ## @last_hvc
	.comm	_hvc_structs,4,2                ## @hvc_structs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hvc_alloc                      ; -- Begin function hvc_alloc
	.p2align	2
_hvc_alloc:                             ; @hvc_alloc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _hvc_driver@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hvc_driver@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
LBB0_1:
	mov	w0, #56
	mov	w1, #8
	bl	_ALIGN
	add	w0, w0, w20
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x19, x0
	str	x23, [x0]
	str	x21, [x0, #32]
	stp	w22, w20, [x0, #8]
	mov	w0, #56
	mov	w1, #8
	bl	_ALIGN
	add	x8, x19, x0
	str	x8, [x19, #16]
	add	x0, x19, #48
	bl	_kref_init
	add	x0, x19, #44
Lloh6:
	adrp	x8, _hvc_set_winsz@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hvc_set_winsz@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #40
	bl	_spin_lock_init
Lloh9:
	adrp	x0, _hvc_structs_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _hvc_structs_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh11:
	adrp	x8, _MAX_NR_HVC_CONSOLES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_NR_HVC_CONSOLES@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x8, #0
Lloh14:
	adrp	x10, _vtermnos@GOTPAGE
Lloh15:
	ldr	x10, [x10, _vtermnos@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	ldr	x11, [x19]
Lloh17:
	adrp	x12, _cons_ops@GOTPAGE
Lloh18:
	ldr	x12, [x12, _cons_ops@GOTPAGEOFF]
Lloh19:
	ldr	x12, [x12]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x10, x8, lsl #3]
	cmp	x13, x11
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x13, [x12, x8, lsl #3]
	ldr	x14, [x19, #32]
	cmp	x13, x14
	b.ne	LBB0_4
	b	LBB0_9
LBB0_7:
	bl	_hvc_init
	cbnz	w0, LBB0_11
	b	LBB0_1
LBB0_8:
Lloh20:
	adrp	x9, _last_hvc@GOTPAGE
Lloh21:
	ldr	x9, [x9, _last_hvc@GOTPAGEOFF]
	ldr	w8, [x9]
	add	w8, w8, #1
	str	w8, [x9]
LBB0_9:
	str	w8, [x19, #24]
	add	x0, x19, #28
Lloh22:
	adrp	x1, _hvc_structs@GOTPAGE
Lloh23:
	ldr	x1, [x1, _hvc_structs@GOTPAGEOFF]
	bl	_list_add_tail
Lloh24:
	adrp	x0, _hvc_structs_lock@GOTPAGE
Lloh25:
	ldr	x0, [x0, _hvc_structs_lock@GOTPAGEOFF]
	bl	_spin_unlock
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_hvc_driver,4,2                 ; @hvc_driver
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hvc_set_winsz,4,2              ; @hvc_set_winsz
	.comm	_hvc_structs_lock,4,2           ; @hvc_structs_lock
	.comm	_MAX_NR_HVC_CONSOLES,4,2        ; @MAX_NR_HVC_CONSOLES
	.comm	_vtermnos,8,3                   ; @vtermnos
	.comm	_cons_ops,8,3                   ; @cons_ops
	.comm	_last_hvc,4,2                   ; @last_hvc
	.comm	_hvc_structs,4,2                ; @hvc_structs
.subsections_via_symbols
