	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adb_input                      ## -- Begin function adb_input
	.p2align	4, 0x90
_adb_input:                             ## @adb_input
	.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	_adb_got_sleep@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movzbl	(%rdi), %ebx
	shrq	$4, %rbx
	movq	_adb_handler_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_irqsave
	movq	_adb_handler@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rbx
	movq	(%rax,%rbx), %r13
	testq	%r13, %r13
	je	LBB0_4
## %bb.2:
	movl	$1, 8(%rax,%rbx)
	movq	_adb_handler_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_irqrestore
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	*%r13
	xorl	%eax, %eax
	callq	_wmb
	movq	_adb_handler@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, 8(%rax,%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_adb_handler_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_unlock_irqrestore        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_adb_got_sleep,8,3              ## @adb_got_sleep
	.comm	_adb_handler_lock,4,2           ## @adb_handler_lock
	.comm	_adb_handler,8,3                ## @adb_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adb_input                      ; -- Begin function adb_input
	.p2align	2
_adb_input:                             ; @adb_input
	.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
Lloh0:
	adrp	x8, _adb_got_sleep@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adb_got_sleep@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldrb	w8, [x0]
	lsr	x23, x8, #4
Lloh3:
	adrp	x0, _adb_handler_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _adb_handler_lock@GOTPAGEOFF]
	bl	_write_lock_irqsave
Lloh5:
	adrp	x22, _adb_handler@GOTPAGE
Lloh6:
	ldr	x22, [x22, _adb_handler@GOTPAGEOFF]
	ldr	x8, [x22]
	lsl	x23, x23, #4
	ldr	x24, [x8, x23]
	cbz	x24, LBB0_4
; %bb.2:
	add	x8, x8, x23
	mov	w9, #1
	str	w9, [x8, #8]
Lloh7:
	adrp	x0, _adb_handler_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _adb_handler_lock@GOTPAGEOFF]
	bl	_write_unlock_irqrestore
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x24
	bl	_wmb
	ldr	x8, [x22]
	add	x8, x8, x23
	str	wzr, [x8, #8]
LBB0_3:
	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_4:
Lloh9:
	adrp	x0, _adb_handler_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _adb_handler_lock@GOTPAGEOFF]
	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	_write_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_adb_got_sleep,8,3              ; @adb_got_sleep
	.comm	_adb_handler_lock,4,2           ; @adb_handler_lock
	.comm	_adb_handler,8,3                ; @adb_handler
.subsections_via_symbols
