	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_usb_reset_device
_if_usb_reset_device:                   ## @if_usb_reset_device
	.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
	movq	8(%r15), %rbx
	movq	_LBTF_DEB_USB@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_lbtf_deb_enter
	movq	_CMD_TYPE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	8(%r15), %rcx
	movl	%eax, (%rcx)
	movq	_CMD_802_11_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 192(%rbx)
	movl	$40, %edi
	callq	_cpu_to_le16
	movq	%rax, 184(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, 176(%rbx)
	movl	$23130, %edi                    ## imm = 0x5A5A
	callq	_cpu_to_le16
	movq	%rax, 168(%rbx)
	movq	_CMD_ACT_HALT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 160(%rbx)
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	movl	$44, %edx
	xorl	%ecx, %ecx
	callq	_usb_tx_block
	movl	$100, %edi
	callq	_msleep
	movl	(%r15), %edi
	callq	_usb_reset_device
	movl	%eax, %ebx
	movl	$100, %edi
	callq	_msleep
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_lbtf_deb_leave_args
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LBTF_DEB_USB,4,2               ## @LBTF_DEB_USB
	.comm	_CMD_TYPE_REQUEST,4,2           ## @CMD_TYPE_REQUEST
	.comm	_CMD_802_11_RESET,4,2           ## @CMD_802_11_RESET
	.comm	_CMD_ACT_HALT,4,2               ## @CMD_ACT_HALT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ret %d"

	.no_dead_strip	_if_usb_reset_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_usb_reset_device
_if_usb_reset_device:                   ; @if_usb_reset_device
	.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
	ldr	x19, [x0]
	ldr	x21, [x19, #8]
Lloh0:
	adrp	x20, _LBTF_DEB_USB@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LBTF_DEB_USB@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_lbtf_deb_enter
Lloh2:
	adrp	x8, _CMD_TYPE_REQUEST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_TYPE_REQUEST@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	str	w0, [x8]
Lloh5:
	adrp	x8, _CMD_802_11_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMD_802_11_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #192]
	mov	w0, #40
	bl	_cpu_to_le16
	str	x0, [x21, #184]
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x21, #176]
	mov	w0, #23130
	bl	_cpu_to_le16
	str	x0, [x21, #168]
Lloh8:
	adrp	x8, _CMD_ACT_HALT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_ACT_HALT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #160]
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #44
	mov	w3, #0
	bl	_usb_tx_block
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x19]
	bl	_usb_reset_device
	mov	x19, x0
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_lbtf_deb_leave_args
	mov	x0, 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 AdrpAdd	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	_LBTF_DEB_USB,4,2               ; @LBTF_DEB_USB
	.comm	_CMD_TYPE_REQUEST,4,2           ; @CMD_TYPE_REQUEST
	.comm	_CMD_802_11_RESET,4,2           ; @CMD_802_11_RESET
	.comm	_CMD_ACT_HALT,4,2               ; @CMD_ACT_HALT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ret %d"

	.no_dead_strip	_if_usb_reset_device
.subsections_via_symbols
