	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxusb_medion_put               ## -- Begin function cxusb_medion_put
	.p2align	4, 0x90
_cxusb_medion_put:                      ## @cxusb_medion_put
	.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), %rbx
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rcx
	movq	_CXUSB_OPEN_INIT@GOTPCREL(%rip), %rdx
	movl	8(%rbx), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_WARN_ON
	movq	_CXUSB_OPEN_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
	testl	%eax, %eax
	setle	%dil
	callq	_WARN_ON
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	decl	8(%rbx)
	movq	(%rbx), %rax
	movq	_CXUSB_OPEN_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_deb_info
LBB0_4:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CXUSB_OPEN_INIT,8,3            ## @CXUSB_OPEN_INIT
	.comm	_CXUSB_OPEN_NONE,8,3            ## @CXUSB_OPEN_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"release %s\n"

	.comm	_CXUSB_OPEN_ANALOG,8,3          ## @CXUSB_OPEN_ANALOG
L_.str.1:                               ## @.str.1
	.asciz	"analog"

L_.str.2:                               ## @.str.2
	.asciz	"digital"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxusb_medion_put               ; -- Begin function cxusb_medion_put
	.p2align	2
_cxusb_medion_put:                      ; @cxusb_medion_put
	.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
	ldr	x20, [x0]
	add	x19, x20, #12
	mov	x0, x19
	bl	_mutex_lock
	ldr	x9, [x20]
Lloh0:
	adrp	x8, _CXUSB_OPEN_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXUSB_OPEN_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x20, #8]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	cmp	w8, #0
	cset	w0, ne
	bl	_WARN_ON
Lloh3:
	adrp	x8, _CXUSB_OPEN_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CXUSB_OPEN_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_4
LBB0_2:
	cmp	w8, #1
	cset	w0, lt
	bl	_WARN_ON
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	sub	w8, w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _CXUSB_OPEN_ANALOG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CXUSB_OPEN_ANALOG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, l_.str.2@PAGE
Lloh10:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh11:
	adrp	x11, l_.str.1@PAGE
Lloh12:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_deb_info
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CXUSB_OPEN_INIT,8,3            ; @CXUSB_OPEN_INIT
	.comm	_CXUSB_OPEN_NONE,8,3            ; @CXUSB_OPEN_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"release %s\n"

	.comm	_CXUSB_OPEN_ANALOG,8,3          ; @CXUSB_OPEN_ANALOG
l_.str.1:                               ; @.str.1
	.asciz	"analog"

l_.str.2:                               ; @.str.2
	.asciz	"digital"

.subsections_via_symbols
