	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function control_write
_control_write:                         ## @control_write
	.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
	movl	%r9d, %ebx
	movq	%r8, %r15
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_REQUEST_WRITE@GOTPCREL(%rip), %rax
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rdi
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rdx
	movb	(%rdx), %r13b
	orb	(%rdi), %r13b
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpb	%sil, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_USB_RECIP_OTHER@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rax
LBB0_3:
	orb	(%rax), %r13b
	movl	4(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	movl	%ebx, %ecx
	callq	_netdev_dbg
	movzwl	%bx, %r14d
	testq	%r15, %r15
	je	LBB0_4
## %bb.6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_kmemdup
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_5
## %bb.7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	movl	(%r12), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	subq	$8, %rsp
	movzbl	-44(%rbp), %edx                 ## 1-byte Folded Reload
	movzbl	%r13b, %ecx
	movzwl	-48(%rbp), %r8d                 ## 2-byte Folded Reload
	movzwl	-52(%rbp), %r9d                 ## 2-byte Folded Reload
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%r14
	pushq	%r15
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	%r15, %rdi
	callq	_kfree
	xorl	%eax, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQUEST_WRITE,1,0              ## @REQUEST_WRITE
	.comm	_USB_DIR_OUT,1,0                ## @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,1,0            ## @USB_TYPE_VENDOR
	.comm	_USB_RECIP_OTHER,1,0            ## @USB_RECIP_OTHER
	.comm	_USB_RECIP_DEVICE,1,0           ## @USB_RECIP_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Control_write() index=0x%02x size=%d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_control_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function control_write
_control_write:                         ; @control_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x6
	mov	x19, x5
	mov	x25, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _REQUEST_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQUEST_WRITE@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh2:
	adrp	x9, _USB_DIR_OUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USB_DIR_OUT@GOTPAGEOFF]
	ldrb	w26, [x9]
Lloh4:
	adrp	x9, _USB_TYPE_VENDOR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _USB_TYPE_VENDOR@GOTPAGEOFF]
	ldrb	w27, [x9]
Lloh6:
	adrp	x9, _USB_RECIP_OTHER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_RECIP_OTHER@GOTPAGEOFF]
Lloh8:
	adrp	x10, _USB_RECIP_DEVICE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _USB_RECIP_DEVICE@GOTPAGEOFF]
	cmp	w8, w1
	csel	x8, x9, x10, eq
	ldrb	w28, [x8]
	ldr	w0, [x0, #4]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x3
	mov	x3, x5
	bl	_netdev_dbg
	cbz	x25, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x25
	mov	x1, x19
	bl	_kmemdup
	mov	x25, x0
	cbz	x0, LBB0_3
LBB0_2:
	orr	w8, w27, w26
	orr	w26, w8, w28
	ldr	w24, [x24]
	mov	x0, x24
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	str	w22, [sp]
	and	w3, w26, #0xff
	mov	x0, x24
	mov	x2, x23
	mov	x4, x21
	mov	x5, x20
	mov	x6, x25
	mov	x7, x19
	bl	_usb_control_msg
	mov	x0, x25
	bl	_kfree
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_REQUEST_WRITE,1,0              ; @REQUEST_WRITE
	.comm	_USB_DIR_OUT,1,0                ; @USB_DIR_OUT
	.comm	_USB_TYPE_VENDOR,1,0            ; @USB_TYPE_VENDOR
	.comm	_USB_RECIP_OTHER,1,0            ; @USB_RECIP_OTHER
	.comm	_USB_RECIP_DEVICE,1,0           ; @USB_RECIP_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Control_write() index=0x%02x size=%d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_control_write
.subsections_via_symbols
