	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pi_umr_wr
_set_pi_umr_wr:                         ## @set_pi_umr_wr
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_reg_wr
	movq	%rax, %r13
	movl	4(%rax), %edi
	callq	_to_mmr
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %r15
	movq	%r12, %rdi
	callq	_get_pd
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	_IB_ACCESS_REMOTE_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r13), %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	xorl	%edi, %edi
	cmpl	$0, 4(%r12)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	8(%r15), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_IB_SIG_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$4, %eax
	movl	$48, %esi
	cmovel	%eax, %esi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rdi
	callq	_set_sig_umr_segment
	addq	$4, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_handle_post_send_edge
	movq	(%r15), %rdi
	movl	(%r13), %edx
	movl	4(%r13), %esi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-68(%rbp), %r9d                 ## 4-byte Reload
	callq	_set_sig_mkey_segment
	addq	$4, (%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_handle_post_send_edge
	movl	4(%r13), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r14, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	movq	%r15, %r8
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_set_sig_data_segment
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movl	$0, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ## @IB_ACCESS_REMOTE_ATOMIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_SIG_TYPE_NONE,8,3           ## @IB_SIG_TYPE_NONE
	.no_dead_strip	_set_pi_umr_wr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pi_umr_wr
_set_pi_umr_wr:                         ; @set_pi_umr_wr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	bl	_reg_wr
	mov	x25, x0
	ldr	w0, [x0, #4]
	bl	_to_mmr
	mov	x22, x0
	ldp	x26, x28, [x0, #16]
	mov	x0, x23
	bl	_get_pd
	ldr	w27, [x0]
	ldr	x8, [x24]
	cmp	x8, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x25]
Lloh0:
	adrp	x9, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_ACCESS_REMOTE_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.3:
	ldr	w8, [x23, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	ldr	w8, [x28, #8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x8, [x26]
Lloh6:
	adrp	x9, _IB_SIG_TYPE_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_SIG_TYPE_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #48
	mov	w9, #4
	csel	w28, w9, w8, eq
	ldr	x0, [x21]
	mov	x1, x28
	bl	_set_sig_umr_segment
	ldr	x8, [x21]
	add	x8, x8, #4
	str	x8, [x21]
	ldr	w2, [x20]
	mov	x0, x23
	mov	x1, x21
	mov	x3, x19
	bl	_handle_post_send_edge
	ldr	x0, [x21]
	ldp	w2, w1, [x25]
	mov	x3, x28
	ldr	w4, [sp, #12]                   ; 4-byte Folded Reload
	mov	x5, x27
	bl	_set_sig_mkey_segment
	ldr	x8, [x21]
	add	x8, x8, #4
	str	x8, [x21]
	ldr	w2, [x20]
	mov	x0, x23
	mov	x1, x21
	mov	x3, x19
	bl	_handle_post_send_edge
	ldr	w1, [x25, #4]
	mov	x0, x24
	mov	x2, x26
	mov	x3, x23
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	bl	_set_sig_data_segment
	cbnz	w0, LBB0_6
; %bb.8:
	ldr	x8, [x22]
	str	wzr, [x8]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ACCESS_REMOTE_ATOMIC,4,2    ; @IB_ACCESS_REMOTE_ATOMIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_SIG_TYPE_NONE,8,3           ; @IB_SIG_TYPE_NONE
	.no_dead_strip	_set_pi_umr_wr
.subsections_via_symbols
