	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_query_device           ## -- Begin function ibv_cmd_query_device
	.p2align	4, 0x90
_ibv_cmd_query_device:                  ## @ibv_cmd_query_device
	.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
	movq	%r8, %rbx
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_QUERY_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r8, %rsi
	movl	$4, %r8d
	callq	_IBV_INIT_CMD_RESP
	movl	(%r13), %edi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_write
	cmpq	%rbx, %rax
	jne	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	movl	$4, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movl	(%r15), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_copy_query_dev_fields
	jmp	LBB0_3
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUERY_DEVICE,4,2               ## @QUERY_DEVICE
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_query_device           ; -- Begin function ibv_cmd_query_device
	.p2align	2
_ibv_cmd_query_device:                  ; @ibv_cmd_query_device
	.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	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _QUERY_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QUERY_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x4
	mov	w4, #4
	bl	_IBV_INIT_CMD_RESP
	ldr	w0, [x23]
	mov	x1, x22
	mov	x2, x21
	bl	_write
	cmp	x0, x21
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	w1, #4
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldr	w0, [x20]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x19
	bl	_copy_query_dev_fields
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QUERY_DEVICE,4,2               ; @QUERY_DEVICE
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
