	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_master_acf_gpio_request
_fsi_master_acf_gpio_request:           ## @fsi_master_acf_gpio_request
	.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
	movq	%rdi, %r14
	movq	_ARB_ARM_REQ@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	_ARB_REG@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	8(%r14), %rsi
	callq	_iowrite8
	movq	_CF_STARTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_ioread32
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	$0, -44(%rbp)
	movl	24(%r14), %edi
	movq	_SCU_COPRO_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	movq	_SCU_COPRO_CLK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-44(%rbp), %eax
	je	LBB0_9
LBB0_2:
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movq	_CVIC_TRIG_REG@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	$2, %edi
	callq	_iowrite32
LBB0_4:
	movl	$10000, %ebx                    ## imm = 0x2710
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	8(%r14), %rdi
	callq	_ioread8
	movq	%rax, %r13
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_5
LBB0_7:
	movq	_ARB_ARM_ACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARB_ARM_REQ,8,3                ## @ARB_ARM_REQ
	.comm	_ARB_REG,8,3                    ## @ARB_REG
	.comm	_CF_STARTED,8,3                 ## @CF_STARTED
	.comm	_SCU_COPRO_CTRL,4,2             ## @SCU_COPRO_CTRL
	.comm	_SCU_COPRO_CLK_EN,4,2           ## @SCU_COPRO_CLK_EN
	.comm	_CVIC_TRIG_REG,8,3              ## @CVIC_TRIG_REG
	.comm	_ARB_ARM_ACK,8,3                ## @ARB_ARM_ACK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPIO request arbitration timeout\n"

	.no_dead_strip	_fsi_master_acf_gpio_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_master_acf_gpio_request
_fsi_master_acf_gpio_request:           ; @fsi_master_acf_gpio_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x21, _ARB_ARM_REQ@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ARB_ARM_REQ@GOTPAGEOFF]
	ldr	x0, [x21]
	ldr	x8, [x19, #8]
Lloh2:
	adrp	x22, _ARB_REG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ARB_REG@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_iowrite8
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _CF_STARTED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CF_STARTED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_ioread32
	cbnz	x0, LBB0_2
; %bb.1:
	str	wzr, [sp, #12]
	ldr	w0, [x19, #24]
Lloh7:
	adrp	x8, _SCU_COPRO_CTRL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SCU_COPRO_CTRL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _SCU_COPRO_CLK_EN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SCU_COPRO_CLK_EN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh13:
	adrp	x9, _CVIC_TRIG_REG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CVIC_TRIG_REG@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #2
	bl	_iowrite32
LBB0_4:
	mov	w23, #10000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_ioread8
	mov	x20, x0
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w23, w23, #1
	b.ne	LBB0_5
LBB0_7:
Lloh16:
	adrp	x8, _ARB_ARM_ACK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARB_ARM_ACK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x20, x8
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ARB_ARM_REQ,8,3                ; @ARB_ARM_REQ
	.comm	_ARB_REG,8,3                    ; @ARB_REG
	.comm	_CF_STARTED,8,3                 ; @CF_STARTED
	.comm	_SCU_COPRO_CTRL,4,2             ; @SCU_COPRO_CTRL
	.comm	_SCU_COPRO_CLK_EN,4,2           ; @SCU_COPRO_CLK_EN
	.comm	_CVIC_TRIG_REG,8,3              ; @CVIC_TRIG_REG
	.comm	_ARB_ARM_ACK,8,3                ; @ARB_ARM_ACK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPIO request arbitration timeout\n"

	.no_dead_strip	_fsi_master_acf_gpio_request
.subsections_via_symbols
