	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_reg_bar_read32
_ena_com_reg_bar_read32:                ## @ena_com_reg_bar_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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	32(%rdi), %r12
	xorl	%eax, %eax
	callq	_might_sleep
	testq	%r14, %r14
	jne	LBB0_2
## %bb.1:
	movq	_ENA_REG_READ_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_2:
	cmpl	$0, 24(%rbx)
	je	LBB0_14
## %bb.3:
	leaq	20(%rbx), %rdi
	xorl	%r13d, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movslq	16(%rbx), %rdi
	leal	57006(%rdi), %eax
	incq	%rdi
	movl	%edi, 16(%rbx)
	movl	%eax, (%r12)
	movq	_ENA_REGS_MMIO_REG_READ_REG_OFF_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	%r15, %rax
	shlq	%cl, %rax
	movq	_ENA_REGS_MMIO_REG_READ_REG_OFF_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rax
	movq	_ENA_REGS_MMIO_REG_READ_REQ_ID_MASK@GOTPCREL(%rip), %rcx
	andq	(%rcx), %rdi
	orq	%rax, %rdi
	movq	_ENA_REGS_MMIO_REG_READ_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	testq	%r14, %r14
	jle	LBB0_8
## %bb.4:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_READ_ONCE
	movslq	16(%rbx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_udelay
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_5
## %bb.7:
	movq	%r14, %r13
LBB0_8:
	xorl	%edi, %edi
	cmpq	%r14, %r13
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movl	16(%rbx), %esi
	movl	(%r12), %ecx
	movq	8(%r12), %r8
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENA_MMIO_READ_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_14:
	addq	(%rbx), %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readl                          ## TAILCALL
LBB0_10:
	movq	8(%r12), %rax
	cmpq	%r15, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
## %bb.12:
	movq	16(%r12), %rbx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ENA_MMIO_READ_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_REG_READ_TIMEOUT,8,3       ## @ENA_REG_READ_TIMEOUT
	.comm	_ENA_REGS_MMIO_REG_READ_REG_OFF_SHIFT,8,3 ## @ENA_REGS_MMIO_REG_READ_REG_OFF_SHIFT
	.comm	_ENA_REGS_MMIO_REG_READ_REG_OFF_MASK,8,3 ## @ENA_REGS_MMIO_REG_READ_REG_OFF_MASK
	.comm	_ENA_REGS_MMIO_REG_READ_REQ_ID_MASK,8,3 ## @ENA_REGS_MMIO_REG_READ_REQ_ID_MASK
	.comm	_ENA_REGS_MMIO_REG_READ_OFF,8,3 ## @ENA_REGS_MMIO_REG_READ_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading reg failed for timeout. expected: req id[%hu] offset[%hu] actual: req id[%hu] offset[%hu]\n"

	.comm	_ENA_MMIO_READ_TIMEOUT,8,3      ## @ENA_MMIO_READ_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Read failure: wrong offset provided\n"

	.no_dead_strip	_ena_com_reg_bar_read32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_reg_bar_read32
_ena_com_reg_bar_read32:                ; @ena_com_reg_bar_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	x22, [x0, #32]
	ldr	x19, [x0, #8]
	bl	_might_sleep
Lloh0:
	adrp	x8, _ENA_REG_READ_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_REG_READ_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x19, #0
	csel	x23, x8, x19, eq
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_6
; %bb.1:
	add	x19, x21, #20
	mov	x0, x19
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldrsw	x8, [x21, #16]
	add	x9, x8, #1
	str	w9, [x21, #16]
	mov	w10, #57006
	add	w8, w8, w10
	str	w8, [x22]
Lloh3:
	adrp	x8, _ENA_REGS_MMIO_REG_READ_REG_OFF_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENA_REGS_MMIO_REG_READ_REG_OFF_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	lsl	x8, x20, x8
Lloh6:
	adrp	x10, _ENA_REGS_MMIO_REG_READ_REG_OFF_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ENA_REGS_MMIO_REG_READ_REG_OFF_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	and	x8, x8, x10
Lloh9:
	adrp	x10, _ENA_REGS_MMIO_REG_READ_REQ_ID_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ENA_REGS_MMIO_REG_READ_REQ_ID_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	and	x9, x10, x9
	orr	x0, x9, x8
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _ENA_REGS_MMIO_REG_READ_OFF@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ENA_REGS_MMIO_REG_READ_OFF@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	cmp	x23, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	bl	_READ_ONCE
	ldrsw	x8, [x21, #16]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_udelay
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_3
; %bb.5:
	mov	x24, x23
	b	LBB0_8
LBB0_6:
	ldr	x8, [x21]
	add	x0, x8, 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
	b	_readl
LBB0_7:
	mov	x24, #0
LBB0_8:
	cmp	x24, x23
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [x22]
	ldr	x9, [x22, #8]
	ldr	w10, [x21, #16]
	stp	x8, x9, [sp, #16]
	stp	x10, x20, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_10:
	ldr	x8, [x22, #8]
	cmp	x8, x20
	b.ne	LBB0_12
; %bb.11:
	ldr	x20, [x22, #16]
	b	LBB0_14
LBB0_12:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_13:
	bl	_pr_err
Lloh19:
	adrp	x8, _ENA_MMIO_READ_TIMEOUT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENA_MMIO_READ_TIMEOUT@GOTPAGEOFF]
Lloh21:
	ldr	x20, [x8]
LBB0_14:
	mov	x0, x19
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_REG_READ_TIMEOUT,8,3       ; @ENA_REG_READ_TIMEOUT
	.comm	_ENA_REGS_MMIO_REG_READ_REG_OFF_SHIFT,8,3 ; @ENA_REGS_MMIO_REG_READ_REG_OFF_SHIFT
	.comm	_ENA_REGS_MMIO_REG_READ_REG_OFF_MASK,8,3 ; @ENA_REGS_MMIO_REG_READ_REG_OFF_MASK
	.comm	_ENA_REGS_MMIO_REG_READ_REQ_ID_MASK,8,3 ; @ENA_REGS_MMIO_REG_READ_REQ_ID_MASK
	.comm	_ENA_REGS_MMIO_REG_READ_OFF,8,3 ; @ENA_REGS_MMIO_REG_READ_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading reg failed for timeout. expected: req id[%hu] offset[%hu] actual: req id[%hu] offset[%hu]\n"

	.comm	_ENA_MMIO_READ_TIMEOUT,8,3      ; @ENA_MMIO_READ_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Read failure: wrong offset provided\n"

	.no_dead_strip	_ena_com_reg_bar_read32
.subsections_via_symbols
