	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmc_enable_etf_sink_sysfs
_tmc_enable_etf_sink_sysfs:             ## @tmc_enable_etf_sink_sysfs
	.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, %r15
	movl	4(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	leaq	16(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, (%r13)
	je	LBB0_2
## %bb.1:
	xorl	%r14d, %r14d
	cmpq	$0, 24(%r13)
	je	LBB0_7
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_2:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	20(%r13), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 24(%r13)
	jne	LBB0_6
LBB0_7:
	movq	8(%r13), %rax
	movq	_CS_MODE_SYSFS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	(%r15), %edi
	callq	_atomic_inc
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_9:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.10:
	movl	20(%r13), %edx
	xorl	%esi, %esi
	callq	_memset
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_11:
	movq	%r14, (%r13)
LBB0_12:
	movq	%r13, %rdi
	callq	_tmc_etb_enable_hw
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_14
LBB0_13:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_CS_MODE_SYSFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	(%r15), %edi
	callq	_atomic_inc
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CS_MODE_SYSFS,8,3              ## @CS_MODE_SYSFS
	.no_dead_strip	_tmc_enable_etf_sink_sysfs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmc_enable_etf_sink_sysfs
_tmc_enable_etf_sink_sysfs:             ; @tmc_enable_etf_sink_sysfs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_dev_get_drvdata
	mov	x22, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x20, #0
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w0, [x22, #20]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x22, #24]
	cbnz	x8, LBB0_2
LBB0_5:
	ldr	x8, [x22, #8]
Lloh6:
	adrp	x25, _CS_MODE_SYSFS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CS_MODE_SYSFS@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	w0, [x21]
	bl	_atomic_inc
	mov	w24, #0
	b	LBB0_12
LBB0_7:
	ldr	x23, [x22]
	cbz	x23, LBB0_10
; %bb.8:
	ldr	w2, [x22, #20]
	mov	x0, x23
	mov	w1, #0
	bl	_memset
	b	LBB0_11
LBB0_9:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_10:
	str	x20, [x22]
LBB0_11:
	mov	x0, x22
	bl	_tmc_etb_enable_hw
	mov	x24, x0
	cbz	w0, LBB0_15
LBB0_12:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_13:
	mov	x0, x20
	bl	_kfree
	mov	x0, x24
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldr	x8, [x25]
	str	x8, [x22, #8]
	ldr	w0, [x21]
	bl	_atomic_inc
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	cbnz	x23, LBB0_13
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CS_MODE_SYSFS,8,3              ; @CS_MODE_SYSFS
	.no_dead_strip	_tmc_enable_etf_sink_sysfs
.subsections_via_symbols
