	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_smmu_cmdq_init
_arm_smmu_cmdq_init:                    ## @arm_smmu_cmdq_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movb	24(%rdi), %cl
	movl	$1, %r15d
	shll	%cl, %r15d
	addq	$20, %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_bitmap_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, 8(%rbx)
	movl	(%rbx), %edi
	movq	_arm_smmu_cmdq_free_bitmap@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_devm_add_action
	jmp	LBB0_3
LBB0_1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate cmdq bitmap\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_arm_smmu_cmdq_free_bitmap,4,2  ## @arm_smmu_cmdq_free_bitmap
	.no_dead_strip	_arm_smmu_cmdq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_smmu_cmdq_init
_arm_smmu_cmdq_init:                    ; @arm_smmu_cmdq_init
	.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
	mov	x19, x0
	ldr	w8, [x0, #24]
	mov	w9, #1
	lsl	w20, w9, w8
	add	x0, x0, #20
	mov	w1, #0
	bl	_atomic_set
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bitmap_zalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
	str	x0, [x19, #8]
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _arm_smmu_cmdq_free_bitmap@GOTPAGE
Lloh4:
	ldr	x8, [x8, _arm_smmu_cmdq_free_bitmap@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_devm_add_action
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate cmdq bitmap\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_arm_smmu_cmdq_free_bitmap,4,2  ; @arm_smmu_cmdq_free_bitmap
	.no_dead_strip	_arm_smmu_cmdq_init
.subsections_via_symbols
