	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_register_sw_device_type    ## -- Begin function iio_register_sw_device_type
	.p2align	4, 0x90
_iio_register_sw_device_type:           ## @iio_register_sw_device_type
	.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, %r14
	movq	_iio_device_types_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movl	4(%r14), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	___iio_find_sw_device_type
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_iio_device_types_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.5:
	negl	%ebx
	jmp	LBB0_6
LBB0_1:
	leaq	8(%r14), %rdi
	movq	_iio_device_types_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	_iio_device_types_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_2:
	movq	_iio_devices_group@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	movq	_iio_device_type_group_type@GOTPCREL(%rip), %rdx
	callq	_configfs_register_default_group
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_iio_device_types_lock,4,2      ## @iio_device_types_lock
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_iio_device_types_list,4,2      ## @iio_device_types_list
	.comm	_iio_devices_group,4,2          ## @iio_devices_group
	.comm	_iio_device_type_group_type,4,2 ## @iio_device_type_group_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iio_register_sw_device_type    ; -- Begin function iio_register_sw_device_type
	.p2align	2
_iio_register_sw_device_type:           ; @iio_register_sw_device_type
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _iio_device_types_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _iio_device_types_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	w20, [x19, #4]
	mov	x0, x20
	bl	_strlen
	mov	x1, x0
	mov	x0, x20
	bl	___iio_find_sw_device_type
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x0, _iio_device_types_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _iio_device_types_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	cbz	w20, LBB0_4
; %bb.2:
	neg	w0, w20
	b	LBB0_6
LBB0_3:
	add	x0, x19, #8
Lloh7:
	adrp	x1, _iio_device_types_list@GOTPAGE
Lloh8:
	ldr	x1, [x1, _iio_device_types_list@GOTPAGEOFF]
	bl	_list_add_tail
Lloh9:
	adrp	x0, _iio_device_types_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _iio_device_types_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_4:
Lloh11:
	adrp	x8, _iio_devices_group@GOTPAGE
Lloh12:
	ldr	x8, [x8, _iio_devices_group@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
Lloh14:
	adrp	x2, _iio_device_type_group_type@GOTPAGE
Lloh15:
	ldr	x2, [x2, _iio_device_type_group_type@GOTPAGEOFF]
	bl	_configfs_register_default_group
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_iio_device_types_lock,4,2      ; @iio_device_types_lock
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_iio_device_types_list,4,2      ; @iio_device_types_list
	.comm	_iio_devices_group,4,2          ; @iio_devices_group
	.comm	_iio_device_type_group_type,4,2 ; @iio_device_type_group_type
.subsections_via_symbols
