	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function control_read
_control_read:                          ## @control_read
	.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, -64(%rbp)                  ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_REQUEST_READ@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -43(%rbp)                  ## 1-byte Spill
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -42(%rbp)                  ## 1-byte Spill
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rax
	movb	(%rax), %r14b
	movq	_USB_RECIP_OTHER@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movq	_USB_RECIP_DEVICE@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	movl	4(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	movl	%r9d, %ecx
	callq	_netdev_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	orb	-42(%rbp), %r14b                ## 1-byte Folded Reload
	movq	%r12, %rcx
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	cmpb	%r12b, -43(%rbp)                ## 1-byte Folded Reload
	movzbl	-41(%rbp), %eax                 ## 1-byte Folded Reload
	movzbl	%r13b, %r13d
	cmovel	%eax, %r13d
	orb	%r14b, %r13b
	movl	(%rcx), %r14d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	subq	$8, %rsp
	movzwl	%bx, %ebx
	movzbl	%r13b, %ecx
	movzbl	%r12b, %edx
	movzwl	-52(%rbp), %r8d                 ## 2-byte Folded Reload
	movzwl	-56(%rbp), %r9d                 ## 2-byte Folded Reload
	movl	%r14d, %edi
	movl	%eax, %esi
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%rbx
	pushq	%r15
	callq	_usb_control_msg
	movq	%rbx, %rdx
	addq	$32, %rsp
	movl	%eax, %ebx
	cmpl	%edx, %eax
	jne	LBB0_4
## %bb.3:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	%r15, %rdi
	callq	_kfree
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQUEST_READ,1,0               ## @REQUEST_READ
	.comm	_USB_DIR_IN,1,0                 ## @USB_DIR_IN
	.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_read() 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_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function control_read
_control_read:                          ; @control_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	w6, w2, [sp, #24]               ; 8-byte Folded Spill
	mov	x19, x5
	str	x4, [sp, #16]                   ; 8-byte Folded Spill
	mov	x22, x3
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _REQUEST_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQUEST_READ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
	ldrb	w27, [x8]
	ldrb	w28, [x9]
Lloh4:
	adrp	x8, _USB_TYPE_VENDOR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh6:
	adrp	x9, _USB_RECIP_OTHER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_RECIP_OTHER@GOTPAGEOFF]
	ldrb	w23, [x8]
	ldrb	w20, [x9]
Lloh8:
	adrp	x8, _USB_RECIP_DEVICE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_RECIP_DEVICE@GOTPAGEOFF]
	ldrb	w24, [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
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	orr	w8, w23, w28
	cmp	w27, w25
	csel	w9, w20, w24, eq
	orr	w27, w8, w9
	ldr	w26, [x26]
	mov	x0, x26
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldp	w8, w4, [sp, #24]               ; 8-byte Folded Reload
	str	w8, [sp]
	mov	x0, x26
	mov	x2, x25
	mov	x3, x27
	mov	x5, x22
	mov	x6, x21
	mov	x7, x19
	bl	_usb_control_msg
	mov	x22, x0
	cmp	w0, w19
	b.ne	LBB0_4
; %bb.2:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x21
	mov	x2, x19
	bl	_memcpy
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	tbnz	w22, #31, LBB0_6
; %bb.5:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x21
	bl	_kfree
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_REQUEST_READ,1,0               ; @REQUEST_READ
	.comm	_USB_DIR_IN,1,0                 ; @USB_DIR_IN
	.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_read() 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_read
.subsections_via_symbols
