	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_dmac_soft_reset
_usb_dmac_soft_reset:                   ## @usb_dmac_soft_reset
	.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
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_to_usb_dmac
	movq	%rax, %r14
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_usb_dmac_chan_is_busy
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_3
LBB0_5:
	movq	_USB_DMAOR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_usb_dmac_write
	movq	_USB_DMASWR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_USB_DMASWR_SWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_usb_dmac_write
	movl	$100, %edi
	callq	_udelay
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_usb_dmac_write
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_dmac_write                 ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_DMAOR,4,2                  ## @USB_DMAOR
	.comm	_USB_DMASWR,4,2                 ## @USB_DMASWR
	.comm	_USB_DMASWR_SWR,4,2             ## @USB_DMASWR_SWR
	.no_dead_strip	_usb_dmac_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_dmac_soft_reset
_usb_dmac_soft_reset:                   ; @usb_dmac_soft_reset
	.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	x20, x0
	ldr	w0, [x0]
	bl	_to_usb_dmac
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_usb_dmac_chan_is_busy
	cbnz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_2
LBB0_4:
Lloh0:
	adrp	x20, _USB_DMAOR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _USB_DMAOR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_usb_dmac_write
Lloh2:
	adrp	x21, _USB_DMASWR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _USB_DMASWR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _USB_DMASWR_SWR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_DMASWR_SWR@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_usb_dmac_write
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_usb_dmac_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	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	_usb_dmac_write
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_DMAOR,4,2                  ; @USB_DMAOR
	.comm	_USB_DMASWR,4,2                 ; @USB_DMASWR
	.comm	_USB_DMASWR_SWR,4,2             ; @USB_DMASWR_SWR
	.no_dead_strip	_usb_dmac_soft_reset
.subsections_via_symbols
