	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8042_kbd_write
_i8042_kbd_write:                       ## @i8042_kbd_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	_i8042_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	xorl	%eax, %eax
	callq	_i8042_wait_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movzbl	%r14b, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_dbg
	movl	%r14d, %edi
	callq	_i8042_write_data
LBB0_2:
	movq	_i8042_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i8042_lock,4,2                 ## @i8042_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x -> i8042 (kbd-data)\n"

	.no_dead_strip	_i8042_kbd_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8042_kbd_write
_i8042_kbd_write:                       ; @i8042_kbd_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
Lloh0:
	adrp	x0, _i8042_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _i8042_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	bl	_i8042_wait_write
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dbg
	mov	x0, x20
	bl	_i8042_write_data
LBB0_2:
Lloh4:
	adrp	x0, _i8042_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _i8042_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_i8042_lock,4,2                 ; @i8042_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x -> i8042 (kbd-data)\n"

	.no_dead_strip	_i8042_kbd_write
.subsections_via_symbols
