	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_config_space_records
_do_config_space_records:               ## @do_config_space_records
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$18, %ecx
	movl	$18, %r12d
	cmovbl	%ecx, %r12d
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.1:
	movl	%r12d, %eax
	movq	(%rbx), %rcx
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%r15), %edi
	callq	_htonl
	movq	(%rbx), %rcx
	movl	%eax, (%rcx,%r15)
	movl	4(%rcx,%r15), %edi
	callq	_htonl
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx,%r15)
	movl	8(%rcx,%r15), %edi
	callq	_htonl
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx,%r15)
	addq	$12, %r15
	cmpq	%r15, %r13
	jne	LBB0_2
LBB0_3:
	movq	_srcport@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB_MLX_VENDOR_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.5:
	movq	_IB_MAD_METHOD_GET@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_IB_MAD_METHOD_SET@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	movq	_IB_MLX_IS3_CONFIG_SPACE_ACCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r12d, %r9d
	shll	$16, %r9d
	orl	$8388608, %r9d                  ## imm = 0x800000
	movq	%rbx, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_do_vendor
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:
	testl	%r14d, %r14d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.8:
	movl	%r12d, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r15
	movl	(%r15,%r14), %edi
	callq	_ntohl
	movl	%eax, %r12d
	movl	8(%r15,%r14), %edi
	andl	4(%r15,%r14), %edi
	callq	_ntohl
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_printf
	addq	$12, %r14
	cmpq	%r14, %r13
	jne	LBB0_9
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_srcport,4,2                    ## @srcport
	.comm	_IB_MLX_VENDOR_CLASS,4,2        ## @IB_MLX_VENDOR_CLASS
	.comm	_IB_MAD_METHOD_SET,4,2          ## @IB_MAD_METHOD_SET
	.comm	_IB_MAD_METHOD_GET,4,2          ## @IB_MAD_METHOD_GET
	.comm	_IB_MLX_IS3_CONFIG_SPACE_ACCESS,4,2 ## @IB_MLX_IS3_CONFIG_SPACE_ACCESS
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot %s config space records\n"

L_.str.1:                               ## @.str.1
	.asciz	"set"

L_.str.2:                               ## @.str.2
	.asciz	"get"

L_.str.3:                               ## @.str.3
	.asciz	"Config space record at 0x%x: 0x%x\n"

	.no_dead_strip	_do_config_space_records
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_config_space_records
_do_config_space_records:               ; @do_config_space_records
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w8, #18
	cmp	w3, #18
	csel	w22, w3, w8, lo
	cbz	w22, LBB0_3
; %bb.1:
	mov	x23, #0
	ldr	x8, [x19]
	mov	w9, #12
	umull	x24, w22, w9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x23]
	bl	_htonl
	ldr	x8, [x19]
	add	x8, x8, x23
	str	w0, [x8]
	ldr	w0, [x8, #4]
	bl	_htonl
	ldr	x8, [x19]
	add	x8, x8, x23
	str	w0, [x8, #4]
	ldr	w0, [x8, #8]
	bl	_htonl
	ldr	x8, [x19]
	add	x9, x8, x23
	str	w0, [x9, #8]
	add	x23, x23, #12
	cmp	x24, x23
	b.ne	LBB0_2
LBB0_3:
Lloh0:
	adrp	x8, _srcport@GOTPAGE
Lloh1:
	ldr	x8, [x8, _srcport@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IB_MLX_VENDOR_CLASS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MLX_VENDOR_CLASS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _IB_MAD_METHOD_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_MAD_METHOD_SET@GOTPAGEOFF]
Lloh8:
	adrp	x9, _IB_MAD_METHOD_GET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_MAD_METHOD_GET@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x9, x8, eq
	ldr	w3, [x8]
Lloh10:
	adrp	x8, _IB_MLX_IS3_CONFIG_SPACE_ACCESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IB_MLX_IS3_CONFIG_SPACE_ACCESS@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	lsl	w8, w22, #16
	orr	w5, w8, #0x800000
	mov	x0, x21
	mov	x6, x19
	bl	_do_vendor
	cbz	x0, LBB0_5
; %bb.4:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x8, l_.str.1@PAGE
Lloh17:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh18:
	adrp	x9, l_.str.2@PAGE
Lloh19:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #-1
	b	LBB0_9
LBB0_5:
	cbz	w22, LBB0_8
; %bb.6:
	mov	x23, #0
	mov	w8, #12
	umull	x22, w22, w8
Lloh22:
	adrp	x20, l_.str.3@PAGE
Lloh23:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x24, x8, x23
	ldr	w0, [x24]
	bl	_ntohl
	mov	x21, x0
	ldp	w8, w9, [x24, #4]
	and	w0, w9, w8
	bl	_ntohl
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_printf
	add	x23, x23, #12
	cmp	x22, x23
	b.ne	LBB0_7
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_srcport,4,2                    ; @srcport
	.comm	_IB_MLX_VENDOR_CLASS,4,2        ; @IB_MLX_VENDOR_CLASS
	.comm	_IB_MAD_METHOD_SET,4,2          ; @IB_MAD_METHOD_SET
	.comm	_IB_MAD_METHOD_GET,4,2          ; @IB_MAD_METHOD_GET
	.comm	_IB_MLX_IS3_CONFIG_SPACE_ACCESS,4,2 ; @IB_MLX_IS3_CONFIG_SPACE_ACCESS
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot %s config space records\n"

l_.str.1:                               ; @.str.1
	.asciz	"set"

l_.str.2:                               ; @.str.2
	.asciz	"get"

l_.str.3:                               ; @.str.3
	.asciz	"Config space record at 0x%x: 0x%x\n"

	.no_dead_strip	_do_config_space_records
.subsections_via_symbols
