	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drv_kpad
_drv_kpad:                              ## @drv_kpad
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_AssertTCB
	movq	(%r15), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.4:
	movq	_keypad_xmit@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	___nc_putp_flush
	cmpl	$0, (%r15)
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	__nc_init_keytry
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	jmp	LBB0_6
LBB0_2:
	movq	_keypad_local@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	___nc_putp_flush
LBB0_6:
	movq	_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR,4,2                        ## @ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"keypad_xmit"

	.comm	_keypad_xmit,8,3                ## @keypad_xmit
	.comm	_keypad_local,8,3               ## @keypad_local
L_.str.1:                               ## @.str.1
	.asciz	"keypad_local"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_OK,4,2                         ## @OK
	.no_dead_strip	_drv_kpad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drv_kpad
_drv_kpad:                              ; @drv_kpad
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_AssertTCB
	ldr	x19, [x19]
	cbz	x19, LBB0_7
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _keypad_xmit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _keypad_xmit@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	___nc_putp_flush
	ldr	w8, [x19]
	cbnz	w8, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	__nc_init_keytry
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _keypad_local@GOTPAGE
Lloh12:
	ldr	x8, [x8, _keypad_local@GOTPAGEOFF]
Lloh13:
	ldr	x2, [x8]
	cbz	x2, LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	___nc_putp_flush
LBB0_6:
Lloh16:
	adrp	x8, _OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OK@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
LBB0_7:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR,4,2                        ; @ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"keypad_xmit"

	.comm	_keypad_xmit,8,3                ; @keypad_xmit
	.comm	_keypad_local,8,3               ; @keypad_local
l_.str.1:                               ; @.str.1
	.asciz	"keypad_local"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_OK,4,2                         ; @OK
	.no_dead_strip	_drv_kpad
.subsections_via_symbols
