	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _usb_writen_sync
__usb_writen_sync:                      ## @_usb_writen_sync
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rdi
	callq	_to_usb_device
	movq	%rax, %rbx
	movq	_REALTEK_USB_VENQT_CMD_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_REALTEK_USB_VENQT_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_REALTEK_USB_VENQT_CMD_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movl	%eax, %r14d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_kmemdup
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movzwl	-48(%rbp), %r8d                 ## 2-byte Folded Reload
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	$50
	pushq	%r15
	pushq	%rax
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
LBB0_1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REALTEK_USB_VENQT_CMD_REQ,4,2  ## @REALTEK_USB_VENQT_CMD_REQ
	.comm	_REALTEK_USB_VENQT_WRITE,4,2    ## @REALTEK_USB_VENQT_WRITE
	.comm	_REALTEK_USB_VENQT_CMD_IDX,8,3  ## @REALTEK_USB_VENQT_CMD_IDX
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	__usb_writen_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _usb_writen_sync
__usb_writen_sync:                      ; @_usb_writen_sync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x26, x2
	mov	x20, x1
	ldr	x0, [x0]
	bl	_to_usb_device
	mov	x21, x0
Lloh0:
	adrp	x8, _REALTEK_USB_VENQT_CMD_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REALTEK_USB_VENQT_CMD_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _REALTEK_USB_VENQT_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REALTEK_USB_VENQT_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _REALTEK_USB_VENQT_CMD_IDX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REALTEK_USB_VENQT_CMD_IDX@GOTPAGEOFF]
Lloh8:
	ldr	x24, [x8]
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x25, x0
Lloh9:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x26
	mov	x1, x19
	bl	_kmemdup
	cbz	x0, LBB0_2
; %bb.1:
	mov	x26, x0
	and	w4, w20, #0xffff
	mov	w8, #50
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x22
	mov	x3, x23
	mov	x5, x24
	mov	x6, x26
	mov	x7, x19
	bl	_usb_control_msg
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_kfree
LBB0_2:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REALTEK_USB_VENQT_CMD_REQ,4,2  ; @REALTEK_USB_VENQT_CMD_REQ
	.comm	_REALTEK_USB_VENQT_WRITE,4,2    ; @REALTEK_USB_VENQT_WRITE
	.comm	_REALTEK_USB_VENQT_CMD_IDX,8,3  ; @REALTEK_USB_VENQT_CMD_IDX
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	__usb_writen_sync
.subsections_via_symbols
