	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_set_power_mode
_dib7000p_set_power_mode:               ## @dib7000p_set_power_mode
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$1280, %esi                     ## imm = 0x500
	callq	_dib7000p_read_word
	movl	%eax, %ecx
	andl	$511, %ecx                      ## imm = 0x1FF
	cmpl	$130, %ebx
	je	LBB0_5
## %bb.1:
	leal	65024(%rcx), %r15d
	movl	$3, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$65535, %r12d                   ## imm = 0xFFFF
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	movq	_SOC7090@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movl	$7, %r13d
	movl	$16383, %edx                    ## imm = 0x3FFF
	cmpq	%rsi, %rax
	je	LBB0_8
LBB0_9:
	andl	$35839, %r15d                   ## imm = 0x8BFF
	jmp	LBB0_10
LBB0_5:
	movq	(%r14), %rdx
	movq	_SOC7090@GOTPCREL(%rip), %rsi
	andl	$31, %eax
	cmpq	(%rsi), %rdx
	cmovel	%eax, %ecx
	xorl	%edx, %edx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ecx, %r15d
	jmp	LBB0_10
LBB0_6:
	movq	(%r14), %rax
	movq	_SOC7090@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	orl	$62976, %ecx                    ## imm = 0xF600
	cmpq	%rsi, %rax
	cmovel	%r15d, %ecx
	andl	$-65, %ecx
	movl	$6, %r13d
	movl	$12799, %edx                    ## imm = 0x31FF
	movl	%ecx, %r15d
	cmpq	%rsi, %rax
	jne	LBB0_9
LBB0_8:
	andl	$65375, %r15d                   ## imm = 0xFF5F
	jmp	LBB0_10
LBB0_3:
	movl	$7, %r13d
	movl	$16383, %edx                    ## imm = 0x3FFF
LBB0_10:
	movq	%r14, %rdi
	movl	$774, %esi                      ## imm = 0x306
	callq	_dib7000p_write_word
	movq	%r14, %rdi
	movl	$775, %esi                      ## imm = 0x307
	movl	%r12d, %edx
	callq	_dib7000p_write_word
	movq	%r14, %rdi
	movl	$776, %esi                      ## imm = 0x308
	movl	%r13d, %edx
	callq	_dib7000p_write_word
	movq	%r14, %rdi
	movl	$1280, %esi                     ## imm = 0x500
	movl	%r15d, %edx
	callq	_dib7000p_write_word
	movq	(%r14), %rax
	movq	_SOC7090@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$899, %esi                      ## imm = 0x383
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_dib7000p_write_word
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOC7090,8,3                    ## @SOC7090
	.no_dead_strip	_dib7000p_set_power_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_set_power_mode
_dib7000p_set_power_mode:               ; @dib7000p_set_power_mode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	mov	w1, #1280
	bl	_dib7000p_read_word
	and	w10, w0, #0x1ff
Lloh0:
	adrp	x24, _SOC7090@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SOC7090@GOTPAGEOFF]
	cmp	w21, #130
	b.eq	LBB0_5
; %bb.1:
	mov	w20, #65024
	bfxil	w20, w0, #0, #9
	cmp	w21, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w21, #128
	b.ne	LBB0_9
; %bb.3:
	ldr	x8, [x19]
	ldr	x9, [x24]
	mov	w21, #7
	mov	w2, #16383
	cmp	x8, x9
	b.eq	LBB0_7
LBB0_4:
	mov	w8, #-29697
	b	LBB0_8
LBB0_5:
	mov	w2, #0
	mov	w23, #0
	mov	w21, #0
	mov	w22, #0
	ldr	x8, [x19]
	ldr	x9, [x24]
	and	w11, w0, #0x1f
	cmp	x8, x9
	csel	w20, w11, w10, eq
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19]
	ldr	x9, [x24]
	mov	w11, #62976
	orr	w10, w10, w11
	cmp	x8, x9
	csel	w10, w20, w10, eq
	and	w20, w10, #0xffffffbf
	mov	w21, #6
	mov	w2, #12799
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_7:
	mov	w8, #-161
LBB0_8:
	and	w20, w20, w8
	mov	w22, #3
	mov	w23, #65535
	b	LBB0_10
LBB0_9:
	mov	w22, #3
	mov	w21, #7
	mov	w23, #65535
	mov	w2, #16383
LBB0_10:
	mov	x0, x19
	mov	w1, #774
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #775
	mov	x2, x23
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #776
	mov	x2, x21
	bl	_dib7000p_write_word
	mov	x0, x19
	mov	w1, #1280
	mov	x2, x20
	bl	_dib7000p_write_word
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	mov	w1, #899
	mov	x2, x22
	bl	_dib7000p_write_word
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SOC7090,8,3                    ; @SOC7090
	.no_dead_strip	_dib7000p_set_power_mode
.subsections_via_symbols
