	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_host_modem_test
_exec_host_modem_test:                  ## @exec_host_modem_test
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	%esi, %edi
	movl	%edx, %esi
	callq	_find_usb_device
	testq	%rax, %rax
	je	LBB0_49
## %bb.1:
	movq	%rax, %r13
	cmpq	$0, 64(%r14)
	je	LBB0_3
## %bb.2:
	subq	$8, %rsp
	leaq	-56(%rbp), %rax
	leaq	-64(%rbp), %rbx
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movl	$255, %esi
	movl	$255, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	jmp	LBB0_4
LBB0_49:
	leaq	L_str.12(%rip), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_puts                           ## TAILCALL
LBB0_3:
	subq	$8, %rsp
	leaq	-56(%rbp), %rax
	leaq	-64(%rbp), %rbx
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movl	$2, %esi
	movl	$2, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	pushq	$1
LBB0_4:
	pushq	%rax
	pushq	%rbx
	callq	_find_usb_endpoints
	addq	$32, %rsp
	cmpq	$0, -64(%rbp)
	je	LBB0_6
## %bb.5:
	cmpq	$0, -56(%rbp)
	je	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	callq	_libusb20_dev_get_desc
	movq	-48(%rbp), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_libusb20_dev_open
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_str.10(%rip), %rdi
	jmp	LBB0_47
LBB0_6:
	leaq	L_str.11(%rip), %rdi
LBB0_47:
	callq	_puts
LBB0_48:
	movq	%r13, %rdi
	callq	_libusb20_dev_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_libusb20_dev_detach_kernel_driver
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_str.9(%rip), %rdi
	callq	_puts
LBB0_11:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_libusb20_tr_get_pointer
	movq	%rax, 56(%r14)
	movq	-64(%rbp), %rcx
	movq	%rax, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	$1, %edx
	callq	_libusb20_tr_open
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	-64(%rbp), %rsi
	jmp	LBB0_13
LBB0_14:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_libusb20_tr_get_pointer
	movq	%rax, 48(%r14)
	movq	-56(%rbp), %rcx
	movq	%rax, %rdi
	movl	$16384, %esi                    ## imm = 0x4000
	movl	$1, %edx
	callq	_libusb20_tr_open
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movq	-56(%rbp), %rsi
LBB0_13:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_48
LBB0_16:
	movq	%r13, 40(%r14)
	movq	-48(%rbp), %rax
	movq	%rax, 32(%r14)
	movq	$0, 24(%r14)
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	movl	$7, %edx
	cmoveq	%rcx, %rdx
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
	addq	%rdx, %r12
	je	LBB0_17
## %bb.18:
	testq	%rcx, %rcx
	je	LBB0_41
## %bb.19:
	leaq	-1(%r12), %r15
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_20
## %bb.21:
	cqto
	idivq	%r12
	jmp	LBB0_22
LBB0_17:
	leaq	L_str.8(%rip), %rdi
	callq	_puts
	jmp	LBB0_46
LBB0_20:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_22:
	movl	$1, %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_modem_control_ep_test
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_23
## %bb.24:
	cqto
	idivq	%r12
	jmp	LBB0_25
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_25:
	movl	$2, %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_modem_control_ep_test
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_26
## %bb.27:
	cqto
	idivq	%r12
	jmp	LBB0_28
LBB0_26:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_28:
	movl	$3, %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_modem_control_ep_test
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_29
## %bb.30:
	cqto
	idivq	%r12
	jmp	LBB0_31
LBB0_29:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_31:
	movl	$4, %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_modem_control_ep_test
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_32
## %bb.33:
	cqto
	idivq	%r12
	jmp	LBB0_34
LBB0_32:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_34:
	movl	$5, %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_modem_control_ep_test
	movq	(%r14), %rax
	addq	%r15, %rax
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_35
## %bb.36:
	cqto
	idivq	%r12
	jmp	LBB0_37
LBB0_35:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_37:
	movl	$6, %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_modem_control_ep_test
	addq	(%r14), %r15
	movq	%r15, %rax
	shrq	$32, %rax
	je	LBB0_38
## %bb.39:
	movq	%r15, %rax
	cqto
	idivq	%r12
	jmp	LBB0_40
LBB0_38:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_40:
	movl	$7, %edx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_modem_control_ep_test
	movq	8(%r14), %rax
LBB0_41:
	testq	%rax, %rax
	je	LBB0_46
## %bb.42:
	movq	(%r14), %rax
	addq	%r12, %rax
	decq	%rax
	movq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_43
## %bb.44:
	cqto
	idivq	%r12
	jmp	LBB0_45
LBB0_43:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
                                        ## kill: def $eax killed $eax def $rax
LBB0_45:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_usb_modem_data_stress_test
LBB0_46:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_47
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"Attaching to: %s @ iface %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Could not open USB endpoint %d\n"

L_str:                                  ## @str
	.asciz	"\nDone"

L_str.8:                                ## @str.8
	.asciz	"No tests selected"

L_str.9:                                ## @str.9
	.asciz	"WARNING: Could not detach kernel driver"

L_str.10:                               ## @str.10
	.asciz	"Could not open USB device"

L_str.11:                               ## @str.11
	.asciz	"Could not find USB endpoints"

L_str.12:                               ## @str.12
	.asciz	"USB device not found"

	.no_dead_strip	_exec_host_modem_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_host_modem_test
