	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hso_serial_common_free
_hso_serial_common_free:                ## @hso_serial_common_free
	.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	%rdi, %r14
	movq	40(%rdi), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_dev_attr_hsotype@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_2:
	movq	_tty_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %esi
	callq	_tty_unregister_device
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_usb_free_urb
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_kfree
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movl	8(%r14), %edi
	callq	_usb_free_urb
	movl	4(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_hsotype,4,2           ## @dev_attr_hsotype
	.comm	_tty_drv,4,2                    ## @tty_drv
	.no_dead_strip	_hso_serial_common_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hso_serial_common_free
_hso_serial_common_free:                ; @hso_serial_common_free
	.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
	ldr	x8, [x0, #40]
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, _dev_attr_hsotype@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_hsotype@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_2:
Lloh2:
	adrp	x8, _tty_drv@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tty_drv@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_tty_unregister_device
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	lsl	x21, x20, #2
	ldr	w0, [x8, x21]
	bl	_usb_free_urb
	ldr	x8, [x19, #16]
	ldr	w0, [x8, x21]
	bl	_kfree
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	ldr	w0, [x19, #8]
	bl	_usb_free_urb
	ldr	w0, [x19, #4]
	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
	b	_kfree
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_hsotype,4,2           ; @dev_attr_hsotype
	.comm	_tty_drv,4,2                    ; @tty_drv
	.no_dead_strip	_hso_serial_common_free
.subsections_via_symbols
