	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %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
	leaq	-112(%rbp), %r11
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$64
	pushq	%r11
	callq	_usb_control_msg
	addq	$32, %rsp
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movl	-112(%rbp), %ecx
	movl	-108(%rbp), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	-104(%rbp), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	-100(%rbp), %ecx
	movl	%ecx, (%r13)
LBB0_2:
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:
	movl	-96(%rbp), %ecx
	movl	-92(%rbp), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	-88(%rbp), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	-84(%rbp), %ecx
	movl	%ecx, (%r12)
LBB0_4:
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:
	movl	-80(%rbp), %ecx
	movl	-76(%rbp), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	-72(%rbp), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	-68(%rbp), %ecx
	movl	%ecx, (%r15)
LBB0_6:
	testq	%r14, %r14
	je	LBB0_8
## %bb.7:
	movl	-64(%rbp), %ecx
	movl	-60(%rbp), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	-56(%rbp), %ecx
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	-52(%rbp), %ecx
	movl	%ecx, (%r14)
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.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, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w23, [x0]
	mov	x0, x23
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _REQUEST_GET_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REQUEST_GET_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _USB_TYPE_VENDOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USB_TYPE_VENDOR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _USB_DIR_IN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _USB_DIR_IN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh12:
	adrp	x8, _USB_CTRL_GET_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USB_CTRL_GET_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp]
	add	x6, sp, #8
	mov	x0, x23
	mov	w4, #0
	mov	w5, #0
	mov	w7, #64
	bl	_usb_control_msg
	cbz	x22, LBB0_2
; %bb.1:
	ldp	w8, w9, [sp, #8]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [sp, #16]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	str	w8, [x22]
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	ldp	w8, w9, [sp, #24]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [sp, #32]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	str	w8, [x21]
LBB0_4:
	cbz	x20, LBB0_6
; %bb.5:
	ldp	w8, w9, [sp, #40]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [sp, #48]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	str	w8, [x20]
LBB0_6:
	cbz	x19, LBB0_8
; %bb.7:
	ldp	w8, w9, [sp, #56]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w9, w10, [sp, #64]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	str	w8, [x19]
LBB0_8:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.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
