	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i8042_platform_init
_i8042_platform_init:                   ## @i8042_platform_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_I8042_DATA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movl	$16, %esi
	callq	_request_region
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_I8042_RESET_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_i8042_reset@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I8042_DATA_REG,4,2             ## @I8042_DATA_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i8042"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_I8042_RESET_ALWAYS,4,2         ## @I8042_RESET_ALWAYS
	.comm	_i8042_reset,4,2                ## @i8042_reset
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_i8042_platform_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i8042_platform_init
_i8042_platform_init:                   ; @i8042_platform_init
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _I8042_DATA_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I8042_DATA_REG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #16
	bl	_request_region
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
Lloh5:
	adrp	x8, _I8042_RESET_ALWAYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I8042_RESET_ALWAYS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _i8042_reset@GOTPAGE
Lloh9:
	ldr	x9, [x9, _i8042_reset@GOTPAGEOFF]
Lloh10:
	str	w8, [x9]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_I8042_DATA_REG,4,2             ; @I8042_DATA_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i8042"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_I8042_RESET_ALWAYS,4,2         ; @I8042_RESET_ALWAYS
	.comm	_i8042_reset,4,2                ; @i8042_reset
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_i8042_platform_init
.subsections_via_symbols
