	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ql_set_irq_mask
LCPI0_0:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ql_set_irq_mask:                       ## @ql_set_irq_mask
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movslq	(%rsi), %r12
	movl	(%rdi), %eax
	cltd
	idivl	4(%rdi)
	movl	%eax, %r15d
	movq	_QL_MSIX_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%rbx), %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movq	16(%rbx), %rax
	movb	(%rax,%r12,4), %cl
	movl	$1, %edi
	shll	%cl, %edi
	movl	%edi, 4(%r14)
	testl	%r15d, %r15d
	jle	LBB0_31
## %bb.14:
	movl	8(%rbx), %r8d
	imull	%r15d, %r12d
	movl	%r15d, %ecx
	cmpl	$8, %r15d
	jae	LBB0_16
## %bb.15:
	xorl	%r10d, %r10d
LBB0_25:
	movq	%r10, %rdx
	notq	%rdx
	testb	$1, %cl
	je	LBB0_27
## %bb.26:
	leal	(%r12,%r10), %esi
	addl	%r8d, %esi
	movslq	%esi, %rsi
	movb	(%rax,%rsi,4), %sil
	btsl	%esi, %edi
	orq	$1, %r10
LBB0_27:
	addq	%rcx, %rdx
	je	LBB0_30
## %bb.28:
	addl	%r12d, %r8d
	leal	(%r10,%r8), %edx
	subq	%r10, %rcx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movslq	%edx, %rdx
	movzbl	(%rax,%rdx,4), %esi
	btsl	%esi, %edi
	leal	1(%rdx), %esi
	movslq	%esi, %rsi
	movzbl	(%rax,%rsi,4), %esi
	btsl	%esi, %edi
	addl	$2, %edx
	addq	$-2, %rcx
	jne	LBB0_29
	jmp	LBB0_30
LBB0_1:
	movl	12(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_31
## %bb.2:
	movq	16(%rbx), %rcx
	movl	4(%r14), %esi
	cmpl	$8, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_16:
	leaq	-1(%rcx), %rdx
	leal	(%r8,%r12), %ebx
	leal	(%rdx,%rbx), %esi
	xorl	%r10d, %r10d
	cmpl	%ebx, %esi
	jl	LBB0_25
## %bb.17:
	shrq	$32, %rdx
	jne	LBB0_25
## %bb.18:
	movl	%ecx, %r10d
	andl	$-8, %r10d
	movd	%edi, %xmm0
	leaq	-8(%r10), %rdx
	movq	%rdx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.20:
	movq	%r9, %rdi
	andq	$-2, %rdi
	pxor	%xmm1, %xmm1
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [1065353216,1065353216,1065353216,1065353216]
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rbx
	movdqu	(%rax,%rbx,4), %xmm3
	movdqu	16(%rax,%rbx,4), %xmm4
	pslld	$23, %xmm3
	paddd	%xmm2, %xmm3
	cvttps2dq	%xmm3, %xmm3
	por	%xmm0, %xmm3
	pslld	$23, %xmm4
	paddd	%xmm2, %xmm4
	cvttps2dq	%xmm4, %xmm4
	por	%xmm1, %xmm4
	leal	8(%rbx), %esi
	movslq	%esi, %rsi
	movdqu	(%rax,%rsi,4), %xmm0
	movdqu	16(%rax,%rsi,4), %xmm1
	pslld	$23, %xmm0
	paddd	%xmm2, %xmm0
	cvttps2dq	%xmm0, %xmm0
	por	%xmm3, %xmm0
	pslld	$23, %xmm1
	paddd	%xmm2, %xmm1
	cvttps2dq	%xmm1, %xmm1
	por	%xmm4, %xmm1
	addl	$16, %ebx
	addl	$16, %edx
	addq	$-2, %rdi
	jne	LBB0_21
## %bb.22:
	testb	$1, %r9b
	je	LBB0_24
LBB0_23:
	addl	%r12d, %edx
	addl	%r8d, %edx
	movslq	%edx, %rdx
	movdqu	(%rax,%rdx,4), %xmm2
	movdqu	16(%rax,%rdx,4), %xmm3
	pslld	$23, %xmm2
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm2, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm2
	por	%xmm2, %xmm1
LBB0_24:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %edi
	cmpq	%rcx, %r10
	jne	LBB0_25
LBB0_30:
	movl	%edi, 4(%r14)
	jmp	LBB0_31
LBB0_4:
	movl	%eax, %edx
	andl	$-8, %edx
	movd	%esi, %xmm0
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [1065353216,1065353216,1065353216,1065353216]
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,4), %xmm3
	movdqu	16(%rcx,%rdi,4), %xmm4
	movdqu	32(%rcx,%rdi,4), %xmm5
	movdqu	48(%rcx,%rdi,4), %xmm6
	pslld	$23, %xmm3
	paddd	%xmm2, %xmm3
	cvttps2dq	%xmm3, %xmm3
	por	%xmm0, %xmm3
	pslld	$23, %xmm4
	paddd	%xmm2, %xmm4
	cvttps2dq	%xmm4, %xmm4
	por	%xmm1, %xmm4
	pslld	$23, %xmm5
	paddd	%xmm2, %xmm5
	cvttps2dq	%xmm5, %xmm0
	por	%xmm3, %xmm0
	pslld	$23, %xmm6
	paddd	%xmm2, %xmm6
	cvttps2dq	%xmm6, %xmm1
	por	%xmm4, %xmm1
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	testb	$1, %bl
	je	LBB0_10
