	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tifm_add_adapter               ## -- Begin function tifm_add_adapter
	.p2align	4, 0x90
_tifm_add_adapter:                      ## @tifm_add_adapter
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_idr_preload
	movq	_tifm_adapter_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_tifm_adapter_idr@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%ebx, (%r14)
LBB0_2:
	movq	_tifm_adapter_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	xorl	%eax, %eax
	callq	_idr_preload_end
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.3:
	leaq	4(%r14), %rbx
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_set_name
	movq	%rbx, %rdi
	callq	_device_add
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movq	_tifm_adapter_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	(%r14), %esi
	movq	_tifm_adapter_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	%r15d, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_tifm_adapter_lock,4,2          ## @tifm_adapter_lock
	.comm	_tifm_adapter_idr,4,2           ## @tifm_adapter_idr
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tifm%u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tifm_add_adapter               ; -- Begin function tifm_add_adapter
	.p2align	2
_tifm_add_adapter:                      ; @tifm_add_adapter
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_idr_preload
Lloh3:
	adrp	x0, _tifm_adapter_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _tifm_adapter_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh5:
	adrp	x8, _GFP_NOWAIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_NOWAIT@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
Lloh8:
	adrp	x0, _tifm_adapter_idr@GOTPAGE
Lloh9:
	ldr	x0, [x0, _tifm_adapter_idr@GOTPAGEOFF]
	mov	x1, x19
	mov	w2, #0
	mov	w3, #0
	bl	_idr_alloc
	mov	x20, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	str	w20, [x19]
LBB0_2:
Lloh10:
	adrp	x0, _tifm_adapter_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _tifm_adapter_lock@GOTPAGEOFF]
	bl	_spin_unlock
	bl	_idr_preload_end
	tbnz	w20, #31, LBB0_5
; %bb.3:
	mov	x20, x19
	ldr	w2, [x20], #4
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_set_name
	mov	x0, x20
	bl	_device_add
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh14:
	adrp	x21, _tifm_adapter_lock@GOTPAGE
Lloh15:
	ldr	x21, [x21, _tifm_adapter_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	ldr	w1, [x19]
Lloh16:
	adrp	x0, _tifm_adapter_idr@GOTPAGE
Lloh17:
	ldr	x0, [x0, _tifm_adapter_idr@GOTPAGEOFF]
	bl	_idr_remove
	mov	x0, x21
	bl	_spin_unlock
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_tifm_adapter_lock,4,2          ; @tifm_adapter_lock
	.comm	_tifm_adapter_idr,4,2           ; @tifm_adapter_idr
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tifm%u"

.subsections_via_symbols
