	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_create_hmc_objs
_i40iw_create_hmc_objs:                 ## @i40iw_create_hmc_objs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)
	movl	%r14d, -88(%rbp)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %ecx
	movl	%ecx, -60(%rbp)
	movq	_IW_HMC_OBJ_TYPE_NUM@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_10
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	8(%rcx), %rbx
	movq	_iw_hmc_obj_types@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -80(%rbp)
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_i40iw_create_hmc_obj_type
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_3:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IW_HMC_OBJ_TYPE_NUM@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	%rcx, -80(%rbp)
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	%rbx, %rdi
	leaq	-88(%rbp), %rsi
	callq	_i40iw_create_hmc_obj_type
	incq	%r15
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movl	%eax, %r12d
	decq	%r15
LBB0_7:
	movl	%r15d, %eax
	movq	(%r13), %rcx
	movq	(%rcx,%rax,8), %rsi
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	callq	_i40iw_pr_err
	testl	%r15d, %r15d
	je	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	-8(%rax,%r15,8), %rsi
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	movl	%r14d, %ecx
	xorl	%r8d, %r8d
	callq	_i40iw_close_hmc_objects_type
	decq	%r15
	jne	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rax
	movl	16(%rcx), %edx
	movl	20(%rcx), %edi
	xorl	%esi, %esi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	*(%rax)
	movl	%eax, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_HMC_OBJ_TYPE_NUM,4,2        ## @IW_HMC_OBJ_TYPE_NUM
	.comm	_iw_hmc_obj_types,8,3           ## @iw_hmc_obj_types
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create obj type %d status = %d\n"

	.no_dead_strip	_i40iw_create_hmc_objs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_create_hmc_objs
_i40iw_create_hmc_objs:                 ; @i40iw_create_hmc_objs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x20, x21
	ldr	x8, [x20, #8]!
	str	x8, [sp, #40]
	ldr	w9, [x21]
	str	w19, [sp, #8]
	str	w9, [sp, #36]
Lloh0:
	adrp	x24, _IW_HMC_OBJ_TYPE_NUM@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IW_HMC_OBJ_TYPE_NUM@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
Lloh2:
	adrp	x23, _iw_hmc_obj_types@GOTPAGE
Lloh3:
	ldr	x23, [x23, _iw_hmc_obj_types@GOTPAGEOFF]
	ldr	x9, [x23]
	ldr	x9, [x9]
	str	x9, [sp, #16]
	ldr	x8, [x8]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #32]
	str	xzr, [sp, #24]
	add	x1, sp, #8
	mov	x0, x20
	bl	_i40iw_create_hmc_obj_type
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	mov	x21, #0
	b	LBB0_7
LBB0_3:
	mov	w25, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x23]
	ldr	x9, [x9, x25, lsl #3]
	str	x9, [sp, #16]
	ldr	x8, [x8]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [sp, #32]
	str	xzr, [sp, #24]
	add	x1, sp, #8
	mov	x0, x20
	bl	_i40iw_create_hmc_obj_type
	add	x25, x25, #1
	cbz	w0, LBB0_4
; %bb.6:
	mov	x22, x0
	sub	x21, x25, #1
LBB0_7:
	ldr	x8, [x23]
	ldr	x1, [x8, w21, uxtw #3]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	bl	_i40iw_pr_err
	cbz	w21, LBB0_11
; %bb.8:
	lsl	x8, x21, #3
	sub	x21, x8, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	x1, [x8, x21]
	ldr	x2, [x20]
	mov	x0, x20
	mov	x3, x19
	mov	w4, #0
	bl	_i40iw_close_hmc_objects_type
	sub	x21, x21, #8
	cmn	x21, #8
	b.ne	LBB0_9
	b	LBB0_11
LBB0_10:
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	ldp	w2, w0, [x21, #16]
	mov	w1, #0
	mov	w3, #1
	mov	w4, #1
	blr	x8
	mov	x22, x0
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_HMC_OBJ_TYPE_NUM,4,2        ; @IW_HMC_OBJ_TYPE_NUM
	.comm	_iw_hmc_obj_types,8,3           ; @iw_hmc_obj_types
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create obj type %d status = %d\n"

	.no_dead_strip	_i40iw_create_hmc_objs
.subsections_via_symbols
