	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_set_output_timing
_mic_set_output_timing:                 ## @mic_set_output_timing
	.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
	movq	%rdi, %r13
	movl	12(%rdi), %edi
	movl	16(%r13), %r14d
	movl	20(%r13), %ebx
	movq	24(%r13), %r15
	movq	32(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	40(%r13), %r12
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_DRM_DEV_DEBUG
	sarl	%r14d
	andl	$-2, %r14d
	leal	3(%rbx), %eax
	testl	%ebx, %ebx
	cmovnsl	%ebx, %eax
	andl	$-4, %eax
	subl	%eax, %ebx
	addl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_MIC_BS_SIZE_2D
	movq	_MIC_2D_OUTPUT_TIMING_2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%r13), %rsi
	movl	%eax, %edi
	callq	_writel
	cmpl	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r12, %rdi
	callq	_MIC_H_PULSE_WIDTH_2D
	movl	%eax, %r14d
	movslq	%ebx, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	addq	%r15, %rdi
	addq	%r12, %rdi
	callq	_MIC_H_PERIOD_PIXEL_2D
	addl	%eax, %r14d
	movq	_MIC_2D_OUTPUT_TIMING_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_MIC_HBP_SIZE_2D
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_MIC_H_PERIOD_PIXEL_2D
	addl	%eax, %ebx
	movq	_MIC_2D_OUTPUT_TIMING_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r13), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w: %u, h: %u\n"

	.comm	_MIC_2D_OUTPUT_TIMING_2,8,3     ## @MIC_2D_OUTPUT_TIMING_2
	.comm	_MIC_2D_OUTPUT_TIMING_0,8,3     ## @MIC_2D_OUTPUT_TIMING_0
	.comm	_MIC_2D_OUTPUT_TIMING_1,8,3     ## @MIC_2D_OUTPUT_TIMING_1
	.no_dead_strip	_mic_set_output_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_set_output_timing
_mic_set_output_timing:                 ; @mic_set_output_timing
	.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	x19, x0
	ldp	w24, w23, [x0, #16]
	ldp	x20, x21, [x0, #24]
	ldr	x22, [x0, #40]
	ldr	w0, [x0, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	mov	x3, x23
	bl	_DRM_DEV_DEBUG
	asr	w8, w24, #1
	and	w8, w8, #0xfffffffe
	negs	w9, w23
	and	w9, w9, #0x3
	and	w10, w23, #0x3
	csneg	w9, w10, w9, mi
	add	w23, w8, w9
	mov	x0, x23
	bl	_MIC_BS_SIZE_2D
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MIC_2D_OUTPUT_TIMING_2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MIC_2D_OUTPUT_TIMING_2@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x0, x22
	bl	_MIC_H_PULSE_WIDTH_2D
	mov	x24, x0
	add	x8, x21, x20
	add	x8, x8, w23, sxtw
	add	x0, x8, x22
	bl	_MIC_H_PERIOD_PIXEL_2D
	add	w0, w0, w24
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _MIC_2D_OUTPUT_TIMING_0@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MIC_2D_OUTPUT_TIMING_0@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x21
	bl	_MIC_HBP_SIZE_2D
	mov	x21, x0
	mov	x0, x20
	bl	_MIC_H_PERIOD_PIXEL_2D
	add	w0, w0, w21
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _MIC_2D_OUTPUT_TIMING_1@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MIC_2D_OUTPUT_TIMING_1@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	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	_writel
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w: %u, h: %u\n"

	.comm	_MIC_2D_OUTPUT_TIMING_2,8,3     ; @MIC_2D_OUTPUT_TIMING_2
	.comm	_MIC_2D_OUTPUT_TIMING_0,8,3     ; @MIC_2D_OUTPUT_TIMING_0
	.comm	_MIC_2D_OUTPUT_TIMING_1,8,3     ; @MIC_2D_OUTPUT_TIMING_1
	.no_dead_strip	_mic_set_output_timing
.subsections_via_symbols
