	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adb_host_dev_recv
_adb_host_dev_recv:                     ## @adb_host_dev_recv
	.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	%edi, %ebx
	xorl	%eax, %eax
	callq	_cli
	xorl	%eax, %eax
	callq	_attention
	orl	$12, %ebx
	movl	%ebx, %edi
	callq	_send_byte
	xorl	%eax, %eax
	callq	_place_bit0
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_wait_data_hi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_wait_data_lo
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	xorl	%r15d, %r15d
	movl	$-17, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	orl	$1, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r14d
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$130, %edi
	callq	_wait_data_hi
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_wait_data_lo
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$130, %ecx
	subl	%ebx, %ecx
	subl	%eax, %ebx
	addl	%r15d, %r15d
	cmpl	%ebx, %ecx
	jl	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-17, %r14d
	jne	LBB0_8
## %bb.13:
	xorl	%eax, %eax
	callq	_sei
	movl	$-20, %r14d
	jmp	LBB0_17
LBB0_1:
	xorl	%eax, %eax
	callq	_sei
	movl	$-30, %r14d
	jmp	LBB0_17
LBB0_15:
	xorl	%r14d, %r14d
LBB0_16:
	xorl	%eax, %eax
	callq	_sei
LBB0_17:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$351, %edi                      ## imm = 0x15F
	callq	_wait_data_hi
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	$91, %edi
	callq	_wait_data_lo
	testq	%rax, %rax
	je	LBB0_14
LBB0_11:
	xorl	%eax, %eax
	callq	_sei
	movl	$-21, %r14d
	jmp	LBB0_17
LBB0_14:
	xorl	%eax, %eax
	callq	_sei
	movl	%r15d, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adb_host_dev_recv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adb_host_dev_recv
_adb_host_dev_recv:                     ; @adb_host_dev_recv
	.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	x19, x0
	bl	_cli
	bl	_attention
	orr	w0, w19, #0xc
	bl	_send_byte
	bl	_place_bit0
	mov	w0, #500
	bl	_wait_data_hi
	cbz	w0, LBB0_10
; %bb.1:
	mov	w0, #500
	bl	_wait_data_lo
	cbz	x0, LBB0_11
; %bb.2:
	mov	w21, #0
	mov	w19, #-17
	mov	w22, #130
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	orr	w21, w21, #0x1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	adds	w19, w19, #1
	b.hs	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #130
	bl	_wait_data_hi
	cbz	w0, LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x0
	bl	_wait_data_lo
	cbz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w20, w0
	lsl	w21, w21, #1
	sub	w9, w22, w20
	cmp	w9, w8
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	cmn	w19, #17
	b.ne	LBB0_4
; %bb.9:
	bl	_sei
	mov	w19, #-20
	b	LBB0_17
LBB0_10:
	bl	_sei
	mov	w19, #-30
	b	LBB0_17
LBB0_11:
	bl	_sei
	mov	w19, #0
	b	LBB0_17
LBB0_12:
	bl	_sei
	b	LBB0_17
LBB0_13:
	mov	w0, #351
	bl	_wait_data_hi
	cbz	w0, LBB0_15
; %bb.14:
	mov	w0, #91
	bl	_wait_data_lo
	cbz	x0, LBB0_16
LBB0_15:
	bl	_sei
	mov	w19, #-21
	b	LBB0_17
LBB0_16:
	bl	_sei
	mov	x19, x21
LBB0_17:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adb_host_dev_recv
.subsections_via_symbols
