	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qib_r_update
_qib_r_update:                          ## @qib_r_update
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_SJA_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_BISTEN_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_R_OP_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_R_OPCODE_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_qib_r_wait_for_rdy
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%r13d, %ecx
	shll	%cl, %r12d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	orl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	orl	%r12d, %ebx
	movq	_kr_r_access@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_qib_write_kreg
	movq	_kr_scratch@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qib_read_kreg32
LBB0_2:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SJA_EN,4,2                     ## @SJA_EN
	.comm	_BISTEN_LSB,4,2                 ## @BISTEN_LSB
	.comm	_R_OP_UPDATE,4,2                ## @R_OP_UPDATE
	.comm	_R_OPCODE_LSB,4,2               ## @R_OPCODE_LSB
	.comm	_kr_r_access,4,2                ## @kr_r_access
	.comm	_kr_scratch,4,2                 ## @kr_scratch
	.no_dead_strip	_qib_r_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qib_r_update
_qib_r_update:                          ; @qib_r_update
	.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	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SJA_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SJA_EN@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x8, _BISTEN_LSB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BISTEN_LSB@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
Lloh6:
	adrp	x8, _R_OP_UPDATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R_OP_UPDATE@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
Lloh9:
	adrp	x8, _R_OPCODE_LSB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R_OPCODE_LSB@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
	bl	_qib_r_wait_for_rdy
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	lsl	w8, w21, w23
	orr	w8, w8, w22
	lsl	w9, w24, w25
	orr	w2, w8, w9
Lloh12:
	adrp	x8, _kr_r_access@GOTPAGE
Lloh13:
	ldr	x8, [x8, _kr_r_access@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_write_kreg
Lloh15:
	adrp	x8, _kr_scratch@GOTPAGE
Lloh16:
	ldr	x8, [x8, _kr_scratch@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qib_read_kreg32
LBB0_2:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SJA_EN,4,2                     ; @SJA_EN
	.comm	_BISTEN_LSB,4,2                 ; @BISTEN_LSB
	.comm	_R_OP_UPDATE,4,2                ; @R_OP_UPDATE
	.comm	_R_OPCODE_LSB,4,2               ; @R_OPCODE_LSB
	.comm	_kr_r_access,4,2                ; @kr_r_access
	.comm	_kr_scratch,4,2                 ; @kr_scratch
	.no_dead_strip	_qib_r_update
.subsections_via_symbols
