	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nlm_usb_hw_reset
_nlm_usb_hw_reset:                      ## @nlm_usb_hw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nlm_get_usb_regbase
	movl	%eax, %ebx
	movq	_USB_PHY_0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%eax, %edi
	callq	_nlm_read_usb_reg
	movq	_USB_PHY_RESET@GOTPCREL(%rip), %rcx
	movq	_USB_PHY_PORT_RESET_0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_USB_PHY_PORT_RESET_1@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_nlm_write_usb_reg
	movl	$100, %edi
	callq	_DELAY
	movq	_USB_CTL_0@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_nlm_read_usb_reg
	movq	_USB_CONTROLLER_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	$4, %edx
	movl	(%r14), %esi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nlm_write_usb_reg              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_PHY_0,4,2                  ## @USB_PHY_0
	.comm	_USB_PHY_RESET,4,2              ## @USB_PHY_RESET
	.comm	_USB_PHY_PORT_RESET_0,4,2       ## @USB_PHY_PORT_RESET_0
	.comm	_USB_PHY_PORT_RESET_1,4,2       ## @USB_PHY_PORT_RESET_1
	.comm	_USB_CTL_0,4,2                  ## @USB_CTL_0
	.comm	_USB_CONTROLLER_RESET,4,2       ## @USB_CONTROLLER_RESET
	.no_dead_strip	_nlm_usb_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nlm_usb_hw_reset
_nlm_usb_hw_reset:                      ; @nlm_usb_hw_reset
	.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	_nlm_get_usb_regbase
	mov	x19, x0
Lloh0:
	adrp	x20, _USB_PHY_0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _USB_PHY_0@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_nlm_read_usb_reg
Lloh2:
	adrp	x8, _USB_PHY_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_PHY_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _USB_PHY_PORT_RESET_0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _USB_PHY_PORT_RESET_0@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _USB_PHY_PORT_RESET_1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_PHY_PORT_RESET_1@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_nlm_write_usb_reg
	mov	w0, #100
	bl	_DELAY
Lloh11:
	adrp	x20, _USB_CTL_0@GOTPAGE
Lloh12:
	ldr	x20, [x20, _USB_CTL_0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_nlm_read_usb_reg
Lloh13:
	adrp	x8, _USB_CONTROLLER_RESET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _USB_CONTROLLER_RESET@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	bic	w8, w0, w8
	orr	w2, w8, #0x4
	ldr	w1, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nlm_write_usb_reg
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_PHY_0,4,2                  ; @USB_PHY_0
	.comm	_USB_PHY_RESET,4,2              ; @USB_PHY_RESET
	.comm	_USB_PHY_PORT_RESET_0,4,2       ; @USB_PHY_PORT_RESET_0
	.comm	_USB_PHY_PORT_RESET_1,4,2       ; @USB_PHY_PORT_RESET_1
	.comm	_USB_CTL_0,4,2                  ; @USB_CTL_0
	.comm	_USB_CONTROLLER_RESET,4,2       ; @USB_CONTROLLER_RESET
	.no_dead_strip	_nlm_usb_hw_reset
.subsections_via_symbols
