	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function es2_destroy
_es2_destroy:                           ## @es2_destroy
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	64(%rdi), %edi
	callq	_debugfs_remove
	movq	%r14, %rdi
	callq	_usb_log_disable
	movq	_NUM_CPORT_OUT_URB@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r14), %rax
	movq	(%rax,%rbx,8), %r12
	movq	%r12, %rdi
	callq	_usb_kill_urb
	movq	%r12, %rdi
	callq	_usb_free_urb
	movq	56(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r14), %rax
	movl	$0, (%rax,%rbx,4)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	_NUM_ARPC_IN_URB@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_usb_free_urb
	movq	40(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movq	40(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_NUM_CPORT_IN_URB@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_usb_free_urb
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_kfree
	movq	24(%r14), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	movl	8(%r14), %edi
	movq	_ES2_CPORT_CDSI1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gb_hd_cport_release_reserved
	movl	8(%r14), %edi
	movq	_ES2_CPORT_CDSI0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gb_hd_cport_release_reserved
	movq	16(%r14), %rbx
	movl	8(%r14), %edi
	callq	_gb_hd_put
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_put_dev                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_CPORT_OUT_URB,4,2          ## @NUM_CPORT_OUT_URB
	.comm	_NUM_ARPC_IN_URB,4,2            ## @NUM_ARPC_IN_URB
	.comm	_NUM_CPORT_IN_URB,4,2           ## @NUM_CPORT_IN_URB
	.comm	_ES2_CPORT_CDSI1,4,2            ## @ES2_CPORT_CDSI1
	.comm	_ES2_CPORT_CDSI0,4,2            ## @ES2_CPORT_CDSI0
	.no_dead_strip	_es2_destroy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function es2_destroy
_es2_destroy:                           ; @es2_destroy
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0, #64]
	bl	_debugfs_remove
	mov	x0, x19
	bl	_usb_log_disable
Lloh0:
	adrp	x21, _NUM_CPORT_OUT_URB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NUM_CPORT_OUT_URB@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	lsl	x23, x22, #3
	ldr	x20, [x8, x23]
	mov	x0, x20
	bl	_usb_kill_urb
	mov	x0, x20
	bl	_usb_free_urb
	ldr	x8, [x19, #56]
	str	xzr, [x8, x23]
	ldr	x8, [x19]
	str	wzr, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
Lloh2:
	adrp	x20, _NUM_ARPC_IN_URB@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NUM_ARPC_IN_URB@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #48]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_usb_free_urb
	ldr	x8, [x19, #40]
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #40]
	str	xzr, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_6:
Lloh4:
	adrp	x20, _NUM_CPORT_IN_URB@GOTPAGE
Lloh5:
	ldr	x20, [x20, _NUM_CPORT_IN_URB@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	bl	_usb_free_urb
	ldr	x8, [x19, #24]
	ldr	x0, [x8, x22]
	bl	_kfree
	ldr	x8, [x19, #24]
	str	xzr, [x8, x22]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_8
LBB0_9:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _ES2_CPORT_CDSI1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ES2_CPORT_CDSI1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_gb_hd_cport_release_reserved
	ldr	w0, [x19, #8]
Lloh9:
	adrp	x8, _ES2_CPORT_CDSI0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ES2_CPORT_CDSI0@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_gb_hd_cport_release_reserved
	ldr	x20, [x19, #16]
	ldr	w0, [x19, #8]
	bl	_gb_hd_put
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_usb_put_dev
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_CPORT_OUT_URB,4,2          ; @NUM_CPORT_OUT_URB
	.comm	_NUM_ARPC_IN_URB,4,2            ; @NUM_ARPC_IN_URB
	.comm	_NUM_CPORT_IN_URB,4,2           ; @NUM_CPORT_IN_URB
	.comm	_ES2_CPORT_CDSI1,4,2            ; @ES2_CPORT_CDSI1
	.comm	_ES2_CPORT_CDSI0,4,2            ; @ES2_CPORT_CDSI0
	.no_dead_strip	_es2_destroy
.subsections_via_symbols
