	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_set_diversity_in
_dib8000_set_diversity_in:              ## @dib8000_set_diversity_in
	.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	%esi, %r14d
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$273, %esi                      ## imm = 0x111
	callq	_dib8000_read_word
	movl	%eax, %r15d
	andl	$65520, %r15d                   ## imm = 0xFFF0
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_dprintk
	cmpl	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	xorl	%edx, %edx
	callq	_dib8000_write_word
	jmp	LBB0_3
LBB0_1:
	movq	%rbx, %rdi
	movl	$272, %esi                      ## imm = 0x110
	movl	$512, %edx                      ## imm = 0x200
	callq	_dib8000_write_word
	orl	$6, %r15d
LBB0_3:
	movq	%rbx, %rdi
	movl	$273, %esi                      ## imm = 0x111
	movl	%r15d, %edx
	callq	_dib8000_write_word
	movl	%r14d, (%rbx)
	cmpl	$2, %r14d
	ja	LBB0_5
## %bb.4:
	movslq	%r14d, %rax
	leaq	l_switch.table.dib8000_set_diversity_in(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	l_switch.table.dib8000_set_diversity_in.1(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	movq	%rbx, %rdi
	movl	$270, %esi                      ## imm = 0x10E
	callq	_dib8000_write_word
	movq	%rbx, %rdi
	movl	$271, %esi                      ## imm = 0x10F
	movl	%r14d, %edx
	callq	_dib8000_write_word
LBB0_5:
	cmpl	$32770, 4(%rbx)                 ## imm = 0x8002
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movl	$903, %esi                      ## imm = 0x387
	callq	_dib8000_read_word
	movl	%eax, %r14d
	movl	%eax, %edx
	andl	$-9, %edx
	movq	%rbx, %rdi
	movl	$903, %esi                      ## imm = 0x387
	callq	_dib8000_write_word
	movl	$30, %edi
	callq	_msleep
	orl	$8, %r14d
	movq	%rbx, %rdi
	movl	$903, %esi                      ## imm = 0x387
	movl	%r14d, %edx
	callq	_dib8000_write_word
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set diversity input to %i\n"

	.no_dead_strip	_dib8000_set_diversity_in
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.dib8000_set_diversity_in
l_switch.table.dib8000_set_diversity_in:
	.long	1                               ## 0x1
	.long	6                               ## 0x6
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table.dib8000_set_diversity_in.1
l_switch.table.dib8000_set_diversity_in.1:
	.long	0                               ## 0x0
	.long	6                               ## 0x6
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_set_diversity_in
_dib8000_set_diversity_in:              ; @dib8000_set_diversity_in
	.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	x20, x1
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #273
	bl	_dib8000_read_word
	and	w21, w0, #0xfff0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dprintk
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #272
	mov	w2, #0
	bl	_dib8000_write_word
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #272
	mov	w2, #512
	bl	_dib8000_write_word
	orr	w21, w21, #0x6
LBB0_3:
	mov	x0, x19
	mov	w1, #273
	mov	x2, x21
	bl	_dib8000_write_word
	str	w20, [x19]
	cmp	w20, #2
	b.hi	LBB0_5
; %bb.4:
	sbfiz	x8, x20, #2, #32
Lloh2:
	adrp	x9, l_switch.table.dib8000_set_diversity_in@PAGE
Lloh3:
	add	x9, x9, l_switch.table.dib8000_set_diversity_in@PAGEOFF
	ldr	w2, [x9, x8]
Lloh4:
	adrp	x9, l_switch.table.dib8000_set_diversity_in.1@PAGE
Lloh5:
	add	x9, x9, l_switch.table.dib8000_set_diversity_in.1@PAGEOFF
	ldr	w20, [x9, x8]
	mov	x0, x19
	mov	w1, #270
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #271
	mov	x2, x20
	bl	_dib8000_write_word
LBB0_5:
	ldr	w8, [x19, #4]
	mov	w9, #32770
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #903
	bl	_dib8000_read_word
	mov	x20, x0
	and	w2, w0, #0xfffffff7
	mov	x0, x19
	mov	w1, #903
	bl	_dib8000_write_word
	mov	w0, #30
	bl	_msleep
	orr	w2, w20, #0x8
	mov	x0, x19
	mov	w1, #903
	bl	_dib8000_write_word
LBB0_7:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set diversity input to %i\n"

	.no_dead_strip	_dib8000_set_diversity_in
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.dib8000_set_diversity_in
l_switch.table.dib8000_set_diversity_in:
	.long	1                               ; 0x1
	.long	6                               ; 0x6
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table.dib8000_set_diversity_in.1
l_switch.table.dib8000_set_diversity_in.1:
	.long	0                               ; 0x0
	.long	6                               ; 0x6
	.long	1                               ; 0x1

.subsections_via_symbols
