	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_dm_create                 ## -- Begin function mlx5_dm_create
	.p2align	4, 0x90
_mlx5_dm_create:                        ## @mlx5_dm_create
	.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	%rdi, %r15
	movq	_general_obj_types@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN_64
	movq	_MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	_steering_sw_icm_start_address@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP64_DEV_MEM
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_log_steering_sw_icm_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_DEV_MEM
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_MLX5_LOG_SW_ICM_BLOCK_SIZE
	subq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_BIT
	movl	%eax, %edi
	callq	_BITS_TO_LONGS
	movl	(%r12), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
LBB0_6:
	movq	_header_modify_sw_icm_start_address@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP64_DEV_MEM
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	_log_header_modify_sw_icm_size@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MLX5_CAP_DEV_MEM
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_MLX5_LOG_SW_ICM_BLOCK_SIZE
	subq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_BIT
	movl	%eax, %edi
	callq	_BITS_TO_LONGS
	movl	(%r12), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.8:
	movq	(%r14), %rdi
	callq	_kfree
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_1:
	xorl	%r14d, %r14d
LBB0_2:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_general_obj_types,4,2          ## @general_obj_types
	.comm	_MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM,4,2 ## @MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_steering_sw_icm_start_address,4,2 ## @steering_sw_icm_start_address
	.comm	_log_steering_sw_icm_size,4,2   ## @log_steering_sw_icm_size
	.comm	_header_modify_sw_icm_start_address,4,2 ## @header_modify_sw_icm_start_address
	.comm	_log_header_modify_sw_icm_size,4,2 ## @log_header_modify_sw_icm_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_dm_create                 ; -- Begin function mlx5_dm_create
	.p2align	2
_mlx5_dm_create:                        ; @mlx5_dm_create
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _general_obj_types@GOTPAGE
Lloh1:
	ldr	x8, [x8, _general_obj_types@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_MLX5_CAP_GEN_64
Lloh3:
	adrp	x8, _MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.1:
Lloh6:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x19, x0
	add	x0, x0, #16
	bl	_spin_lock_init
Lloh8:
	adrp	x8, _steering_sw_icm_start_address@GOTPAGE
Lloh9:
	ldr	x8, [x8, _steering_sw_icm_start_address@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP64_DEV_MEM
	cbz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _log_steering_sw_icm_size@GOTPAGE
Lloh12:
	ldr	x8, [x8, _log_steering_sw_icm_size@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_DEV_MEM
	mov	x21, x0
	mov	x0, x20
	bl	_MLX5_LOG_SW_ICM_BLOCK_SIZE
	sub	x0, x21, x0
	bl	_BIT
	bl	_BITS_TO_LONGS
	ldr	w2, [x22]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19]
	cbz	x0, LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _header_modify_sw_icm_start_address@GOTPAGE
Lloh15:
	ldr	x8, [x8, _header_modify_sw_icm_start_address@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP64_DEV_MEM
	cbz	x0, LBB0_10
; %bb.5:
Lloh17:
	adrp	x8, _log_header_modify_sw_icm_size@GOTPAGE
Lloh18:
	ldr	x8, [x8, _log_header_modify_sw_icm_size@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MLX5_CAP_DEV_MEM
	mov	x21, x0
	mov	x0, x20
	bl	_MLX5_LOG_SW_ICM_BLOCK_SIZE
	sub	x0, x21, x0
	bl	_BIT
	bl	_BITS_TO_LONGS
	ldr	w2, [x22]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_10
; %bb.6:
	ldr	x0, [x19]
	bl	_kfree
LBB0_7:
	mov	x0, x19
	bl	_kfree
LBB0_8:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ERR_PTR
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_general_obj_types,4,2          ; @general_obj_types
	.comm	_MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM,4,2 ; @MLX5_GENERAL_OBJ_TYPES_CAP_SW_ICM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_steering_sw_icm_start_address,4,2 ; @steering_sw_icm_start_address
	.comm	_log_steering_sw_icm_size,4,2   ; @log_steering_sw_icm_size
	.comm	_header_modify_sw_icm_start_address,4,2 ; @header_modify_sw_icm_start_address
	.comm	_log_header_modify_sw_icm_size,4,2 ; @log_header_modify_sw_icm_size
.subsections_via_symbols
