	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx23888_ir_tx_shutdown
_cx23888_ir_tx_shutdown:                ## @cx23888_ir_tx_shutdown
	.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
	callq	_to_state
	movq	%rax, %r14
	movq	8(%rax), %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_irqenable_tx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_control_tx_enable
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_control_tx_modulation_enable
	movq	_CX23888_IR_TXCLK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TXCLK_TCD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_cx23888_ir_write4
	movl	$1, 4(%r14)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CX23888_IR_TXCLK_REG,4,2       ## @CX23888_IR_TXCLK_REG
	.comm	_TXCLK_TCD,4,2                  ## @TXCLK_TCD
	.no_dead_strip	_cx23888_ir_tx_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx23888_ir_tx_shutdown
_cx23888_ir_tx_shutdown:                ; @cx23888_ir_tx_shutdown
	.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
	bl	_to_state
	mov	x19, x0
	ldr	x20, [x0, #8]
	bl	_mutex_lock
	mov	x0, x20
	mov	w1, #0
	bl	_irqenable_tx
	mov	x0, x20
	mov	w1, #0
	bl	_control_tx_enable
	mov	x0, x20
	mov	w1, #0
	bl	_control_tx_modulation_enable
Lloh0:
	adrp	x8, _CX23888_IR_TXCLK_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CX23888_IR_TXCLK_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TXCLK_TCD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TXCLK_TCD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_cx23888_ir_write4
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CX23888_IR_TXCLK_REG,4,2       ; @CX23888_IR_TXCLK_REG
	.comm	_TXCLK_TCD,4,2                  ; @TXCLK_TCD
	.no_dead_strip	_cx23888_ir_tx_shutdown
.subsections_via_symbols
