	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_adb_query
_do_adb_query:                          ## @do_adb_query
	.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
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movq	(%rdi), %rdx
	subl	(%rcx), %eax
	cmpl	$128, 4(%rdx)
	jne	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$3, 8(%rdi)
	jl	LBB0_3
## %bb.2:
	movq	_adb_handler_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_adb_handler@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	24(%rbx), %rdx
	movslq	8(%rcx), %rsi
	movl	4(%rax,%rsi,8), %esi
	movl	%esi, (%rdx)
	movslq	8(%rcx), %rcx
	movl	(%rax,%rcx,8), %eax
	movl	%eax, 4(%rdx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movabsq	$8589934593, %rax               ## imm = 0x200000001
	movq	%rax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_adb_write_done
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_adb_handler_mutex,4,2          ## @adb_handler_mutex
	.comm	_adb_handler,8,3                ## @adb_handler
	.no_dead_strip	_do_adb_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function do_adb_query
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_do_adb_query:                          ; @do_adb_query
	.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	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
Lloh3:
	adrp	x20, _adb_handler_mutex@GOTPAGE
Lloh4:
	ldr	x20, [x20, _adb_handler_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
Lloh5:
	adrp	x8, _adb_handler@GOTPAGE
Lloh6:
	ldr	x8, [x8, _adb_handler@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldrsw	x10, [x9, #8]
	add	x10, x8, x10, lsl #3
	ldr	w10, [x10, #4]
	ldr	x11, [x19, #24]
	str	w10, [x11]
	ldrsw	x9, [x9, #8]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
	str	w8, [x11, #4]
	mov	x0, x20
	bl	_mutex_unlock
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #12]
	mov	x0, x19
	bl	_adb_write_done
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_adb_handler_mutex,4,2          ; @adb_handler_mutex
	.comm	_adb_handler,8,3                ; @adb_handler
	.no_dead_strip	_do_adb_query
.subsections_via_symbols
