	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm8211_write_sram
_adm8211_write_sram:                    ## @adm8211_write_sram
	.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
	movl	%edx, %r14d
	movq	(%rdi), %rax
	movq	_WEPCTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_ADM8211_WEPCTL_TABLE_WR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	(%rax), %rax
	movq	(%rax), %rcx
	movq	_ADM8211_REV_BA@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jl	LBB0_2
## %bb.1:
	movq	_ADM8211_WEPCTL_SEL_WEPTABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	orl	%eax, %esi
	callq	_ADM8211_CSR_WRITE
	movl	(%rbx), %edi
	callq	_ADM8211_CSR_READ
	movl	$1, %edi
	callq	_msleep
	movq	_WESK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_ADM8211_CSR_WRITE
	movl	(%rbx), %edi
	callq	_ADM8211_CSR_READ
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WEPCTL,4,2                     ## @WEPCTL
	.comm	_ADM8211_WEPCTL_TABLE_WR,4,2    ## @ADM8211_WEPCTL_TABLE_WR
	.comm	_ADM8211_REV_BA,8,3             ## @ADM8211_REV_BA
	.comm	_ADM8211_WEPCTL_SEL_WEPTABLE,4,2 ## @ADM8211_WEPCTL_SEL_WEPTABLE
	.comm	_WESK,4,2                       ## @WESK
	.no_dead_strip	_adm8211_write_sram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm8211_write_sram
_adm8211_write_sram:                    ; @adm8211_write_sram
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _WEPCTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WEPCTL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x9, _ADM8211_WEPCTL_TABLE_WR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ADM8211_WEPCTL_TABLE_WR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w9, w9, w1
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh5:
	adrp	x10, _ADM8211_REV_BA@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ADM8211_REV_BA@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
Lloh8:
	adrp	x11, _ADM8211_WEPCTL_SEL_WEPTABLE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ADM8211_WEPCTL_SEL_WEPTABLE@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	cmp	x8, x10
	csel	w8, wzr, w11, lt
	orr	w1, w9, w8
	bl	_ADM8211_CSR_WRITE
	ldr	w0, [x20]
	bl	_ADM8211_CSR_READ
	mov	w0, #1
	bl	_msleep
Lloh11:
	adrp	x20, _WESK@GOTPAGE
Lloh12:
	ldr	x20, [x20, _WESK@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_ADM8211_CSR_WRITE
	ldr	w0, [x20]
	bl	_ADM8211_CSR_READ
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msleep
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WEPCTL,4,2                     ; @WEPCTL
	.comm	_ADM8211_WEPCTL_TABLE_WR,4,2    ; @ADM8211_WEPCTL_TABLE_WR
	.comm	_ADM8211_REV_BA,8,3             ; @ADM8211_REV_BA
	.comm	_ADM8211_WEPCTL_SEL_WEPTABLE,4,2 ; @ADM8211_WEPCTL_SEL_WEPTABLE
	.comm	_WESK,4,2                       ; @WESK
	.no_dead_strip	_adm8211_write_sram
.subsections_via_symbols
