	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_get_driver_info           ## -- Begin function diva_get_driver_info
	.p2align	4, 0x90
_diva_get_driver_info:                  ## @diva_get_driver_info
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r12d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.2:
	movl	%edx, %r14d
	cmpl	$17, %edx
	jl	LBB0_12
## %bb.3:
	movq	%rdi, %rbx
	movq	_clients@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_12
## %bb.4:
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-44(%rbp), %rsi
	callq	_diva_os_enter_spin_lock
	movq	(%r13), %rax
	leaq	(%rbx,%rbx,2), %r13
	cmpq	$0, 8(%rax,%r13,8)
	movq	%r15, %r12
	je	LBB0_11
## %bb.5:
	movq	$1, (%r15)
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rax,%r13,8), %rcx
	movq	%rcx, 8(%r15)
	movl	%ecx, %edx
	sarl	$8, %edx
	movslq	%edx, %rdx
	movq	%rdx, 16(%r15)
	movl	%ecx, %edx
	sarl	$16, %edx
	movslq	%edx, %rdx
	movq	%rdx, 24(%r15)
	sarl	$24, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 32(%r15)
	movslq	4(%rax,%r13,8), %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, 40(%r15)
	movl	%ecx, %edx
	sarl	$8, %edx
	movslq	%edx, %rdx
	movq	%rdx, 48(%r15)
	movl	%ecx, %edx
	sarl	$16, %edx
	movslq	%edx, %rdx
	movq	%rdx, 56(%r15)
	sarl	$24, %ecx
	movslq	%ecx, %rcx
	leaq	72(%r15), %r12
	movq	%rcx, 64(%r15)
	movq	16(%rax,%r13,8), %rdi
	callq	_strlen
	leal	-10(%r14), %esi
	movl	%eax, %edi
	callq	_min
	testl	%eax, %eax
	je	LBB0_11
## %bb.6:
	movl	%eax, %ebx
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%rax,%r13,8), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	leaq	(%r12,%rax,8), %r12
	subl	%ebx, %r14d
	addl	$-9, %r14d
	cmpl	$4, %r14d
	jl	LBB0_11
## %bb.7:
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r13,8), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.8:
	movq	$40, (%r12)
	addq	$8, %r12
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r13,8), %rax
	movq	(%rax), %rdi
	callq	_strlen
	leal	-3(%r14), %esi
	movl	%eax, %edi
	callq	_min
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %ebx
	movq	_clients@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax,%r13,8), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_memcpy
	movslq	%ebx, %rax
	leaq	(%r12,%rax,8), %r12
	notl	%ebx
	addl	%ebx, %r14d
	cmpl	$2, %r14d
	jl	LBB0_11
## %bb.10:
	movq	$41, (%r12)
	addq	$8, %r12
LBB0_11:
	movq	$0, (%r12)
	movq	_dbg_q_lock@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rdx
	leaq	-44(%rbp), %rsi
	callq	_diva_os_leave_spin_lock
	subq	%r15, %r12
	addq	$8, %r12
	shrq	$3, %r12
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_clients,8,3                    ## @clients
	.comm	_dbg_q_lock,4,2                 ## @dbg_q_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver info"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_diva_get_driver_info           ; -- Begin function diva_get_driver_info
	.p2align	2
_diva_get_driver_info:                  ; @diva_get_driver_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	mov	w0, #-1
	cbz	x20, LBB0_13
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_13
; %bb.2:
	mov	x22, x2
	cmp	w2, #17
	b.lt	LBB0_13
; %bb.3:
Lloh0:
	adrp	x24, _clients@GOTPAGE
Lloh1:
	ldr	x24, [x24, _clients@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_ARRAY_SIZE
	cmp	x0, x20
	b.ls	LBB0_12
; %bb.4:
Lloh2:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_enter_spin_lock
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	x8, [x8, #8]
	mov	x21, x19
	cbz	x8, LBB0_11
; %bb.5:
	mov	w8, #1
	str	x8, [x19]
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldpsw	x9, x10, [x8]
	str	x9, [x19, #8]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sbfx	x11, x9, #8, #24
	sbfx	x12, x9, #16, #16
	stp	x11, x12, [x19, #16]
	sbfx	x9, x9, #24, #8
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w10, w10, w11, asr #6
	sxtw	x11, w10
	stp	x9, x11, [x19, #32]
	sbfx	x9, x10, #8, #24
	sbfx	x11, x10, #16, #16
	stp	x9, x11, [x19, #48]
	sbfx	x9, x10, #24, #8
	add	x21, x19, #72
	str	x9, [x19, #64]
	ldr	x0, [x8, #16]
	bl	_strlen
	sub	w1, w22, #10
	bl	_min
	cbz	w0, LBB0_11
; %bb.6:
	mov	x23, x0
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	x1, [x8, #16]
	mov	x0, x21
	mov	x2, x23
	bl	_memcpy
	add	x21, x21, w23, sxtw #3
	sub	w8, w22, w23
	sub	w23, w8, #9
	cmp	w23, #4
	b.lt	LBB0_11
; %bb.7:
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.8:
	mov	w8, #40
	str	x8, [x21], #8
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	x8, [x8, #8]
	ldr	x0, [x8]
	bl	_strlen
	sub	w1, w23, #3
	bl	_min
	cbz	w0, LBB0_11
; %bb.9:
	mov	x22, x0
	ldr	x8, [x24]
	mov	w9, #24
	madd	x8, x20, x9, x8
	ldr	x8, [x8, #8]
	ldr	x1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_memcpy
	add	x21, x21, w22, sxtw #3
	mvn	w8, w22
	add	w8, w23, w8
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:
	mov	w8, #41
	str	x8, [x21], #8
LBB0_11:
	str	xzr, [x21]
Lloh6:
	adrp	x0, _dbg_q_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _dbg_q_lock@GOTPAGEOFF]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_diva_os_leave_spin_lock
	sub	x8, x21, x19
	add	x8, x8, #8
	lsr	x0, x8, #3
	b	LBB0_13
LBB0_12:
	mov	w0, #-1
LBB0_13:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_clients,8,3                    ; @clients
	.comm	_dbg_q_lock,4,2                 ; @dbg_q_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver info"

.subsections_via_symbols
