	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_find_sme
_arm_smmu_find_sme:                     ## @arm_smmu_find_sme
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	_ENOSPC@GOTPCREL(%rip), %r8
	xorl	%eax, %eax
	subl	(%r8), %eax
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.3:
	addq	$8, %rcx
	xorl	%r9d, %r9d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	orl	%edx, %edi
	notl	%edi
	testl	%edi, %r10d
	je	LBB0_10
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r9
	addq	$12, %rcx
	cmpq	%r9, %r8
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-8(%rcx), %edi
	movl	%edi, %r11d
	notl	%r11d
	movl	-4(%rcx), %r10d
	xorl	%esi, %r10d
	testl	%r11d, %edx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%r11d, %r10d
	jne	LBB0_9
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	cmovsl	%r9d, %eax
	jmp	LBB0_6
LBB0_1:
	movl	%esi, %eax
	popq	%rbp
	retq
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_11:
	movl	%r9d, %eax
LBB0_12:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_arm_smmu_find_sme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_find_sme
_arm_smmu_find_sme:                     ; @arm_smmu_find_sme
	.cfi_startproc
; %bb.0:
	ldr	x10, [x0, #8]
	cbz	x10, LBB0_9
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x9, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENOSPC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	neg	w0, w9
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x9, #0
	add	x10, x10, #8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w0, #0
	csel	w0, w9, w0, lt
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x10, x10, #12
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cbz	w11, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w11, w12, [x10, #-8]
	bic	w13, w2, w11
	eor	w12, w12, w1
	cmp	w13, #0
	bic	w13, w12, w11
	ccmp	w13, #0, #0, eq
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	orr	w11, w11, w2
	bics	wzr, w12, w11
	b.ne	LBB0_4
; %bb.8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_9:
	mov	x0, x1
	ret
LBB0_10:
	mov	x0, x9
LBB0_11:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_arm_smmu_find_sme
.subsections_via_symbols
