	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib3000mc_setup_pwm_state
_dib3000mc_setup_pwm_state:             ## @dib3000mc_setup_pwm_state
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	16(%rax), %rcx
	movl	$65275, %esi                    ## imm = 0xFEFB
	andl	(%rcx), %esi
	xorl	%edx, %edx
	cmpq	$0, 8(%rax)
	movl	$256, %eax                      ## imm = 0x100
	movl	$4, %ebx
	cmovel	%eax, %ebx
	sete	%dl
	shll	$12, %edx
	orl	$33226, %edx                    ## imm = 0x81CA
	orl	%esi, %ebx
	movl	$51, %esi
	callq	_dib3000mc_write_word
	movq	%r14, %rdi
	movl	$52, %esi
	movl	%ebx, %edx
	callq	_dib3000mc_write_word
	movq	(%r14), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	setne	%cl
	leal	(%rcx,%rcx,8), %edx
	movq	%r14, %rdi
	movl	$245, %esi
	callq	_dib3000mc_write_word
	movq	%r14, %rdi
	movl	$1040, %esi                     ## imm = 0x410
	movl	$3, %edx
	callq	_dib3000mc_write_word
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dib3000mc_setup_pwm_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib3000mc_setup_pwm_state
_dib3000mc_setup_pwm_state:             ; @dib3000mc_setup_pwm_state
	.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, x0
	ldr	x8, [x0]
	ldp	x8, x9, [x8, #8]
	ldr	w9, [x9]
	mov	w10, #65275
	and	w9, w9, w10
	cmp	x8, #0
	mov	w8, #33226
	mov	w10, #37322
	csel	w2, w10, w8, eq
	mov	w8, #4
	mov	w10, #256
	csel	w8, w10, w8, eq
	orr	w20, w8, w9
	mov	w1, #51
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #52
	mov	x2, x20
	bl	_dib3000mc_write_word
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #0
	mov	w8, #9
	csel	w2, wzr, w8, eq
	mov	x0, x19
	mov	w1, #245
	bl	_dib3000mc_write_word
	mov	x0, x19
	mov	w1, #1040
	mov	w2, #3
	bl	_dib3000mc_write_word
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dib3000mc_setup_pwm_state
.subsections_via_symbols
