	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0700_ctrl_rd                ## -- Begin function dib0700_ctrl_rd
	.p2align	4, 0x90
_dib0700_ctrl_rd:                       ## @dib0700_ctrl_rd
	.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
                                        ## kill: def $r8d killed $r8d def $r8
	cmpl	$1, %edx
	jg	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	%edx, %ebx
	cmpl	$5, %edx
	jb	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	leaq	L_.str.2(%rip), %rdi
	callq	_deb_data
	movq	_deb_data@GOTPCREL(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_debug_dump
	movl	%ebx, %r15d
	shll	$8, %r15d
	addl	$-512, %r15d                    ## imm = 0xFE00
	orl	4(%r13), %r15d
	xorl	%r14d, %r14d
	cmpl	$3, %ebx
	jb	LBB0_8
## %bb.6:
	movl	8(%r13), %r14d
	shll	$8, %r14d
	cmpl	$3, %ebx
	je	LBB0_8
## %bb.7:
	orl	12(%r13), %r14d
LBB0_8:
	movl	(%r12), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movl	(%r13), %edx
	movq	_USB_TYPE_VENDOR@GOTPCREL(%rip), %rsi
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rsi), %ecx
	movq	_USB_CTRL_GET_TIMEOUT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	pushq	%r10
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	pushq	%r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	pushq	%r15
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	callq	_deb_info
LBB0_10:
	leaq	L_.str.4(%rip), %rdi
	callq	_deb_data
	movq	_deb_data@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_debug_dump
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx buffer length is smaller than 2. Makes no sense."

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"tx buffer length is larger than 4. Not supported."

L_.str.2:                               ## @.str.2
	.asciz	">>> "

	.comm	_USB_TYPE_VENDOR,4,2            ## @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ## @USB_CTRL_GET_TIMEOUT
L_.str.3:                               ## @.str.3
	.asciz	"ep 0 read error (status = %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"<<< "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0700_ctrl_rd                ; -- Begin function dib0700_ctrl_rd
	.p2align	2
_dib0700_ctrl_rd:                       ; @dib0700_ctrl_rd
	.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
	cmp	w2, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x25, x2
	cmp	w2, #5
	b.lo	LBB0_5
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_5:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_data
Lloh9:
	adrp	x2, _deb_data@GOTPAGE
Lloh10:
	ldr	x2, [x2, _deb_data@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x25
	bl	_debug_dump
	lsl	w8, w25, #8
	sub	w8, w8, #512
	ldr	w9, [x21, #4]
	orr	w23, w9, w8
	cmp	w25, #3
	b.lo	LBB0_8
; %bb.6:
	ldr	w8, [x21, #8]
	lsl	w24, w8, #8
	cmp	w25, #3
	b.eq	LBB0_9
; %bb.7:
	ldr	w8, [x21, #12]
	orr	w24, w8, w24
	b	LBB0_9
LBB0_8:
	mov	w24, #0
LBB0_9:
	ldr	w22, [x22]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w2, [x21]
Lloh11:
	adrp	x8, _USB_TYPE_VENDOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh13:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh17:
	adrp	x8, _USB_CTRL_GET_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_CTRL_GET_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
	mov	x21, x0
	tbz	w0, #31, LBB0_11
; %bb.10:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_deb_info
LBB0_11:
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_deb_data
Lloh24:
	adrp	x2, _deb_data@GOTPAGE
Lloh25:
	ldr	x2, [x2, _deb_data@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_debug_dump
LBB0_12:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx buffer length is smaller than 2. Makes no sense."

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"tx buffer length is larger than 4. Not supported."

l_.str.2:                               ; @.str.2
	.asciz	">>> "

	.comm	_USB_TYPE_VENDOR,4,2            ; @USB_TYPE_VENDOR
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_CTRL_GET_TIMEOUT,4,2       ; @USB_CTRL_GET_TIMEOUT
l_.str.3:                               ; @.str.3
	.asciz	"ep 0 read error (status = %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"<<< "

.subsections_via_symbols
