	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efa_com_reg_read32
_efa_com_reg_read32:                    ## @efa_com_reg_read32
	.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, %r15d
	movq	%rdi, %r12
	movq	32(%rdi), %r13
	addq	$20, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	16(%r12), %eax
	leal	1(%rax), %edi
	movl	%edi, 16(%r12)
	addl	$155, %eax
	movl	%eax, (%r13)
	movq	_EFA_REGS_MMIO_REG_READ_REG_OFF_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %eax
	shll	%cl, %eax
	movq	_EFA_REGS_MMIO_REG_READ_REG_OFF_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_EFA_REGS_MMIO_REG_READ_REQ_ID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	orl	%eax, %edi
	movq	_EFA_REGS_MMIO_REG_READ_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_writel
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	24(%r12), %edi
	callq	_usecs_to_jiffies
	movq	%rax, %rbx
	addq	%r14, %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_READ_ONCE
	cmpl	16(%r12), %eax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_time_is_after_jiffies
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movl	16(%r12), %eax
LBB0_4:
	movl	(%r13), %r8d
	cmpl	%eax, %r8d
	jne	LBB0_5
## %bb.6:
	cmpl	%r15d, 4(%r13)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_7
## %bb.8:
	addq	$8, %r13
	jmp	LBB0_9
LBB0_5:
	movl	(%r12), %edi
	movl	4(%r13), %r9d
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_ibdev_err_ratelimited
	movq	_EFA_MMIO_READ_INVALID@GOTPCREL(%rip), %r13
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_7:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_ibdev_err_ratelimited
	movq	_EFA_MMIO_READ_INVALID@GOTPCREL(%rip), %r13
LBB0_9:
	movl	(%r13), %ebx
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFA_REGS_MMIO_REG_READ_REG_OFF_SHIFT,4,2 ## @EFA_REGS_MMIO_REG_READ_REG_OFF_SHIFT
	.comm	_EFA_REGS_MMIO_REG_READ_REG_OFF_MASK,4,2 ## @EFA_REGS_MMIO_REG_READ_REG_OFF_MASK
	.comm	_EFA_REGS_MMIO_REG_READ_REQ_ID_MASK,4,2 ## @EFA_REGS_MMIO_REG_READ_REQ_ID_MASK
	.comm	_EFA_REGS_MMIO_REG_READ_OFF,8,3 ## @EFA_REGS_MMIO_REG_READ_OFF
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reading register timed out. expected: req id[%u] offset[%#x] actual: req id[%u] offset[%#x]\n"

	.comm	_EFA_MMIO_READ_INVALID,4,2      ## @EFA_MMIO_READ_INVALID
L_.str.1:                               ## @.str.1
	.asciz	"Reading register failed: wrong offset provided\n"

	.no_dead_strip	_efa_com_reg_read32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efa_com_reg_read32
_efa_com_reg_read32:                    ; @efa_com_reg_read32
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x0
	ldr	x23, [x0, #32]
	add	x19, x0, #20
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x21, #16]
	add	w9, w8, #1
	str	w9, [x21, #16]
	add	w8, w8, #155
	str	w8, [x23]
Lloh0:
	adrp	x8, _EFA_REGS_MMIO_REG_READ_REG_OFF_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFA_REGS_MMIO_REG_READ_REG_OFF_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w20, w8
Lloh3:
	adrp	x10, _EFA_REGS_MMIO_REG_READ_REG_OFF_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EFA_REGS_MMIO_REG_READ_REG_OFF_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w8, w8, w10
Lloh6:
	adrp	x10, _EFA_REGS_MMIO_REG_READ_REQ_ID_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _EFA_REGS_MMIO_REG_READ_REQ_ID_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w9, w10, w9
	orr	w0, w9, w8
	ldr	x8, [x21, #8]
Lloh9:
	adrp	x9, _EFA_REGS_MMIO_REG_READ_OFF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EFA_REGS_MMIO_REG_READ_OFF@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh12:
	adrp	x8, _jiffies@GOTPAGE
Lloh13:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	x22, [x8]
	ldr	w0, [x21, #24]
	bl	_usecs_to_jiffies
	add	x22, x0, x22
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	bl	_READ_ONCE
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x21, #16]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_udelay
	mov	x0, x22
	bl	_time_is_after_jiffies
	cbnz	x0, LBB0_1
; %bb.3:
	ldr	w0, [x21, #16]
LBB0_4:
	ldr	w9, [x23]
	cmp	w9, w0
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x23, #4]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.6:
	add	x8, x23, #8
	b	LBB0_10
LBB0_7:
	ldr	w8, [x21]
	ldr	w10, [x23, #4]
	stp	x9, x10, [sp, #16]
	stp	x0, x20, [sp]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	b	LBB0_9
LBB0_8:
	ldr	w0, [x21]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	bl	_ibdev_err_ratelimited
Lloh19:
	adrp	x8, _EFA_MMIO_READ_INVALID@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EFA_MMIO_READ_INVALID@GOTPAGEOFF]
LBB0_10:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EFA_REGS_MMIO_REG_READ_REG_OFF_SHIFT,4,2 ; @EFA_REGS_MMIO_REG_READ_REG_OFF_SHIFT
	.comm	_EFA_REGS_MMIO_REG_READ_REG_OFF_MASK,4,2 ; @EFA_REGS_MMIO_REG_READ_REG_OFF_MASK
	.comm	_EFA_REGS_MMIO_REG_READ_REQ_ID_MASK,4,2 ; @EFA_REGS_MMIO_REG_READ_REQ_ID_MASK
	.comm	_EFA_REGS_MMIO_REG_READ_OFF,8,3 ; @EFA_REGS_MMIO_REG_READ_OFF
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reading register timed out. expected: req id[%u] offset[%#x] actual: req id[%u] offset[%#x]\n"

	.comm	_EFA_MMIO_READ_INVALID,4,2      ; @EFA_MMIO_READ_INVALID
l_.str.1:                               ; @.str.1
	.asciz	"Reading register failed: wrong offset provided\n"

	.no_dead_strip	_efa_com_reg_read32
.subsections_via_symbols
