	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ena_com_get_dma_width          ## -- Begin function ena_com_get_dma_width
	.p2align	4, 0x90
_ena_com_get_dma_width:                 ## @ena_com_get_dma_width
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ENA_REGS_CAPS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ena_com_reg_bar_read32
	movl	%eax, %ebx
	movq	_ENA_MMIO_READ_TIMEOUT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_ETIME@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_2:
	movq	_ENA_REGS_CAPS_DMA_ADDR_WIDTH_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_ENA_REGS_CAPS_DMA_ADDR_WIDTH_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	cmpl	$32, %ebx
	jl	LBB0_4
## %bb.3:
	movq	_ENA_MAX_PHYS_ADDR_SIZE_BITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_4
## %bb.5:
	movl	%ebx, (%r14)
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	movl	%r14d, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_REGS_CAPS_OFF,4,2          ## @ENA_REGS_CAPS_OFF
	.comm	_ENA_MMIO_READ_TIMEOUT,4,2      ## @ENA_MMIO_READ_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reg read timeout occurred\n"

	.comm	_ETIME,4,2                      ## @ETIME
	.comm	_ENA_REGS_CAPS_DMA_ADDR_WIDTH_MASK,4,2 ## @ENA_REGS_CAPS_DMA_ADDR_WIDTH_MASK
	.comm	_ENA_REGS_CAPS_DMA_ADDR_WIDTH_SHIFT,4,2 ## @ENA_REGS_CAPS_DMA_ADDR_WIDTH_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"ENA dma width: %d\n"

	.comm	_ENA_MAX_PHYS_ADDR_SIZE_BITS,4,2 ## @ENA_MAX_PHYS_ADDR_SIZE_BITS
L_.str.2:                               ## @.str.2
	.asciz	"DMA width illegal value: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ena_com_get_dma_width          ; -- Begin function ena_com_get_dma_width
	.p2align	2
_ena_com_get_dma_width:                 ; @ena_com_get_dma_width
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _ENA_REGS_CAPS_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENA_REGS_CAPS_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ena_com_reg_bar_read32
	mov	x20, x0
Lloh3:
	adrp	x8, _ENA_MMIO_READ_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENA_MMIO_READ_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh8:
	adrp	x8, _ETIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh10:
	adrp	x8, _ENA_REGS_CAPS_DMA_ADDR_WIDTH_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENA_REGS_CAPS_DMA_ADDR_WIDTH_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh13:
	adrp	x9, _ENA_REGS_CAPS_DMA_ADDR_WIDTH_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ENA_REGS_CAPS_DMA_ADDR_WIDTH_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	asr	w20, w8, w9
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
Lloh18:
	adrp	x8, _ENA_MAX_PHYS_ADDR_SIZE_BITS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENA_MAX_PHYS_ADDR_SIZE_BITS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w20, #32
	ccmp	w20, w8, #0, ge
	b.le	LBB0_5
; %bb.3:
	str	x20, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_5:
	str	w20, [x19]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_REGS_CAPS_OFF,4,2          ; @ENA_REGS_CAPS_OFF
	.comm	_ENA_MMIO_READ_TIMEOUT,4,2      ; @ENA_MMIO_READ_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reg read timeout occurred\n"

	.comm	_ETIME,4,2                      ; @ETIME
	.comm	_ENA_REGS_CAPS_DMA_ADDR_WIDTH_MASK,4,2 ; @ENA_REGS_CAPS_DMA_ADDR_WIDTH_MASK
	.comm	_ENA_REGS_CAPS_DMA_ADDR_WIDTH_SHIFT,4,2 ; @ENA_REGS_CAPS_DMA_ADDR_WIDTH_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"ENA dma width: %d\n"

	.comm	_ENA_MAX_PHYS_ADDR_SIZE_BITS,4,2 ; @ENA_MAX_PHYS_ADDR_SIZE_BITS
l_.str.2:                               ; @.str.2
	.asciz	"DMA width illegal value: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
