	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pf_add_hmc_obj_callback
_pf_add_hmc_obj_callback:               ## @pf_add_hmc_obj_callback
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	32(%rdi), %r14
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_3:
	leaq	16(%rbx), %r12
	movq	32(%rbx), %r13
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	%r12, -48(%rbp)
	movl	$0, -80(%rbp)
	movq	(%r13), %r8
	movq	%r8, -72(%rbp)
	movq	_I40IW_HMC_IW_PBLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r8
	jne	LBB0_4
## %bb.5:
	movq	_I40IW_SD_TYPE_PAGED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movl	8(%rbx), %edi
	movl	24(%rbx), %esi
	xorl	%edx, %edx
	callq	_i40iw_pf_init_vfhmc
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	$1, (%rbx)
	jmp	LBB0_3
LBB0_4:
	movq	_I40IW_SD_TYPE_DIRECT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	12(%r13), %eax
	movl	%eax, -60(%rbp)
	movl	8(%r13), %ecx
	movl	%ecx, -64(%rbp)
	movl	8(%rbx), %edi
	movq	_I40IW_DEBUG_VIRT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_i40iw_debug
	movl	8(%rbx), %edi
	movq	%r15, %rsi
	callq	_i40iw_sc_create_hmc_obj
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	8(%r13), %eax
	movq	(%r12), %rcx
	movq	(%r13), %rdx
	movl	%eax, (%rcx,%rdx,4)
	xorl	%eax, %eax
LBB0_8:
	decl	12(%rbx)
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_vchnl_pf_send_error_resp
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_HMC_IW_PBLE,8,3          ## @I40IW_HMC_IW_PBLE
	.comm	_I40IW_SD_TYPE_PAGED,4,2        ## @I40IW_SD_TYPE_PAGED
	.comm	_I40IW_SD_TYPE_DIRECT,4,2       ## @I40IW_SD_TYPE_DIRECT
	.comm	_I40IW_DEBUG_VIRT,4,2           ## @I40IW_DEBUG_VIRT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I40IW_VCHNL_OP_ADD_HMC_OBJ_RANGE.  Add %u type %u objects\n"

	.no_dead_strip	_pf_add_hmc_obj_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pf_add_hmc_obj_callback
_pf_add_hmc_obj_callback:               ; @pf_add_hmc_obj_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w8, [x19], #32
	cbz	w8, LBB0_3
LBB0_1:
	add	x21, x20, #16
	ldr	x22, [x20, #32]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	x21, [sp, #40]
	str	wzr, [sp, #8]
	ldr	x4, [x22]
	str	x4, [sp, #16]
Lloh0:
	adrp	x8, _I40IW_HMC_IW_PBLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_HMC_IW_PBLE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _I40IW_SD_TYPE_PAGED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I40IW_SD_TYPE_PAGED@GOTPAGEOFF]
Lloh4:
	adrp	x10, _I40IW_SD_TYPE_DIRECT@GOTPAGE
Lloh5:
	ldr	x10, [x10, _I40IW_SD_TYPE_DIRECT@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x4, x8
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [sp, #32]
	ldr	d0, [x22, #8]
	str	d0, [sp, #24]
	ldr	w0, [x20, #8]
Lloh7:
	adrp	x8, _I40IW_DEBUG_VIRT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I40IW_DEBUG_VIRT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	fmov	w3, s0
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_i40iw_debug
	ldr	w0, [x20, #8]
	add	x1, sp, #8
	bl	_i40iw_sc_create_hmc_obj
	mov	x3, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x22, #8]
	ldr	x9, [x21]
	ldr	x10, [x22]
	str	w8, [x9, x10, lsl #2]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20, #8]
	ldr	w1, [x20, #24]
	mov	x2, #0
	bl	_i40iw_pf_init_vfhmc
	mov	x3, x0
	cbz	w0, LBB0_5
LBB0_4:
	ldp	w0, w8, [x20, #8]
	sub	w8, w8, #1
	str	w8, [x20, #12]
	ldr	w1, [x20, #4]
	mov	x2, x19
	bl	_vchnl_pf_send_error_resp
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_HMC_IW_PBLE,8,3          ; @I40IW_HMC_IW_PBLE
	.comm	_I40IW_SD_TYPE_PAGED,4,2        ; @I40IW_SD_TYPE_PAGED
	.comm	_I40IW_SD_TYPE_DIRECT,4,2       ; @I40IW_SD_TYPE_DIRECT
	.comm	_I40IW_DEBUG_VIRT,4,2           ; @I40IW_DEBUG_VIRT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I40IW_VCHNL_OP_ADD_HMC_OBJ_RANGE.  Add %u type %u objects\n"

	.no_dead_strip	_pf_add_hmc_obj_callback
.subsections_via_symbols
