	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_set_ts_output   ## -- Begin function cxd2880_tnrdmd_set_ts_output
	.p2align	4, 0x90
_cxd2880_tnrdmd_set_ts_output:          ## @cxd2880_tnrdmd_set_ts_output
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %rax
	movq	_CXD2880_TNRDMD_STATE_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	20(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_6
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_6:
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.7:
	movl	16(%rbx), %r14d
	testl	%esi, %esi
	je	LBB0_13
## %bb.8:
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_set_ts_output_seq1@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	16(%rbx), %r14d
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_set_ts_output_seq2@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_set_ts_output_seq3@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_12
## %bb.14:
	movl	16(%rbx), %r14d
	movq	_CXD2880_IO_TGT_SYS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_set_ts_output_seq4@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_cxd2880_io_write_multi_regs
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ## @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_STATE_SLEEP,8,3 ## @CXD2880_TNRDMD_STATE_SLEEP
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ## @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_IO_TGT_SYS,4,2         ## @CXD2880_IO_TGT_SYS
	.comm	_set_ts_output_seq1,4,2         ## @set_ts_output_seq1
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_set_ts_output_seq2,4,2         ## @set_ts_output_seq2
	.comm	_set_ts_output_seq3,4,2         ## @set_ts_output_seq3
	.comm	_set_ts_output_seq4,4,2         ## @set_ts_output_seq4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_set_ts_output   ; -- Begin function cxd2880_tnrdmd_set_ts_output
	.p2align	2
_cxd2880_tnrdmd_set_ts_output:          ; @cxd2880_tnrdmd_set_ts_output
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_SLEEP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x19, #20]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.6:
	ldr	w20, [x19, #16]
	cbz	w1, LBB0_11
; %bb.7:
Lloh9:
	adrp	x8, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _set_ts_output_seq1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _set_ts_output_seq1@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w19, [x19, #16]
Lloh15:
	adrp	x8, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
Lloh18:
	adrp	x8, _set_ts_output_seq2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _set_ts_output_seq2@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
Lloh23:
	adrp	x8, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
Lloh25:
	ldr	w21, [x8]
Lloh26:
	adrp	x8, _set_ts_output_seq3@GOTPAGE
Lloh27:
	ldr	x8, [x8, _set_ts_output_seq3@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_10
; %bb.12:
	ldr	w19, [x19, #16]
Lloh29:
	adrp	x8, _CXD2880_IO_TGT_SYS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CXD2880_IO_TGT_SYS@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
Lloh32:
	adrp	x8, _set_ts_output_seq4@GOTPAGE
Lloh33:
	ldr	x8, [x8, _set_ts_output_seq4@GOTPAGEOFF]
LBB0_13:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_cxd2880_io_write_multi_regs
	cbnz	w0, LBB0_10
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ; @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_STATE_SLEEP,8,3 ; @CXD2880_TNRDMD_STATE_SLEEP
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ; @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_IO_TGT_SYS,4,2         ; @CXD2880_IO_TGT_SYS
	.comm	_set_ts_output_seq1,4,2         ; @set_ts_output_seq1
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_set_ts_output_seq2,4,2         ; @set_ts_output_seq2
	.comm	_set_ts_output_seq3,4,2         ; @set_ts_output_seq3
	.comm	_set_ts_output_seq4,4,2         ; @set_ts_output_seq4
.subsections_via_symbols
