	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kaweth_reset
_kaweth_reset:                          ## @kaweth_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_dbg
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_USB_REQ_SET_CONFIGURATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %r8d
	movq	_KAWETH_CONTROL_TIMEOUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$0
	pushq	$0
	callq	_kaweth_control
	addq	$32, %rsp
	movl	%eax, %ebx
	movl	$10, %edi
	callq	_mdelay
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_dbg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kaweth_reset(%p)"

	.comm	_USB_REQ_SET_CONFIGURATION,4,2  ## @USB_REQ_SET_CONFIGURATION
	.comm	_KAWETH_CONTROL_TIMEOUT,4,2     ## @KAWETH_CONTROL_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"kaweth_reset() returns %d."

	.no_dead_strip	_kaweth_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kaweth_reset
_kaweth_reset:                          ; @kaweth_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg
	ldr	x0, [x19]
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh2:
	adrp	x8, _USB_REQ_SET_CONFIGURATION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _USB_REQ_SET_CONFIGURATION@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w4, [x8]
Lloh5:
	adrp	x8, _KAWETH_CONTROL_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KAWETH_CONTROL_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	w3, #0
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_kaweth_control
	mov	x19, x0
	mov	w0, #10
	bl	_mdelay
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kaweth_reset(%p)"

	.comm	_USB_REQ_SET_CONFIGURATION,4,2  ; @USB_REQ_SET_CONFIGURATION
	.comm	_KAWETH_CONTROL_TIMEOUT,4,2     ; @KAWETH_CONTROL_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"kaweth_reset() returns %d."

	.no_dead_strip	_kaweth_reset
.subsections_via_symbols
