	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0700_set_usb_xfer_len
_dib0700_set_usb_xfer_len:              ## @dib0700_set_usb_xfer_len
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -16(%rbp)
	movq	(%rdi), %rcx
	cmpl	$66049, (%rcx)                  ## imm = 0x10201
	jl	LBB0_2
## %bb.1:
	movl	%esi, %eax
	movq	%rdi, %rbx
	movq	_REQUEST_SET_USB_XFER_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	movzbl	%ah, %ecx
	movl	%ecx, -24(%rbp)
	movzbl	%al, %ecx
	movl	%ecx, -20(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_deb_info
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$12, %edx
	callq	_dib0700_ctrl_wr
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_deb_info
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_REQUEST_SET_USB_XFER_LEN,4,2   ## @REQUEST_SET_USB_XFER_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set the USB xfer len to %i Ts packet\n"

L_.str.1:                               ## @.str.1
	.asciz	"this firmware does not allow to change the USB xfer len\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dib0700_set_usb_xfer_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0700_set_usb_xfer_len
_dib0700_set_usb_xfer_len:              ; @dib0700_set_usb_xfer_len
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x0]
	ldr	w8, [x8]
	mov	w9, #513
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _REQUEST_SET_USB_XFER_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQUEST_SET_USB_XFER_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ubfx	w9, w1, #8, #8
	stp	w8, w9, [sp, #12]
	and	w8, w1, #0xff
	str	w8, [sp, #20]
	str	x1, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #12
	bl	_dib0700_ctrl_wr
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldr	x8, [sp, #24]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_REQUEST_SET_USB_XFER_LEN,4,2   ; @REQUEST_SET_USB_XFER_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set the USB xfer len to %i Ts packet\n"

l_.str.1:                               ; @.str.1
	.asciz	"this firmware does not allow to change the USB xfer len\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dib0700_set_usb_xfer_len
.subsections_via_symbols
