	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p54u_device_reset
_p54u_device_reset:                     ## @p54u_device_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
	movq	(%rdi), %r14
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	movq	(%rsi), %rax
	movq	_USB_INTERFACE_BINDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	callq	_usb_reset_device
	movl	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_6
LBB0_7:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_2:
	callq	_usb_lock_device_for_reset
	movq	(%r14), %rdi
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	callq	_usb_reset_device
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_usb_unlock_device
	testl	%ebx, %ebx
	jne	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_8:
	movl	%ebx, %edx
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_INTERFACE_BINDING,8,3      ## @USB_INTERFACE_BINDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(p54usb) unable to lock device for reset (%d)!\n"

L_.str.1:                               ## @.str.1
	.asciz	"(p54usb) unable to reset device (%d)!\n"

	.no_dead_strip	_p54u_device_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p54u_device_reset
_p54u_device_reset:                     ; @p54u_device_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
	ldr	x20, [x0]
	ldp	x0, x1, [x20]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _USB_INTERFACE_BINDING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _USB_INTERFACE_BINDING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	bl	_usb_reset_device
	mov	x19, x0
	cbnz	w19, LBB0_4
	b	LBB0_7
LBB0_2:
	bl	_usb_lock_device_for_reset
	mov	x19, x0
	ldr	x0, [x20]
	tbnz	w19, #31, LBB0_5
; %bb.3:
	bl	_usb_reset_device
	mov	x19, x0
	ldr	x0, [x20]
	bl	_usb_unlock_device
	cbz	w19, LBB0_7
LBB0_4:
	ldr	x0, [x20]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x2, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_INTERFACE_BINDING,8,3      ; @USB_INTERFACE_BINDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(p54usb) unable to lock device for reset (%d)!\n"

l_.str.1:                               ; @.str.1
	.asciz	"(p54usb) unable to reset device (%d)!\n"

	.no_dead_strip	_p54u_device_reset
.subsections_via_symbols
