	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_sei_cp_domain_alloc
_mvebu_sei_cp_domain_alloc:             ## @mvebu_sei_cp_domain_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$1, %edx
	jne	LBB0_1
## %bb.2:
	movq	8(%rdi), %rbx
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	12(%rbx), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	callq	_find_first_zero_bit
	movq	(%rbx), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_4
## %bb.3:
	movl	12(%rbx), %esi
	movq	%rax, %rdi
	callq	_set_bit
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_mvebu_sei_cp_irq_chip,4,2      ## @mvebu_sei_cp_irq_chip
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.no_dead_strip	_mvebu_sei_cp_domain_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_sei_cp_domain_alloc
_mvebu_sei_cp_domain_alloc:             ; @mvebu_sei_cp_domain_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cmp	w2, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x20, [x0, #8]
	add	x19, x20, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x20, #12]
	ldr	x8, [x20]
	ldr	x1, [x8]
	bl	_find_first_zero_bit
	ldr	x8, [x20]
	ldr	x8, [x8]
	cmp	x0, x8
	b.hs	LBB0_3
; %bb.2:
	ldr	w1, [x20, #12]
	bl	_set_bit
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_mvebu_sei_cp_irq_chip,4,2      ; @mvebu_sei_cp_irq_chip
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.no_dead_strip	_mvebu_sei_cp_domain_alloc
.subsections_via_symbols
