	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hv_kbd_probe
_hv_kbd_probe:                          ## @hv_kbd_probe
	.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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	$64, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%r13, %r13
	je	LBB0_2
## %bb.3:
	movq	%r14, 56(%r15)
	movq	%r13, (%r15)
	leaq	52(%r15), %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	addq	$48, %rdi
	callq	_init_completion
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_hv_set_drvdata
	leaq	4(%r14), %r12
	movq	%r12, 40(%r13)
	movq	_SERIO_8042_XL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	%r15, 24(%r13)
	movl	20(%r13), %ebx
	movq	%r12, %rdi
	callq	_dev_name
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	16(%r13), %ebx
	movq	%r12, %rdi
	callq	_dev_name
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	_hv_kbd_start@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_hv_kbd_stop@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movl	(%r14), %edi
	movq	_KBD_VSC_SEND_RING_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KBD_VSC_RECV_RING_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hv_kbd_on_channel_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, (%rsp)
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_vmbus_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	callq	_hv_kbd_connect_to_vsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_vmbus_close
	jmp	LBB0_7
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	(%r15), %rdi
	callq	_serio_register_port
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_device_init_wakeup
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SERIO_8042_XL,4,2              ## @SERIO_8042_XL
	.comm	_hv_kbd_start,4,2               ## @hv_kbd_start
	.comm	_hv_kbd_stop,4,2                ## @hv_kbd_stop
	.comm	_KBD_VSC_SEND_RING_BUFFER_SIZE,4,2 ## @KBD_VSC_SEND_RING_BUFFER_SIZE
	.comm	_KBD_VSC_RECV_RING_BUFFER_SIZE,4,2 ## @KBD_VSC_RECV_RING_BUFFER_SIZE
	.comm	_hv_kbd_on_channel_callback,4,2 ## @hv_kbd_on_channel_callback
	.no_dead_strip	_hv_kbd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hv_kbd_probe
_hv_kbd_probe:                          ; @hv_kbd_probe
	.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	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #64
	bl	_kzalloc
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #64
	bl	_kzalloc
	mov	x20, x0
	cmp	x19, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_5
LBB0_2:
	str	x21, [x19, #56]
	str	x20, [x19]
	add	x0, x19, #52
	bl	_spin_lock_init
	add	x0, x19, #48
	bl	_init_completion
	mov	x0, x21
	mov	x1, x19
	bl	_hv_set_drvdata
	add	x22, x21, #4
	str	x22, [x20, #40]
Lloh5:
	adrp	x8, _SERIO_8042_XL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SERIO_8042_XL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	str	x19, [x20, #24]
	ldr	w23, [x20, #20]
	mov	x0, x22
	bl	_dev_name
	mov	x1, x0
	mov	x0, x23
	mov	w2, #4
	bl	_strlcpy
	ldr	w23, [x20, #16]
	mov	x0, x22
	bl	_dev_name
	mov	x1, x0
	mov	x0, x23
	mov	w2, #4
	bl	_strlcpy
Lloh8:
	adrp	x8, _hv_kbd_start@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hv_kbd_start@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _hv_kbd_stop@GOTPAGE
Lloh12:
	ldr	x9, [x9, _hv_kbd_stop@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	ldr	w0, [x21]
Lloh14:
	adrp	x8, _KBD_VSC_SEND_RING_BUFFER_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KBD_VSC_SEND_RING_BUFFER_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _KBD_VSC_RECV_RING_BUFFER_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KBD_VSC_RECV_RING_BUFFER_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
Lloh20:
	adrp	x8, _hv_kbd_on_channel_callback@GOTPAGE
Lloh21:
	ldr	x8, [x8, _hv_kbd_on_channel_callback@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
	mov	x3, #0
	mov	w4, #0
	mov	x6, x21
	bl	_vmbus_open
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_hv_kbd_connect_to_vsp
	mov	x23, x0
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w0, [x21]
	bl	_vmbus_close
LBB0_5:
	mov	x0, x20
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_6:
	mov	x0, x23
	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_7:
	ldr	x0, [x19]
	bl	_serio_register_port
	mov	x0, x22
	mov	w1, #1
	bl	_device_init_wakeup
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SERIO_8042_XL,4,2              ; @SERIO_8042_XL
	.comm	_hv_kbd_start,4,2               ; @hv_kbd_start
	.comm	_hv_kbd_stop,4,2                ; @hv_kbd_stop
	.comm	_KBD_VSC_SEND_RING_BUFFER_SIZE,4,2 ; @KBD_VSC_SEND_RING_BUFFER_SIZE
	.comm	_KBD_VSC_RECV_RING_BUFFER_SIZE,4,2 ; @KBD_VSC_RECV_RING_BUFFER_SIZE
	.comm	_hv_kbd_on_channel_callback,4,2 ; @hv_kbd_on_channel_callback
	.no_dead_strip	_hv_kbd_probe
.subsections_via_symbols
