	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_hmc_finish_add_sd_reg
_i40iw_hmc_finish_add_sd_reg:           ## @i40iw_hmc_finish_add_sd_reg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	(%rsi), %rcx
	movq	8(%rsi), %r8
	movq	32(%rsi), %rsi
	movq	8(%rsi), %rdx
	movq	(%rdx,%r8,8), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_3
## %bb.1:
	addq	16(%rax), %rcx
	cmpq	%rdx, %rcx
	jle	LBB0_5
## %bb.2:
	movq	_I40IW_ERR_INVALID_HMC_OBJ_COUNT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_I40IW_ERR_INVALID_HMC_OBJ_INDEX@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_5:
	movl	24(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movq	(%rsi), %rax
	movl	(%rax), %edx
	movl	$1, %r8d
	popq	%rbp
	jmp	_i40iw_hmc_sd_grp               ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_ERR_INVALID_HMC_OBJ_INDEX,4,2 ## @I40IW_ERR_INVALID_HMC_OBJ_INDEX
	.comm	_I40IW_ERR_INVALID_HMC_OBJ_COUNT,4,2 ## @I40IW_ERR_INVALID_HMC_OBJ_COUNT
	.no_dead_strip	_i40iw_hmc_finish_add_sd_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_hmc_finish_add_sd_reg
_i40iw_hmc_finish_add_sd_reg:           ; @i40iw_hmc_finish_add_sd_reg
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	ldr	x1, [x1, #32]
	ldr	x10, [x1, #8]
	ldp	x9, x11, [x8]
	ldr	x10, [x10, x11, lsl #3]
	cmp	x9, x10
	b.ge	LBB0_3
; %bb.1:
	ldr	x11, [x8, #16]
	add	x9, x11, x9
	cmp	x9, x10
	b.le	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _I40IW_ERR_INVALID_HMC_OBJ_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_ERR_INVALID_HMC_OBJ_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_3:
Lloh3:
	adrp	x8, _I40IW_ERR_INVALID_HMC_OBJ_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I40IW_ERR_INVALID_HMC_OBJ_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	w3, [x8, #24]
	cbz	w3, LBB0_6
; %bb.5:
	ldr	x8, [x1]
	ldr	w2, [x8]
	mov	w4, #1
	b	_i40iw_hmc_sd_grp
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_ERR_INVALID_HMC_OBJ_INDEX,4,2 ; @I40IW_ERR_INVALID_HMC_OBJ_INDEX
	.comm	_I40IW_ERR_INVALID_HMC_OBJ_COUNT,4,2 ; @I40IW_ERR_INVALID_HMC_OBJ_COUNT
	.no_dead_strip	_i40iw_hmc_finish_add_sd_reg
.subsections_via_symbols
