	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_query_qp                   ## -- Begin function siw_query_qp
	.p2align	4, 0x90
_siw_query_qp:                          ## @siw_query_qp
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movq	%rdi, %r15
	callq	_to_siw_qp
	movq	%rax, %r12
	movl	16(%r15), %edi
	callq	_to_siw_dev
	movq	_SIW_MAX_INLINE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%rbx)
	movups	8(%r12), %xmm0
	movups	%xmm0, 4(%rbx)
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_ib_mtu_int_to_enum
	movl	%eax, 32(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 28(%rbx)
	movl	(%r12), %eax
	movl	%eax, 24(%rbx)
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movq	_IB_ACCESS_REMOTE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IB_ACCESS_REMOTE_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movups	(%r15), %xmm0
	movups	%xmm0, 20(%r14)
	movl	20(%rbx), %eax
	movl	%eax, 16(%r14)
	movups	4(%rbx), %xmm0
	movups	%xmm0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SIW_MAX_INLINE,4,2             ## @SIW_MAX_INLINE
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ## @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ## @IB_ACCESS_REMOTE_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_query_qp                   ; -- Begin function siw_query_qp
	.p2align	2
_siw_query_qp:                          ; @siw_query_qp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x19, x3
	cbz	x3, LBB0_4
; %bb.3:
	mov	x21, x0
	bl	_to_siw_qp
	mov	x22, x0
	ldr	w0, [x21, #16]
	bl	_to_siw_dev
Lloh0:
	adrp	x8, _SIW_MAX_INLINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIW_MAX_INLINE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldur	q0, [x22, #8]
	stur	q0, [x20, #4]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_ib_mtu_int_to_enum
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20, #32]
Lloh3:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
	ldr	d0, [x22]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IB_ACCESS_REMOTE_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	d0, [x20, #24]
	str	w8, [x20]
	ldr	q0, [x21]
	stur	q0, [x19, #20]
	ldur	q0, [x20, #4]
	ldr	w8, [x20, #20]
	str	w8, [x19, #16]
	str	q0, [x19]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SIW_MAX_INLINE,4,2             ; @SIW_MAX_INLINE
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_IB_ACCESS_REMOTE_WRITE,4,2     ; @IB_ACCESS_REMOTE_WRITE
	.comm	_IB_ACCESS_REMOTE_READ,4,2      ; @IB_ACCESS_REMOTE_READ
.subsections_via_symbols
