	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_CMD_TYPE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_CMD_802_11_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 152(%rbx)
	movl	$8, %edi
	callq	_cpu_to_le16
	movq	%rax, 144(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, 136(%rbx)
	movl	$23130, %edi                    ## imm = 0x5A5A
	callq	_cpu_to_le16
	movq	%rax, 128(%rbx)
	movq	8(%r14), %rsi
	movq	%r14, %rdi
	movl	$36, %edx
	callq	_usb_tx_block
	movl	$100, %edi
	callq	_msleep
	movl	(%r14), %edi
	callq	_usb_reset_device
	movl	%eax, %ebx
	movl	$100, %edi
	callq	_msleep
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_TYPE_REQUEST,4,2           ## @CMD_TYPE_REQUEST
	.comm	_CMD_802_11_RESET,4,2           ## @CMD_802_11_RESET
	.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	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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _CMD_TYPE_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_TYPE_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	str	w0, [x8]
Lloh3:
	adrp	x8, _CMD_802_11_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_802_11_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #152]
	mov	w0, #8
	bl	_cpu_to_le16
	str	x0, [x20, #144]
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x20, #136]
	mov	w0, #23130
	bl	_cpu_to_le16
	str	x0, [x20, #128]
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #36
	bl	_usb_tx_block
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x19]
	bl	_usb_reset_device
	mov	x19, x0
	mov	w0, #100
	bl	_msleep
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_TYPE_REQUEST,4,2           ; @CMD_TYPE_REQUEST
	.comm	_CMD_802_11_RESET,4,2           ; @CMD_802_11_RESET
	.no_dead_strip	_if_usb_reset_device
.subsections_via_symbols
