	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpsw_ale_control_set           ## -- Begin function cpsw_ale_control_set
	.p2align	4, 0x90
_cpsw_ale_control_set:                  ## @cpsw_ale_control_set
	.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
	testl	%edx, %edx
	js	LBB0_2
## %bb.1:
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, %r15
	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
	cmpl	$0, (%r12,%rbx,4)
	jne	LBB0_6
## %bb.4:
	cmpl	$0, 4(%r12,%rbx,4)
	je	LBB0_5
LBB0_6:
	testl	%r13d, %r13d
	js	LBB0_2
## %bb.7:
	cmpl	(%r15), %r13d
	jge	LBB0_2
LBB0_8:
	movl	16(%r12,%rbx,4), %edi
	callq	_BITMASK
	movl	%eax, %ecx
	notl	%ecx
	testl	%r14d, %ecx
	jne	LBB0_2
## %bb.9:
	leaq	(%r12,%rbx,4), %rdx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	8(%r12,%rbx,4), %rcx
	movslq	(%rdx), %rax
	movslq	%r13d, %rdx
	imulq	%rax, %rdx
	addq	%rcx, %rdx
	imull	4(%r12,%rbx,4), %r13d
	addl	12(%r12,%rbx,4), %r13d
	movq	8(%r15), %rdi
	addq	%rdx, %rdi
	movq	%rdx, %rbx
	callq	_readl_relaxed
	movl	%r13d, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	notl	%edx
	shll	%cl, %r14d
	andl	%eax, %edx
	orl	%edx, %r14d
	addq	8(%r15), %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	xorl	%r13d, %r13d
	cmpl	(%r15), %r13d
	jl	LBB0_8
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_set           ; -- Begin function cpsw_ale_control_set
	.p2align	2
_cpsw_ale_control_set:                  ; @cpsw_ale_control_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	tbnz	w2, #31, LBB0_8
; %bb.1:
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _ale_controls@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ale_controls@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, w22
	b.le	LBB0_8
; %bb.2:
	ldr	x23, [x23]
	mov	w24, w22
	mov	w8, #20
	umaddl	x25, w22, w8, x23
	ldr	w8, [x25]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	w8, #20
	madd	x8, x24, x8, x23
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_5
LBB0_4:
	tbz	w21, #31, LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w21, #0
LBB0_6:
	ldr	w8, [x20]
	cmp	w21, w8
	b.ge	LBB0_8
; %bb.7:
	mov	w8, #20
	madd	x8, x24, x8, x23
	ldr	w0, [x8, #16]
	bl	_BITMASK
	bics	wzr, w19, w0
	b.eq	LBB0_10
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, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x22, x0
	mov	w8, #20
	madd	x8, x24, x8, x23
	ldrsw	x9, [x25]
	sxtw	x10, w21
	ldp	w12, w11, [x8, #4]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	madd	x23, x9, x10, x11
	ldr	w8, [x8, #12]
	madd	w21, w12, w21, w8
	ldr	x8, [x20, #8]
	add	x0, x8, x23
	bl	_readl_relaxed
	lsl	w8, w22, w21
	bic	w8, w0, w8
	lsl	w9, w19, w21
	orr	w0, w8, w9
	ldr	x8, [x20, #8]
	add	x1, x8, x23
	bl	_writel_relaxed
	mov	w0, #0
	b	LBB0_9
	.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
