	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_cap_mask
_query_cap_mask:                        ## @query_cap_mask
	.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
	movl	$4120, %eax                     ## imm = 0x1018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-4144(%rbp), %r13
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%r13, %rdi
	callq	___bzero
	movq	_lid2sl_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 8(%rbx)
	movq	_ibd_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CLASS_PORT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ibmad_port@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_pma_query_via
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-4136(%rbp), %rsi
	leaq	-4148(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-4148(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	callq	_portid2str
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_IBWARN
	movq	_summary@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$-1, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$4120, %rsp                     ## imm = 0x1018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_lid2sl_table,8,3               ## @lid2sl_table
	.comm	_ibd_timeout,4,2                ## @ibd_timeout
	.comm	_CLASS_PORT_INFO,4,2            ## @CLASS_PORT_INFO
	.comm	_ibmad_port,4,2                 ## @ibmad_port
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"classportinfo query failed on %s, %s port %d"

	.comm	_summary,4,2                    ## @summary
	.no_dead_strip	_query_cap_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_cap_mask
_query_cap_mask:                        ; @query_cap_mask
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	w9, #4112
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #16
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x23, sp, #8
	add	x0, sp, #8
	mov	w1, #4096
	bl	_bzero
Lloh5:
	adrp	x8, _lid2sl_table@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lid2sl_table@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x22, #8]
Lloh8:
	adrp	x8, _ibd_timeout@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ibd_timeout@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _CLASS_PORT_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CLASS_PORT_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x8, _ibmad_port@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ibmad_port@GOTPAGEOFF]
Lloh16:
	ldr	w5, [x8]
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x20
	bl	_pma_query_via
	cbz	w0, LBB0_2
; %bb.1:
	add	x1, x23, #8
	add	x0, sp, #4
	mov	w2, #4
	bl	_memcpy
	mov	w0, #0
	ldr	w8, [sp, #4]
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	bl	_portid2str
	mov	x2, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x3, x20
	bl	_IBWARN
Lloh19:
	adrp	x8, _summary@GOTPAGE
Lloh20:
	ldr	x8, [x8, _summary@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #16
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_lid2sl_table,8,3               ; @lid2sl_table
	.comm	_ibd_timeout,4,2                ; @ibd_timeout
	.comm	_CLASS_PORT_INFO,4,2            ; @CLASS_PORT_INFO
	.comm	_ibmad_port,4,2                 ; @ibmad_port
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"classportinfo query failed on %s, %s port %d"

	.comm	_summary,4,2                    ; @summary
	.no_dead_strip	_query_cap_mask
.subsections_via_symbols
