	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vexpress_syscfg_exec
_vexpress_syscfg_exec:                  ## @vexpress_syscfg_exec
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	16(%rdi), %r13
	xorl	%edi, %edi
	cmpl	%esi, (%r12)
	setle	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_SYS_CFGCTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	movq	_SYS_CFGCTRL_START@GOTPCREL(%rip), %r14
	andl	(%r14), %eax
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SYS_CFGCTRL@GOTPCREL(%rip), %rdx
	movq	8(%r12), %rax
	movslq	%ebx, %rcx
	movl	(%r14), %ebx
	orl	(%rax,%rcx,4), %ebx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movq	_SYS_CFGCTRL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	orl	%eax, %ebx
	testl	%ecx, %ecx
	movq	%rdx, %r14
	je	LBB0_9
## %bb.8:
	movl	(%r15), %r8d
	jmp	LBB0_10
LBB0_9:
	movl	$-559038737, (%r15)             ## imm = 0xDEADBEEF
	movl	$-559038737, %r8d               ## imm = 0xDEADBEEF
LBB0_10:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	_SYS_CFGDATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	callq	_writel
	movq	_SYS_CFGSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	(%r14), %rsi
	addq	8(%r13), %rsi
	movl	%ebx, %edi
	callq	_writel
	xorl	%eax, %eax
	callq	_mb
	movl	$100, %ebx
	movl	$-100, %r15d
	movq	_SYS_CFGSTAT_ERR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_irqs_disabled
	testl	%eax, %eax
	je	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	callq	_udelay
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_set_current_state
	movq	%rbx, %rdi
	callq	_usecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_SYS_CFGSTAT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	testl	%eax, (%r14)
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	%r15d
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-20(%rbx), %rcx
	cmpq	$21, %rbx
	cmovgeq	%rcx, %rbx
	movq	_SYS_CFGSTAT_COMPLETE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
LBB0_19:
	xorl	%edi, %edi
	testl	%r15d, %r15d
	sete	%dil
	callq	_WARN_ON_ONCE
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_16:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_21:
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.22:
	movq	_SYS_CFGDATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_23
LBB0_13:
	movq	_EINTR@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SYS_CFGCTRL,8,3                ## @SYS_CFGCTRL
	.comm	_SYS_CFGCTRL_START,4,2          ## @SYS_CFGCTRL_START
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_SYS_CFGCTRL_WRITE,4,2          ## @SYS_CFGCTRL_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"func %p, command %x, data %x\n"

	.comm	_SYS_CFGDATA,8,3                ## @SYS_CFGDATA
	.comm	_SYS_CFGSTAT,8,3                ## @SYS_CFGSTAT
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_current,4,2                    ## @current
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_SYS_CFGSTAT_ERR,4,2            ## @SYS_CFGSTAT_ERR
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_SYS_CFGSTAT_COMPLETE,4,2       ## @SYS_CFGSTAT_COMPLETE
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"func %p, read data %x\n"

	.no_dead_strip	_vexpress_syscfg_exec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vexpress_syscfg_exec
_vexpress_syscfg_exec:                  ; @vexpress_syscfg_exec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w8, [x0]
	cmp	w8, w1
	cset	w0, le
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	ldr	x8, [x23, #8]
Lloh2:
	adrp	x26, _SYS_CFGCTRL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _SYS_CFGCTRL@GOTPAGEOFF]
	ldr	x9, [x26]
	add	x0, x9, x8
	bl	_readl
Lloh4:
	adrp	x24, _SYS_CFGCTRL_START@GOTPAGE
Lloh5:
	ldr	x24, [x24, _SYS_CFGCTRL_START@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w0, w8, w0
	bl	_WARN_ON
	cbz	x0, LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w22, sxtw #2]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _SYS_CFGCTRL_WRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SYS_CFGCTRL_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w21, #0
	csel	w9, wzr, w9, eq
	orr	w22, w8, w9
	cbz	w21, LBB0_8
; %bb.7:
	ldr	w8, [x20]
	b	LBB0_9
LBB0_8:
	mov	w8, #48879
	movk	w8, #57005, lsl #16
	str	w8, [x20]
LBB0_9:
	ldr	w0, [x23]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_dev_dbg
	ldr	w0, [x20]
	ldr	x8, [x23, #8]
Lloh13:
	adrp	x9, _SYS_CFGDATA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SYS_CFGDATA@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x23, #8]
Lloh16:
	adrp	x25, _SYS_CFGSTAT@GOTPAGE
Lloh17:
	ldr	x25, [x25, _SYS_CFGSTAT@GOTPAGEOFF]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x23, #8]
	ldr	x9, [x26]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	bl	_mb
	mov	w26, #-100
	mov	w22, #100
Lloh18:
	adrp	x28, _current@GOTPAGE
Lloh19:
	ldr	x28, [x28, _current@GOTPAGEOFF]
Lloh20:
	adrp	x24, _SYS_CFGSTAT_ERR@GOTPAGE
Lloh21:
	ldr	x24, [x24, _SYS_CFGSTAT_ERR@GOTPAGEOFF]
Lloh22:
	adrp	x27, _SYS_CFGSTAT_COMPLETE@GOTPAGE
Lloh23:
	ldr	x27, [x27, _SYS_CFGSTAT_COMPLETE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	bl	_irqs_disabled
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	bl	_udelay
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
Lloh24:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_set_current_state
	mov	x0, x22
	bl	_usecs_to_jiffies
	bl	_schedule_timeout
	ldr	w0, [x28]
	bl	_signal_pending
	cbnz	x0, LBB0_22
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x23, #8]
	ldr	x9, [x25]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	adds	w26, w26, #1
	b.hs	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	subs	x8, x22, #20
	csel	x22, x8, x22, gt
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_10
LBB0_16:
	cmp	w26, #0
	cset	w0, eq
	bl	_WARN_ON_ONCE
	cbz	x0, LBB0_19
; %bb.17:
Lloh27:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_4
LBB0_18:
Lloh29:
	adrp	x8, _EFAULT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_4
LBB0_19:
	cbnz	w21, LBB0_21
; %bb.20:
	ldr	x8, [x23, #8]
Lloh31:
	adrp	x9, _SYS_CFGDATA@GOTPAGE
Lloh32:
	ldr	x9, [x9, _SYS_CFGDATA@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x3, x0
	str	w0, [x20]
	ldr	w0, [x23]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
LBB0_21:
	mov	w0, #0
	b	LBB0_5
LBB0_22:
Lloh36:
	adrp	x8, _EINTR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SYS_CFGCTRL,8,3                ; @SYS_CFGCTRL
	.comm	_SYS_CFGCTRL_START,4,2          ; @SYS_CFGCTRL_START
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_SYS_CFGCTRL_WRITE,4,2          ; @SYS_CFGCTRL_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"func %p, command %x, data %x\n"

	.comm	_SYS_CFGDATA,8,3                ; @SYS_CFGDATA
	.comm	_SYS_CFGSTAT,8,3                ; @SYS_CFGSTAT
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_current,4,2                    ; @current
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_SYS_CFGSTAT_ERR,4,2            ; @SYS_CFGSTAT_ERR
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_SYS_CFGSTAT_COMPLETE,4,2       ; @SYS_CFGSTAT_COMPLETE
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"func %p, read data %x\n"

	.no_dead_strip	_vexpress_syscfg_exec
.subsections_via_symbols
