	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_set_isdbt_loop_params
_dib8000_set_isdbt_loop_params:         ## @dib8000_set_isdbt_loop_params
	.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	8(%rdi), %rax
	movq	(%rax), %rax
	cmpl	$128, %esi
	je	LBB0_8
## %bb.1:
	xorl	%edx, %edx
	movl	$0, %ebx
	cmpl	$129, %esi
	jne	LBB0_14
## %bb.2:
	cmpl	$0, 4(%rax)
	je	LBB0_7
## %bb.3:
	movl	(%r14), %ecx
	movl	%ecx, %edx
	shll	$12, %edx
	negl	%edx
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.6:
	addl	$42592, %edx                    ## imm = 0xA660
	movl	$9, %ebx
	jmp	LBB0_5
LBB0_8:
	cmpl	$0, 4(%rax)
	je	LBB0_13
## %bb.9:
	movl	(%r14), %ebx
	movl	%ebx, %edx
	shll	$12, %edx
	negl	%edx
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.12:
	addl	$50784, %edx                    ## imm = 0xC660
	movl	$11, %eax
	jmp	LBB0_11
LBB0_7:
	movl	(%r14), %eax
	movl	$8, %ebx
	subl	%eax, %ebx
	shll	$12, %eax
	movl	$38528, %edx                    ## imm = 0x9680
	subl	%eax, %edx
	orl	$96, %ebx
	jmp	LBB0_14
LBB0_13:
	movl	(%r14), %eax
	movl	%eax, %ecx
	movl	$10, %ebx
	subl	%eax, %ebx
	shll	$12, %eax
	movl	$46720, %edx                    ## imm = 0xB680
	subl	%eax, %edx
	shll	$5, %ecx
	addl	$160, %ecx
	orl	%ecx, %ebx
	jmp	LBB0_14
LBB0_4:
	addl	$46656, %edx                    ## imm = 0xB640
	movl	$10, %ebx
LBB0_5:
	subl	%ecx, %ebx
	orl	$96, %ebx
	jmp	LBB0_14
LBB0_10:
	addl	$54848, %edx                    ## imm = 0xD640
	movl	$12, %eax
LBB0_11:
	subl	%ebx, %eax
	shll	$5, %ebx
	addl	$160, %ebx
	orl	%eax, %ebx
LBB0_14:
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_dib8000_write_word
	movq	%r14, %rdi
	movl	$37, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dib8000_write_word             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dib8000_set_isdbt_loop_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_set_isdbt_loop_params
_dib8000_set_isdbt_loop_params:         ; @dib8000_set_isdbt_loop_params
	.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, #8]
	ldr	x8, [x8]
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_8
; %bb.2:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_9
; %bb.3:
	ldr	w10, [x8]
	ldr	w8, [x19]
	neg	w9, w8, lsl #12
	cbz	w10, LBB0_11
; %bb.4:
	mov	w10, #42592
	add	w2, w9, w10
	mov	w9, #9
	b	LBB0_12
LBB0_5:
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_10
; %bb.6:
	ldr	w10, [x8]
	ldr	w8, [x19]
	neg	w9, w8, lsl #12
	cbz	w10, LBB0_13
; %bb.7:
	mov	w10, #50784
	add	w2, w9, w10
	mov	w9, #11
	b	LBB0_14
LBB0_8:
	mov	w2, #0
	mov	w20, #0
	b	LBB0_15
LBB0_9:
	ldr	w8, [x19]
	mov	w9, #38528
	sub	w2, w9, w8, lsl #12
	mov	w9, #8
	b	LBB0_12
LBB0_10:
	ldr	w8, [x19]
	mov	w9, #46720
	sub	w2, w9, w8, lsl #12
	lsl	w9, w8, #5
	add	w9, w9, #160
	mov	w10, #10
	sub	w8, w10, w8
	orr	w20, w9, w8
	b	LBB0_15
LBB0_11:
	mov	w10, #46656
	add	w2, w9, w10
	mov	w9, #10
LBB0_12:
	sub	w8, w9, w8
	orr	w20, w8, #0x60
	b	LBB0_15
LBB0_13:
	mov	w10, #54848
	add	w2, w9, w10
	mov	w9, #12
LBB0_14:
	lsl	w10, w8, #5
	add	w10, w10, #160
	sub	w8, w9, w8
	orr	w20, w10, w8
LBB0_15:
	mov	x0, x19
	mov	w1, #32
	bl	_dib8000_write_word
	mov	x0, x19
	mov	w1, #37
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dib8000_write_word
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dib8000_set_isdbt_loop_params
.subsections_via_symbols
