	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0700_get_version            ## -- Begin function dib0700_get_version
	.p2align	4, 0x90
_dib0700_get_version:                   ## @dib0700_get_version
	.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
	movq	%r8, %rbx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %r13
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_REQUEST_GET_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %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
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$16
	pushq	(%r13)
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r12d
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	8(%rax), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	12(%rax), %ecx
	movl	%ecx, (%r14)
LBB0_4:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	(%r13), %rax
	movl	16(%rax), %ecx
	movl	20(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	24(%rax), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	28(%rax), %ecx
	movl	%ecx, (%rsi)
LBB0_6:
	testq	%rdi, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	(%r13), %rax
	movl	32(%rax), %ecx
	movl	36(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	40(%rax), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	44(%rax), %ecx
	movl	%ecx, (%rdi)
LBB0_8:
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	(%r13), %rax
	movl	48(%rax), %ecx
	movl	52(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	56(%rax), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	60(%rax), %ecx
	movl	%ecx, (%rsi)
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %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	"could not acquire lock"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_REQUEST_GET_VERSION,4,2        ## @REQUEST_GET_VERSION
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dib0700_get_version            ; -- Begin function dib0700_get_version
	.p2align	2
_dib0700_get_version:                   ; @dib0700_get_version
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x25, [x0, #8]
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_10
; %bb.1:
	ldr	w23, [x19, #4]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _REQUEST_GET_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQUEST_GET_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _USB_TYPE_VENDOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	x6, [x25]
Lloh9:
	adrp	x8, _USB_CTRL_GET_TIMEOUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _USB_CTRL_GET_TIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x23
	mov	w4, #0
	mov	w5, #0
	mov	w7, #16
	bl	_usb_control_msg
	mov	x23, x0
	cbz	x24, LBB0_3
; %bb.2:
	ldr	x8, [x25]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #8
	orr	w8, w9, w8
	str	w8, [x24]
LBB0_3:
	cbz	x22, LBB0_5
; %bb.4:
	ldr	x8, [x25]
	ldp	w9, w10, [x8, #16]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #24]
	orr	w9, w9, w10, lsl #8
	orr	w8, w9, w8
	str	w8, [x22]
LBB0_5:
	cbz	x21, LBB0_7
; %bb.6:
	ldr	x8, [x25]
	ldp	w9, w10, [x8, #32]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #40]
	orr	w9, w9, w10, lsl #8
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	ldr	x8, [x25]
	ldp	w9, w10, [x8, #48]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #56]
	orr	w9, w9, w10, lsl #8
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_11
LBB0_10:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh14:
	adrp	x8, _EINTR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not acquire lock"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_REQUEST_GET_VERSION,4,2        ; @REQUEST_GET_VERSION
	.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
.subsections_via_symbols
