	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_ale_control_get           ## -- Begin function cpsw_ale_control_get
	.p2align	4, 0x90
_cpsw_ale_control_get:                  ## @cpsw_ale_control_get
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	js	LBB0_2
## %bb.1:
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_ale_controls@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_2
## %bb.3:
	movq	(%r12), %r12
	movl	%ebx, %eax
	leaq	(%rax,%rax,4), %rbx
	movl	(%r12,%rbx,4), %eax
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 4(%r12,%rbx,4)
	je	LBB0_5
LBB0_6:
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.7:
	cmpl	(%r14), %r15d
	jge	LBB0_2
LBB0_8:
	movslq	8(%r12,%rbx,4), %rcx
	imull	%r15d, %eax
	movslq	%eax, %rdi
	addq	%rcx, %rdi
	imull	4(%r12,%rbx,4), %r15d
	addl	12(%r12,%rbx,4), %r15d
	addq	8(%r14), %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	movl	%r15d, %ecx
	sarl	%cl, %r14d
	movl	16(%r12,%rbx,4), %edi
	callq	_BITMASK
	andl	%r14d, %eax
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
	cmpl	(%r14), %r15d
	jl	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ale_controls,8,3               ## @ale_controls
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_ale_control_get           ; -- Begin function cpsw_ale_control_get
	.p2align	2
_cpsw_ale_control_get:                  ; @cpsw_ale_control_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	tbnz	w2, #31, LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _ale_controls@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ale_controls@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, w21
	b.le	LBB0_8
; %bb.2:
	ldr	x8, [x22]
	mov	w9, w21
	mov	w10, #20
	umull	x10, w21, w10
	ldr	w10, [x8, x10]
	cbnz	w10, LBB0_4
; %bb.3:
	mov	w11, #20
	madd	x11, x9, x11, x8
	ldr	w11, [x11, #4]
	cbz	w11, LBB0_5
LBB0_4:
	tbz	w20, #31, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w20, #0
LBB0_6:
	ldr	w11, [x19]
	cmp	w20, w11
	b.ge	LBB0_8
; %bb.7:
	mov	w11, #20
	madd	x21, x9, x11, x8
	mul	w8, w20, w10
	ldp	w10, w9, [x21, #4]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x9, w8, sxtw
	ldr	w9, [x21, #12]
	madd	w20, w10, w20, w9
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	bl	_readl_relaxed
	asr	w19, w0, w20
	ldr	w0, [x21, #16]
	bl	_BITMASK
	and	w0, w0, w19
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ale_controls,8,3               ; @ale_controls
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
