	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_stop_serial_device
_hso_stop_serial_device:                ## @hso_stop_serial_device
	.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
	callq	_dev2ser
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r14
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_usb_kill_urb
	movq	40(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_6:
	movq	$0, 32(%r14)
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_usb_kill_urb
LBB0_8:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.9:
	addq	$8, %rdi
	callq	_mutex_lock
	movq	16(%r14), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	decq	%rax
	movq	%rax, (%rdi)
	jne	LBB0_13
## %bb.11:
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %rdi
	callq	_usb_kill_urb
	movq	16(%r14), %rdi
LBB0_13:
	addq	$8, %rdi
	callq	_mutex_unlock
LBB0_14:
	movq	8(%r14), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.15:
	leaq	8(%rbx), %rdi
	callq	_wake_up_interruptible
	movq	(%rbx), %rdi
	callq	_usb_kill_urb
	jmp	LBB0_16
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_16:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_hso_stop_serial_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_stop_serial_device
_hso_stop_serial_device:                ; @hso_stop_serial_device
	.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
	bl	_dev2ser
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #48]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_usb_kill_urb
	ldr	x8, [x19, #40]
	str	xzr, [x8, x20, lsl #3]
	ldr	w8, [x19]
	b	LBB0_3
LBB0_6:
	str	xzr, [x19, #32]
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_8
; %bb.7:
	bl	_usb_kill_urb
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_14
; %bb.9:
	add	x0, x8, #8
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_13
; %bb.10:
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_13
; %bb.11:
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_usb_kill_urb
	ldr	x8, [x19, #16]
LBB0_13:
	add	x0, x8, #8
	bl	_mutex_unlock
LBB0_14:
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_16
; %bb.15:
	add	x0, x19, #8
	bl	_wake_up_interruptible
	ldr	x0, [x19]
	bl	_usb_kill_urb
LBB0_16:
	mov	w0, #0
	b	LBB0_18
LBB0_17:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_hso_stop_serial_device
.subsections_via_symbols
