	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_set_power_mode
_dib8000_set_power_mode:                ## @dib8000_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, %r13d
	movq	%rdi, %r14
	movl	$900, %esi                      ## imm = 0x384
	callq	_dib8000_read_word
	movl	%eax, %r15d
	andl	$65532, %r15d                   ## imm = 0xFFFC
	leal	3(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ebx
	movq	%r14, %rdi
	movl	$1280, %esi                     ## imm = 0x500
	callq	_dib8000_read_word
	cmpl	$32912, %ebx                    ## imm = 0x8090
	movl	$28799, %ecx                    ## imm = 0x707F
	movl	$255, %ebx
	cmovel	%ecx, %ebx
	movl	$36736, %ecx                    ## imm = 0x8F80
	movl	$65280, %edx                    ## imm = 0xFF00
	cmovel	%ecx, %edx
	andl	%eax, %ebx
	orl	%edx, %ebx
	movl	$65535, %r12d                   ## imm = 0xFFFF
	movl	$16383, %esi                    ## imm = 0x3FFF
	cmpl	$128, %r13d
	je	LBB0_7
## %bb.1:
	cmpl	$129, %r13d
	jne	LBB0_2
## %bb.3:
	cmpl	$32912, (%r14)                  ## imm = 0x8090
	jne	LBB0_4
## %bb.6:
	andl	$28799, %ebx                    ## imm = 0x707F
	jmp	LBB0_5
LBB0_7:
	cmpl	$32912, (%r14)                  ## imm = 0x8090
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_8
## %bb.9:
	andl	$64123, %ebx                    ## imm = 0xFA7B
	jmp	LBB0_10
LBB0_2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_4:
	movzbl	%bl, %ebx
LBB0_5:
	xorl	%esi, %esi
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_8:
	movzbl	%bl, %ebx
LBB0_10:
	movl	%eax, %r15d
LBB0_11:
	leaq	L_.str(%rip), %rdi
	movl	%esi, %r13d
	movl	%r12d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_dprintk
	movq	%r14, %rdi
	movl	$774, %esi                      ## imm = 0x306
	movl	%r13d, %edx
	callq	_dib8000_write_word
	movq	%r14, %rdi
	movl	$775, %esi                      ## imm = 0x307
	movl	%r12d, %edx
	callq	_dib8000_write_word
	movq	%r14, %rdi
	movl	$776, %esi                      ## imm = 0x308
	movl	%r12d, %edx
	callq	_dib8000_write_word
	movq	%r14, %rdi
	movl	$900, %esi                      ## imm = 0x384
	movl	%r15d, %edx
	callq	_dib8000_write_word
	movq	%r14, %rdi
	movl	$1280, %esi                     ## imm = 0x500
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dib8000_write_word             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"powermode : 774 : %x ; 775 : %x; 776 : %x ; 900 : %x; 1280 : %x\n"

	.no_dead_strip	_dib8000_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 dib8000_set_power_mode
_dib8000_set_power_mode:                ; @dib8000_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	x22, x1
	mov	x19, x0
	mov	w1, #900
	bl	_dib8000_read_word
	and	w24, w0, #0xfffc
	orr	w20, w24, #0x3
	ldr	w21, [x19]
	mov	x0, x19
	mov	w1, #1280
	bl	_dib8000_read_word
	mov	w8, #32912
	mov	w9, #255
	mov	w10, #28799
	cmp	w21, w8
	csel	w9, w10, w9, eq
	mov	w10, #65280
	mov	w11, #36736
	csel	w10, w11, w10, eq
	and	w9, w0, w9
	orr	w21, w9, w10
	cmp	w22, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	mov	w9, #32912
	mov	w10, #28799
	and	w10, w21, w10
	and	w11, w21, #0xff
	cmp	w8, w9
	csel	w23, wzr, wzr, eq
	csel	w22, wzr, wzr, eq
	csel	w21, w10, w11, eq
	mov	x20, x24
	b	LBB0_5
LBB0_3:
	mov	w9, #64123
	and	w9, w21, w9
	ldr	w10, [x19]
	mov	w11, #65535
	mov	w12, #16383
	and	w13, w21, #0xff
	mov	w14, #65535
	mov	w15, #16383
	cmp	w10, w8
	csel	w23, w12, w15, eq
	csel	w22, w11, w14, eq
	csel	w21, w9, w13, eq
	b	LBB0_5
LBB0_4:
	mov	w22, #65535
	mov	w23, #16383
LBB0_5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	mov	x3, x22
	mov	x4, x20
	mov	x5, x21
	bl	_dprintk
	mov	x0, x19
	mov	w1, #774
	mov	x2, x23
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #775
	mov	x2, x22
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #776
	mov	x2, x22
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #900
	mov	x2, x20
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #1280
	mov	x2, x21
	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
	b	_dib8000_write_word
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"powermode : 774 : %x ; 775 : %x; 776 : %x ; 900 : %x; 1280 : %x\n"

	.no_dead_strip	_dib8000_set_power_mode
.subsections_via_symbols