_exec_host_modem_test:                  ; @exec_host_modem_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x0
	mov	x0, x1
	mov	x1, x2
	bl	_find_usb_device
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_4
; %bb.2:
	str	wzr, [sp]
	add	x5, sp, #24
	add	x6, sp, #40
	add	x7, sp, #32
	mov	x0, x19
	mov	w1, #255
	mov	w2, #255
	mov	w3, #255
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x0, l_str.12@PAGE
Lloh1:
	add	x0, x0, l_str.12@PAGEOFF
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_puts
LBB0_4:
	mov	w8, #1
	str	w8, [sp]
	add	x5, sp, #24
	add	x6, sp, #40
	add	x7, sp, #32
	mov	x0, x19
	mov	w1, #2
	mov	w2, #2
	mov	w3, #1
LBB0_5:
	mov	w4, #0
	bl	_find_usb_endpoints
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_libusb20_dev_get_desc
	ldr	x8, [sp, #24]
	stp	x0, x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	x0, x19
	mov	w1, #2
	bl	_libusb20_dev_open
	cbz	x0, LBB0_12
; %bb.8:
Lloh4:
	adrp	x0, l_str.10@PAGE
Lloh5:
	add	x0, x0, l_str.10@PAGEOFF
	b	LBB0_10
LBB0_9:
Lloh6:
	adrp	x0, l_str.11@PAGE
Lloh7:
	add	x0, x0, l_str.11@PAGEOFF
LBB0_10:
	bl	_puts
LBB0_11:
	mov	x0, x19
	bl	_libusb20_dev_free
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_libusb20_dev_detach_kernel_driver
	cbz	x0, LBB0_14
; %bb.13:
Lloh8:
	adrp	x0, l_str.9@PAGE
Lloh9:
	add	x0, x0, l_str.9@PAGEOFF
	bl	_puts
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	bl	_libusb20_tr_get_pointer
	str	x0, [x20, #56]
	ldr	x3, [sp, #40]
	mov	w1, #16384
	mov	w2, #1
	bl	_libusb20_tr_open
	cbz	w0, LBB0_16
; %bb.15:
	ldr	x8, [sp, #40]
	b	LBB0_18
LBB0_16:
	mov	x0, x19
	mov	w1, #1
	bl	_libusb20_tr_get_pointer
	str	x0, [x20, #48]
	ldr	x3, [sp, #32]
	mov	w1, #16384
	mov	w2, #1
	bl	_libusb20_tr_open
	cbz	w0, LBB0_19
; %bb.17:
	ldr	x8, [sp, #32]
LBB0_18:
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	b	LBB0_11
LBB0_19:
	ldr	x8, [sp, #24]
	stp	x8, x19, [x20, #32]
	str	xzr, [x20, #24]
	mov	w10, #7
	ldp	x8, x9, [x20, #8]
	cmp	x9, #0
	csel	x10, xzr, x10, eq
	cmp	x8, #0
	cinc	x21, x10, ne
	cbz	x21, LBB0_24
; %bb.20:
	cbz	x9, LBB0_22
; %bb.21:
	sub	x22, x21, #1
	ldr	x8, [x20]
	add	x8, x22, x8
	sdiv	x1, x8, x21
	mov	x0, x20
	mov	w2, #1
	bl	_usb_modem_control_ep_test
	ldr	x8, [x20]
	add	x8, x22, x8
	sdiv	x1, x8, x21
	mov	x0, x20
	mov	w2, #2
	bl	_usb_modem_control_ep_test
	ldr	x8, [x20]
	add	x8, x22, x8
	sdiv	x1, x8, x21
	mov	x0, x20
	mov	w2, #3
	bl	_usb_modem_control_ep_test
	ldr	x8, [x20]
	add	x8, x22, x8
	sdiv	x1, x8, x21
	mov	x0, x20
	mov	w2, #4
	bl	_usb_modem_control_ep_test
	ldr	x8, [x20]
	add	x8, x22, x8
	sdiv	x1, x8, x21
	mov	x0, x20
	mov	w2, #5
	bl	_usb_modem_control_ep_test
	ldr	x8, [x20]
	add	x8, x22, x8
	sdiv	x1, x8, x21
	mov	x0, x20
	mov	w2, #6
	bl	_usb_modem_control_ep_test
	ldr	x8, [x20]
	add	x8, x22, x8
	sdiv	x1, x8, x21
	mov	x0, x20
	mov	w2, #7
	bl	_usb_modem_control_ep_test
	ldr	x8, [x20, #8]
LBB0_22:
	cbz	x8, LBB0_25
; %bb.23:
	ldr	x8, [x20]
	add	x8, x21, x8
	sub	x8, x8, #1
	sdiv	x1, x8, x21
	mov	x0, x20
	bl	_usb_modem_data_stress_test
	b	LBB0_25
LBB0_24:
Lloh12:
	adrp	x0, l_str.8@PAGE
Lloh13:
	add	x0, x0, l_str.8@PAGEOFF
	bl	_puts
LBB0_25:
Lloh14:
	adrp	x0, l_str@PAGE
Lloh15:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"Attaching to: %s @ iface %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Could not open USB endpoint %d\n"

l_str:                                  ; @str
	.asciz	"\nDone"

l_str.8:                                ; @str.8
	.asciz	"No tests selected"

l_str.9:                                ; @str.9
	.asciz	"WARNING: Could not detach kernel driver"

l_str.10:                               ; @str.10
	.asciz	"Could not open USB device"

l_str.11:                               ; @str.11
	.asciz	"Could not find USB endpoints"

l_str.12:                               ; @str.12
	.asciz	"USB device not found"

	.no_dead_strip	_exec_host_modem_test
.subsections_via_symbols
