	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9287_eeprom_olpc_set_pdadcs
_ar9287_eeprom_olpc_set_pdadcs:         ## @ar9287_eeprom_olpc_set_pdadcs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$41584, %esi                    ## imm = 0xA270
	callq	_REG_READ
	orl	$50331648, %eax                 ## imm = 0x3000000
	movq	%rbx, %rdi
	movl	$41584, %esi                    ## imm = 0xA270
	movl	%eax, %edx
	callq	_REG_WRITE
	movq	%rbx, %rdi
	movl	$45680, %esi                    ## imm = 0xB270
	callq	_REG_READ
	orl	$50331648, %eax                 ## imm = 0x3000000
	movq	%rbx, %rdi
	movl	$45680, %esi                    ## imm = 0xB270
	movl	%eax, %edx
	callq	_REG_WRITE
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	cmpl	$1, %r15d
	jne	LBB0_5
## %bb.3:
	movl	$45976, %r15d                   ## imm = 0xB398
	jmp	LBB0_4
LBB0_1:
	movl	$41880, %r15d                   ## imm = 0xA398
LBB0_4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_REG_READ
	andl	$-16711681, %eax                ## imm = 0xFF00FFFF
	movzbl	%r14b, %edx
	shll	$16, %edx
	orl	%eax, %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ar9287_eeprom_olpc_set_pdadcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9287_eeprom_olpc_set_pdadcs
_ar9287_eeprom_olpc_set_pdadcs:         ; @ar9287_eeprom_olpc_set_pdadcs
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w1, #41584
	bl	_REG_READ
	orr	w2, w0, #0x3000000
	mov	x0, x19
	mov	w1, #41584
	bl	_REG_WRITE
	mov	x0, x19
	mov	w1, #45680
	bl	_REG_READ
	orr	w2, w0, #0x3000000
	mov	x0, x19
	mov	w1, #45680
	bl	_REG_WRITE
	cbz	w21, LBB0_3
; %bb.1:
	cmp	w21, #1
	b.ne	LBB0_5
; %bb.2:
	mov	w21, #45976
	b	LBB0_4
LBB0_3:
	mov	w21, #41880
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_REG_READ
	mov	x2, x0
	bfi	w2, w20, #16, #8
	mov	x0, x19
	mov	x1, x21
	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
	b	_REG_WRITE
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ar9287_eeprom_olpc_set_pdadcs
.subsections_via_symbols
