	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_exec_mb_cmd
_ql_exec_mb_cmd:                        ## @ql_exec_mb_cmd
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_CSR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_ql_read32
	movq	_CSR_HRI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	_SEM_PROC_REG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ql_sem_spinlock
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.4:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	addq	%r12, %rsi
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %edx
	movq	%r15, %rdi
	callq	_ql_write_mpi_reg
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jl	LBB0_6
LBB0_8:
	movl	(%r13), %esi
	movq	_CSR_CMD_SET_H2R_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_ql_write32
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %ebx
LBB0_9:
	movq	_SEM_PROC_REG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ql_sem_unlock
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CSR,4,2                        ## @CSR
	.comm	_CSR_HRI,4,2                    ## @CSR_HRI
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SEM_PROC_REG_MASK,4,2          ## @SEM_PROC_REG_MASK
	.comm	_CSR_CMD_SET_H2R_INT,4,2        ## @CSR_CMD_SET_H2R_INT
	.no_dead_strip	_ql_exec_mb_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_exec_mb_cmd
_ql_exec_mb_cmd:                        ; @ql_exec_mb_cmd
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _CSR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CSR@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ql_read32
Lloh2:
	adrp	x8, _CSR_HRI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CSR_HRI@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_2:
Lloh8:
	adrp	x22, _SEM_PROC_REG_MASK@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SEM_PROC_REG_MASK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ql_sem_spinlock
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x24, x8
	ldr	x8, [x20, #8]
	ldr	w2, [x8, x24, lsl #2]
	mov	x0, x19
	bl	_ql_write_mpi_reg
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	cmp	x24, x8
	b.lt	LBB0_5
LBB0_7:
	ldr	w1, [x23]
Lloh10:
	adrp	x8, _CSR_CMD_SET_H2R_INT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CSR_CMD_SET_H2R_INT@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ql_write32
	mov	w21, #0
	b	LBB0_9
LBB0_8:
	mov	x21, x0
LBB0_9:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ql_sem_unlock
LBB0_10:
	mov	x0, x21
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CSR,4,2                        ; @CSR
	.comm	_CSR_HRI,4,2                    ; @CSR_HRI
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SEM_PROC_REG_MASK,4,2          ; @SEM_PROC_REG_MASK
	.comm	_CSR_CMD_SET_H2R_INT,4,2        ; @CSR_CMD_SET_H2R_INT
	.no_dead_strip	_ql_exec_mb_cmd
.subsections_via_symbols
