	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_get_mb_sts
_ql_get_mb_sts:                         ## @ql_get_mb_sts
	.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, %r15
	movq	%rdi, %r14
	movq	_SEM_PROC_REG_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ql_sem_spinlock
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_1:
	cmpl	$0, (%r15)
	jle	LBB0_2
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%r12, %rsi
	movq	8(%r15), %rdx
	addq	%rbx, %rdx
	movq	%r14, %rdi
	callq	_ql_read_mpi_reg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_7
## %bb.5:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_2:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_8:
	movl	%eax, %r13d
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_netif_err
LBB0_9:
	movq	_SEM_PROC_REG_MASK@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ql_sem_unlock
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEM_PROC_REG_MASK,4,2          ## @SEM_PROC_REG_MASK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_drv,4,2                        ## @drv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed mailbox read.\n"

	.no_dead_strip	_ql_get_mb_sts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_get_mb_sts
_ql_get_mb_sts:                         ; @ql_get_mb_sts
	.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	x22, _SEM_PROC_REG_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SEM_PROC_REG_MASK@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_ql_sem_spinlock
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x23, #0
	mov	x24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x24, x8
	ldr	x8, [x20, #8]
	add	x2, x8, x23
	mov	x0, x19
	bl	_ql_read_mpi_reg
	cbnz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x20]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_4
LBB0_6:
	mov	w21, #0
	b	LBB0_8
LBB0_7:
	mov	x21, x0
Lloh5:
	adrp	x8, _drv@GOTPAGE
Lloh6:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
LBB0_8:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_ql_sem_unlock
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SEM_PROC_REG_MASK,4,2          ; @SEM_PROC_REG_MASK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_drv,4,2                        ; @drv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed mailbox read.\n"

	.no_dead_strip	_ql_get_mb_sts
.subsections_via_symbols
