	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_acquire_swfw_sync_i225     ## -- Begin function igc_acquire_swfw_sync_i225
	.p2align	4, 0x90
_igc_acquire_swfw_sync_i225:            ## @igc_acquire_swfw_sync_i225
	.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
	pushq	%rax
	.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, %r13
	movl	%esi, %r15d
	shll	$16, %r15d
	orl	%esi, %r15d
	movl	$200, %ebx
	movq	_IGC_SW_FW_SYNC@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_igc_get_hw_semaphore_i225
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %edi
	callq	_rd32
	testl	%r15d, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_igc_put_hw_semaphore
	movl	$5, %edi
	callq	_mdelay
	decq	%rbx
	jne	LBB0_1
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_hw_dbg
LBB0_2:
	movq	_IGC_ERR_SWFW_SYNC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_7
LBB0_6:
	orl	%r14d, %eax
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_wr32
	movq	%r13, %rdi
	callq	_igc_put_hw_semaphore
	xorl	%eax, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IGC_ERR_SWFW_SYNC,8,3          ## @IGC_ERR_SWFW_SYNC
	.comm	_IGC_SW_FW_SYNC,4,2             ## @IGC_SW_FW_SYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Driver can't access resource, SW_FW_SYNC timeout.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_igc_acquire_swfw_sync_i225     ; -- Begin function igc_acquire_swfw_sync_i225
	.p2align	2
_igc_acquire_swfw_sync_i225:            ; @igc_acquire_swfw_sync_i225
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	orr	w21, w1, w1, lsl #16
	mov	w23, #200
Lloh0:
	adrp	x22, _IGC_SW_FW_SYNC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IGC_SW_FW_SYNC@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_igc_get_hw_semaphore_i225
	cbnz	x0, LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22]
	bl	_rd32
	tst	w0, w21
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_igc_put_hw_semaphore
	mov	w0, #5
	bl	_mdelay
	subs	x23, x23, #1
	b.ne	LBB0_1
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hw_dbg
LBB0_5:
Lloh4:
	adrp	x8, _IGC_ERR_SWFW_SYNC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IGC_ERR_SWFW_SYNC@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_7
LBB0_6:
	orr	w1, w0, w20
	ldr	w0, [x22]
	bl	_wr32
	mov	x0, x19
	bl	_igc_put_hw_semaphore
	mov	x0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IGC_ERR_SWFW_SYNC,8,3          ; @IGC_ERR_SWFW_SYNC
	.comm	_IGC_SW_FW_SYNC,4,2             ; @IGC_SW_FW_SYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver can't access resource, SW_FW_SYNC timeout.\n"

.subsections_via_symbols
