	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scif_peer_initialize_device
_scif_peer_initialize_device:           ## @scif_peer_initialize_device
	.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), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movq	%rbx, %r15
	addq	$8, %r15
	movl	%eax, 20(%rbx)
	movq	_scif_peer_release_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %edx
	movl	%edx, (%rbx)
	movq	_scif_peer_bus@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_set_name
	movq	%r15, %rdi
	callq	_device_initialize
	movq	%r15, %rdi
	callq	_get_device
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	movq	_scif_info@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	incl	8(%r14)
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	4(%r14), %edx
	callq	_max_t
	movl	%eax, 4(%r14)
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%ebx, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	8(%r14), %rdi
	movl	(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_3:
	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	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_scif_peer_release_dev,4,2      ## @scif_peer_release_dev
	.comm	_scif_peer_bus,4,2              ## @scif_peer_bus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scif_peer-dev%u"

	.comm	_scif_info,12,2                 ## @scif_info
	.comm	_u32,4,2                        ## @u32
L_.str.1:                               ## @.str.1
	.asciz	"dnode %d: initialize_device rc %d\n"

	.no_dead_strip	_scif_peer_initialize_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scif_peer_initialize_device
_scif_peer_initialize_device:           ; @scif_peer_initialize_device
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _scif_peer_release_dev@GOTPAGE
Lloh4:
	ldr	x9, [x9, _scif_peer_release_dev@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	ldr	w2, [x20]
	str	w2, [x0]
Lloh6:
	adrp	x8, _scif_peer_bus@GOTPAGE
Lloh7:
	ldr	x8, [x8, _scif_peer_bus@GOTPAGEOFF]
	mov	x21, x0
	str	x8, [x21, #8]!
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_set_name
	mov	x0, x21
	bl	_device_initialize
	mov	x0, x21
	bl	_get_device
	ldr	w0, [x20, #16]
	mov	x1, x19
	bl	_rcu_assign_pointer
Lloh10:
	adrp	x20, _scif_info@GOTPAGE
Lloh11:
	ldr	x20, [x20, _scif_info@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	ldp	w2, w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh12:
	adrp	x8, _u32@GOTPAGE
Lloh13:
	ldr	x8, [x8, _u32@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_max_t
	str	w0, [x20, #4]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w19, #0
	b	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
	ldr	x0, [x20, #8]
	ldr	w2, [x20]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_dev_err
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_scif_peer_release_dev,4,2      ; @scif_peer_release_dev
	.comm	_scif_peer_bus,4,2              ; @scif_peer_bus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scif_peer-dev%u"

	.comm	_scif_info,12,2                 ; @scif_info
	.comm	_u32,4,2                        ; @u32
l_.str.1:                               ; @.str.1
	.asciz	"dnode %d: initialize_device rc %d\n"

	.no_dead_strip	_scif_peer_initialize_device
.subsections_via_symbols
