	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pma_get_portsamplescontrol
_pma_get_portsamplescontrol:            ## @pma_get_portsamplescontrol
	.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, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %r13
	movq	%rsi, %rdi
	callq	_to_idev
	movq	%rax, %rdi
	callq	_dd_from_dev
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_to_iport
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rbx
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, (%r13)
	cmpq	$0, (%r14)
	jne	LBB0_2
## %bb.1:
	cmpq	%r15, %rbx
	jne	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	_QIB_IB_CFG_PMA_TICKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	callq	*8(%rbx)
	movl	%eax, 56(%r13)
	movq	_QIBPORTCNTR_PSSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	*(%rbx)
	movl	%eax, 52(%r13)
	movl	$4, 8(%r13)
	movq	_COUNTER_MASK0_9@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movl	24(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%r13)
	movl	20(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, 32(%r13)
	movl	16(%r12), %edi
	callq	_cpu_to_be16
	movl	%eax, 24(%r13)
	movq	8(%r12), %rax
	movl	(%rax), %ecx
	movq	16(%r13), %rdx
	movl	%ecx, (%rdx)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rdx)
	movl	8(%rax), %ecx
	movl	%ecx, 8(%rdx)
	movl	12(%rax), %ecx
	movl	%ecx, 12(%rdx)
	movl	16(%rax), %eax
	movl	%eax, 16(%rdx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_4
LBB0_2:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_4:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_QIB_IB_CFG_PMA_TICKS,4,2       ## @QIB_IB_CFG_PMA_TICKS
	.comm	_QIBPORTCNTR_PSSTAT,4,2         ## @QIBPORTCNTR_PSSTAT
	.comm	_COUNTER_MASK0_9,4,2            ## @COUNTER_MASK0_9
	.no_dead_strip	_pma_get_portsamplescontrol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pma_get_portsamplescontrol
_pma_get_portsamplescontrol:            ; @pma_get_portsamplescontrol
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0, #16]
	mov	x0, x1
	bl	_to_idev
	bl	_dd_from_dev
	mov	x21, x0
	mov	x0, x20
	mov	x1, x23
	bl	_to_iport
	mov	x20, x0
	bl	_ppd_from_ibp
	mov	x22, x0
	ldr	x25, [x24]
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	x25, [x24]
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
	cmp	x25, x23
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #8]
Lloh0:
	adrp	x9, _QIB_IB_CFG_PMA_TICKS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QIB_IB_CFG_PMA_TICKS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	mov	x0, x22
	blr	x8
	str	w0, [x24, #56]
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _QIBPORTCNTR_PSSTAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QIBPORTCNTR_PSSTAT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x22
	blr	x8
	mov	w8, #4
	str	w8, [x24, #8]
Lloh6:
	adrp	x8, _COUNTER_MASK0_9@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COUNTER_MASK0_9@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [x24, #48]
	ldr	w0, [x20, #24]
	bl	_cpu_to_be32
	str	x0, [x24, #40]
	ldr	w0, [x20, #20]
	bl	_cpu_to_be32
	str	x0, [x24, #32]
	ldr	w0, [x20, #16]
	bl	_cpu_to_be16
	str	w0, [x24, #24]
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	ldr	x10, [x24, #16]
	str	w9, [x10]
	ldr	w9, [x8, #4]
	str	w9, [x10, #4]
	ldr	w9, [x8, #8]
	str	w9, [x10, #8]
	ldr	w9, [x8, #12]
	str	w9, [x10, #12]
	ldr	w8, [x8, #16]
	str	w8, [x10, #16]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_4:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_reply
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_QIB_IB_CFG_PMA_TICKS,4,2       ; @QIB_IB_CFG_PMA_TICKS
	.comm	_QIBPORTCNTR_PSSTAT,4,2         ; @QIBPORTCNTR_PSSTAT
	.comm	_COUNTER_MASK0_9,4,2            ; @COUNTER_MASK0_9
	.no_dead_strip	_pma_get_portsamplescontrol
.subsections_via_symbols