LBB0_9:
	movdqu	(%rcx,%rdi,4), %xmm2
	movdqu	16(%rcx,%rdi,4), %xmm3
	pslld	$23, %xmm2
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm2, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm2
	por	%xmm2, %xmm1
LBB0_10:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %esi
	cmpq	%rax, %rdx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rdx,4), %edi
	btsl	%edi, %esi
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_11
LBB0_12:
	movl	%esi, 4(%r14)
LBB0_31:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_9
	jmp	LBB0_10
LBB0_19:
	pxor	%xmm1, %xmm1
	xorl	%edx, %edx
	testb	$1, %r9b
	jne	LBB0_23
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_QL_MSIX_ENABLED,4,2            ## @QL_MSIX_ENABLED
	.no_dead_strip	_ql_set_irq_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_set_irq_mask
_ql_set_irq_mask:                       ; @ql_set_irq_mask
	.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	x19, x1
	mov	x20, x0
	ldrsw	x21, [x1]
	ldp	w22, w23, [x0]
Lloh0:
	adrp	x8, _QL_MSIX_ENABLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QL_MSIX_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #24
	bl	_test_bit
	bl	_likely
	cbz	x0, LBB0_8
; %bb.1:
	sdiv	w9, w22, w23
	ldr	x8, [x20, #16]
	ldr	w10, [x8, x21, lsl #2]
	mov	w11, #1
	lsl	w12, w11, w10
	str	w12, [x19, #4]
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.2:
	ldr	w10, [x20, #8]
	mul	w11, w9, w21
	cmp	w9, #16
	b.lo	LBB0_4
; %bb.3:
	sub	x13, x9, #1
	add	w14, w10, w11
	add	w15, w14, w13
	cmp	w15, w14
	lsr	x13, x13, #32
	ccmp	x13, #0, #0, ge
	b.eq	LBB0_18
LBB0_4:
	mov	x13, #0
LBB0_5:
	add	w10, w10, w11
	add	w10, w10, w13
	sub	x9, x9, x13
	mov	w11, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8, w10, sxtw #2]
	lsl	w13, w11, w13
	orr	w12, w12, w13
	add	w10, w10, #1
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_7:
	str	w12, [x19, #4]
	b	LBB0_17
LBB0_8:
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.9:
	ldr	x9, [x20, #16]
	ldr	w11, [x19, #4]
	cmp	w8, #16
	b.hs	LBB0_11
; %bb.10:
	mov	x10, #0
	b	LBB0_14
LBB0_11:
	and	x10, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w11
	movi.2d	v1, #0000000000000000
	add	x11, x9, #32
	movi.4s	v2, #1
	mov	x12, x10
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	ushl.4s	v5, v2, v5
	ushl.4s	v6, v2, v6
	ushl.4s	v7, v2, v7
	ushl.4s	v16, v2, v16
	orr.16b	v0, v0, v5
	orr.16b	v1, v1, v6
	orr.16b	v3, v3, v7
	orr.16b	v4, v4, v16
	subs	x12, x12, #16
	b.ne	LBB0_12
; %bb.13:
	orr.16b	v0, v1, v0
	orr.16b	v0, v3, v0
	orr.16b	v0, v4, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	x10, x8
	b.eq	LBB0_16
LBB0_14:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
	mov	w10, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9], #4
	lsl	w12, w10, w12
	orr	w11, w11, w12
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	str	w11, [x19, #4]
LBB0_17:
	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
LBB0_18:
	and	x13, x9, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w12
	movi.4s	v2, #1
	mov	x12, x13
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	x15, x8, w14, sxtw #2
	ldp	q5, q6, [x15]
	ldp	q7, q16, [x15, #32]
	ushl.4s	v5, v2, v5
	ushl.4s	v6, v2, v6
	ushl.4s	v7, v2, v7
	ushl.4s	v16, v2, v16
	orr.16b	v1, v1, v5
	orr.16b	v0, v0, v6
	orr.16b	v3, v3, v7
	orr.16b	v4, v4, v16
	add	w14, w14, #16
	subs	x12, x12, #16
	b.ne	LBB0_19
; %bb.20:
	orr.16b	v0, v0, v1
	orr.16b	v0, v3, v0
	orr.16b	v0, v4, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w14, v0[1]
	orr	w12, w12, w14
	cmp	x13, x9
	b.eq	LBB0_7
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_QL_MSIX_ENABLED,4,2            ; @QL_MSIX_ENABLED
	.no_dead_strip	_ql_set_irq_mask
.subsections_via_symbols
