	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r14
	cmpl	$66049, (%r14)                  ## imm = 0x10201
	jl	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movl	%esi, %r15d
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	_REQUEST_SET_USB_XFER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movl	%r15d, %edx
	movzbl	%dh, %eax
	movl	%eax, 4(%rcx)
	movzbl	%dl, %eax
	movl	%eax, 8(%rcx)
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_deb_info
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_dib0700_ctrl_wr
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_deb_info
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
	movl	%ebx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not acquire lock"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_REQUEST_SET_USB_XFER_LEN,4,2   ## @REQUEST_SET_USB_XFER_LEN
L_.str.1:                               ## @.str.1
	.asciz	"set the USB xfer len to %i Ts packet\n"

L_.str.2:                               ## @.str.2
	.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	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x21, [x0, #8]
	ldr	w8, [x21]
	mov	w9, #513
	movk	w9, #1, lsl #16
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _REQUEST_SET_USB_XFER_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQUEST_SET_USB_XFER_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	ubfx	w10, w20, #8, #8
	stp	w8, w10, [x9]
	and	w8, w20, #0xff
	str	w8, [x9, #8]
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_deb_info
	ldr	x1, [x21, #8]
	mov	x0, x19
	mov	w2, #3
	bl	_dib0700_ctrl_wr
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_deb_info
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh11:
	adrp	x8, _EINTR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not acquire lock"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_REQUEST_SET_USB_XFER_LEN,4,2   ; @REQUEST_SET_USB_XFER_LEN
l_.str.1:                               ; @.str.1
	.asciz	"set the USB xfer len to %i Ts packet\n"

l_.str.2:                               ; @.str.2
	.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
