	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_pma_set_portsamplescontrol
_recv_pma_set_portsamplescontrol:       ## @recv_pma_set_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, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	movq	%rsi, %rdi
	callq	_to_idev
	cmpq	$0, (%rbx)
	jne	LBB0_11
## %bb.1:
	movq	%rax, %r12
	movq	24(%rax), %rax
	movq	(%rax), %rcx
	movq	(%r13), %rax
	cmpq	%r14, %rax
	je	LBB0_3
## %bb.2:
	cmpq	$255, %rax
	je	LBB0_3
LBB0_11:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reply                          ## TAILCALL
LBB0_3:
	movq	%r12, %rdi
	addq	$8, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	24(%r12), %rdi
	callq	_ipath_read_creg32
	jmp	LBB0_6
LBB0_5:
	movq	(%r12), %rax
LBB0_6:
	movq	_IB_PMA_SAMPLE_STATUS_DONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.7:
	movl	24(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, 16(%r12)
	movl	20(%r13), %edi
	callq	_be32_to_cpu
	movq	%rax, 32(%r12)
	movl	16(%r13), %edi
	callq	_be16_to_cpu
	movl	%eax, 48(%r12)
	movq	8(%r13), %rax
	movl	(%rax), %ecx
	movq	40(%r12), %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	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.8:
	movl	4(%rax), %esi
	movq	24(%r12), %rdi
	movq	32(%r12), %rdx
	movq	%rax, %r13
	callq	_ipath_write_creg
	movq	16(%r12), %rdx
	movq	24(%r12), %rdi
	movl	(%r13), %esi
	callq	_ipath_write_creg
	jmp	LBB0_10
LBB0_9:
	movq	_IB_PMA_SAMPLE_STATUS_STARTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_recv_pma_get_portsamplescontrol ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	_IB_PMA_SAMPLE_STATUS_DONE,8,3  ## @IB_PMA_SAMPLE_STATUS_DONE
	.comm	_IB_PMA_SAMPLE_STATUS_STARTED,8,3 ## @IB_PMA_SAMPLE_STATUS_STARTED
	.no_dead_strip	_recv_pma_set_portsamplescontrol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_pma_set_portsamplescontrol
_recv_pma_set_portsamplescontrol:       ; @recv_pma_set_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x25, [x0, #16]
	mov	x0, x1
	bl	_to_idev
	ldr	x8, [x19]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0, #24]
	ldr	x24, [x8]
	ldr	x8, [x25]
	cmp	x8, x20
	b.eq	LBB0_4
; %bb.2:
	cmp	x8, #255
	b.eq	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	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
LBB0_4:
	add	x23, x22, #8
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x1, [x24, #8]
	cbz	x1, LBB0_6
; %bb.5:
	ldr	x0, [x22, #24]
	bl	_ipath_read_creg32
	b	LBB0_7
LBB0_6:
	ldr	x0, [x22]
LBB0_7:
Lloh3:
	adrp	x8, _IB_PMA_SAMPLE_STATUS_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PMA_SAMPLE_STATUS_DONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:
	ldr	w0, [x25, #24]
	bl	_be32_to_cpu
	str	x0, [x22, #16]
	ldr	w0, [x25, #20]
	bl	_be32_to_cpu
	str	x0, [x22, #32]
	ldr	w0, [x25, #16]
	bl	_be16_to_cpu
	str	w0, [x22, #48]
	ldr	x8, [x25, #8]
	ldr	w9, [x8]
	ldr	x10, [x22, #40]
	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]
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w1, [x24, #4]
	ldp	x0, x2, [x22, #24]
	bl	_ipath_write_creg
	ldr	w1, [x24]
	ldp	x2, x0, [x22, #16]
	bl	_ipath_write_creg
	b	LBB0_11
LBB0_10:
Lloh6:
	adrp	x8, _IB_PMA_SAMPLE_STATUS_STARTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_PMA_SAMPLE_STATUS_STARTED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x22]
LBB0_11:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	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	_recv_pma_get_portsamplescontrol
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	_IB_PMA_SAMPLE_STATUS_DONE,8,3  ; @IB_PMA_SAMPLE_STATUS_DONE
	.comm	_IB_PMA_SAMPLE_STATUS_STARTED,8,3 ; @IB_PMA_SAMPLE_STATUS_STARTED
	.no_dead_strip	_recv_pma_set_portsamplescontrol
.subsections_via_symbols
