	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udc_reset                      ## -- Begin function udc_reset
	.p2align	4, 0x90
_udc_reset:                             ## @udc_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	_udc_num_configuration@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.1:
	movq	_udc_ptr_conf@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_udc_iface_disable
	incq	%rbx
	movq	(%r15), %rax
	movq	(%rax), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_3
LBB0_4:
	movq	$0, (%r14)
	movq	_USB_DEV_STATUS_REMOTEWAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CPU_TO_LE16
	movq	_udc_device_status@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_UDC_REMOTEWAKEUP_DISABLE
LBB0_6:
	movq	_USB_DEV_STATUS_BUS_POWERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CPU_TO_LE16
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_udc_num_configuration,8,3      ## @udc_num_configuration
	.comm	_udc_ptr_conf,8,3               ## @udc_ptr_conf
	.comm	_USB_DEV_STATUS_REMOTEWAKEUP,4,2 ## @USB_DEV_STATUS_REMOTEWAKEUP
	.comm	_udc_device_status,4,2          ## @udc_device_status
	.comm	_USB_DEV_STATUS_BUS_POWERED,4,2 ## @USB_DEV_STATUS_BUS_POWERED
	.comm	_USB_DEV_STATUS_SELF_POWERED,4,2 ## @USB_DEV_STATUS_SELF_POWERED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_udc_reset                      ; -- Begin function udc_reset
	.p2align	2
_udc_reset:                             ; @udc_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
Lloh0:
	adrp	x20, _udc_num_configuration@GOTPAGE
Lloh1:
	ldr	x20, [x20, _udc_num_configuration@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x21, _udc_ptr_conf@GOTPAGE
Lloh3:
	ldr	x21, [x21, _udc_ptr_conf@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x19, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_udc_iface_disable
	add	x19, x19, #1
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cmp	x19, x8
	b.lt	LBB0_3
LBB0_4:
	str	xzr, [x20]
Lloh4:
	adrp	x8, _USB_DEV_STATUS_REMOTEWAKEUP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_DEV_STATUS_REMOTEWAKEUP@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_CPU_TO_LE16
Lloh7:
	adrp	x19, _udc_device_status@GOTPAGE
Lloh8:
	ldr	x19, [x19, _udc_device_status@GOTPAGEOFF]
	ldr	w8, [x19]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
	bl	_UDC_REMOTEWAKEUP_DISABLE
LBB0_6:
Lloh9:
	adrp	x8, _USB_DEV_STATUS_BUS_POWERED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_DEV_STATUS_BUS_POWERED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_CPU_TO_LE16
	str	w0, [x19]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_udc_num_configuration,8,3      ; @udc_num_configuration
	.comm	_udc_ptr_conf,8,3               ; @udc_ptr_conf
	.comm	_USB_DEV_STATUS_REMOTEWAKEUP,4,2 ; @USB_DEV_STATUS_REMOTEWAKEUP
	.comm	_udc_device_status,4,2          ; @udc_device_status
	.comm	_USB_DEV_STATUS_BUS_POWERED,4,2 ; @USB_DEV_STATUS_BUS_POWERED
	.comm	_USB_DEV_STATUS_SELF_POWERED,4,2 ; @USB_DEV_STATUS_SELF_POWERED
.subsections_via_symbols
