	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_hmc_setup
_i40iw_hmc_setup:                       ## @i40iw_hmc_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_I40IW_SD_TYPE_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	addq	$4, %rdi
	movq	_IW_CFG_FPM_QP_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i40iw_config_fpm_values
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_i40iw_create_hmc_objs
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_HMC_OBJS_CREATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_SD_TYPE_DIRECT,4,2       ## @I40IW_SD_TYPE_DIRECT
	.comm	_IW_CFG_FPM_QP_COUNT,4,2        ## @IW_CFG_FPM_QP_COUNT
	.comm	_HMC_OBJS_CREATED,4,2           ## @HMC_OBJS_CREATED
	.no_dead_strip	_i40iw_hmc_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_hmc_setup
_i40iw_hmc_setup:                       ; @i40iw_hmc_setup
	.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
Lloh0:
	adrp	x8, _I40IW_SD_TYPE_DIRECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_SD_TYPE_DIRECT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	add	x0, x0, #4
Lloh3:
	adrp	x8, _IW_CFG_FPM_QP_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IW_CFG_FPM_QP_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i40iw_config_fpm_values
	cbnz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_i40iw_create_hmc_objs
	cbnz	w0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _HMC_OBJS_CREATED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HMC_OBJS_CREATED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_SD_TYPE_DIRECT,4,2       ; @I40IW_SD_TYPE_DIRECT
	.comm	_IW_CFG_FPM_QP_COUNT,4,2        ; @IW_CFG_FPM_QP_COUNT
	.comm	_HMC_OBJS_CREATED,4,2           ; @HMC_OBJS_CREATED
	.no_dead_strip	_i40iw_hmc_setup
.subsections_via_symbols
