	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function srp_add_port
_srp_add_port:                          ## @srp_add_port
	.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
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	leaq	44(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%rbx), %rdi
	callq	_spin_lock_init
	leaq	36(%rbx), %rdi
	callq	_init_completion
	movq	%rbx, %rdi
	addq	$32, %rdi
	callq	_mutex_init
	movq	%r15, 24(%rbx)
	movl	%r14d, 16(%rbx)
	movq	_srp_class@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	(%r15), %rdi
	movl	(%rdi), %eax
	movl	%eax, (%rbx)
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	movl	%r14d, %ecx
	callq	_dev_set_name
	movq	%rbx, %rdi
	callq	_device_register
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	_dev_attr_add_target@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_dev_attr_ibdev@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_dev_attr_port@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_device_unregister
LBB0_6:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_srp_class,4,2                  ## @srp_class
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"srp-%s-%d"

	.comm	_dev_attr_add_target,4,2        ## @dev_attr_add_target
	.comm	_dev_attr_ibdev,4,2             ## @dev_attr_ibdev
	.comm	_dev_attr_port,4,2              ## @dev_attr_port
	.no_dead_strip	_srp_add_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function srp_add_port
_srp_add_port:                          ; @srp_add_port
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.1:
	add	x0, x19, #44
	bl	_INIT_LIST_HEAD
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #36
	bl	_init_completion
	add	x0, x19, #32
	bl	_mutex_init
	str	x21, [x19, #24]
	str	w20, [x19, #16]
Lloh3:
	adrp	x8, _srp_class@GOTPAGE
Lloh4:
	ldr	x8, [x8, _srp_class@GOTPAGEOFF]
	str	x8, [x19, #8]
	ldr	x0, [x21]
	ldr	w8, [x0]
	str	w8, [x19]
	bl	_dev_name
	mov	x2, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_dev_set_name
	mov	x0, x19
	bl	_device_register
	cbnz	x0, LBB0_6
; %bb.2:
Lloh7:
	adrp	x1, _dev_attr_add_target@GOTPAGE
Lloh8:
	ldr	x1, [x1, _dev_attr_add_target@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbnz	x0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x1, _dev_attr_ibdev@GOTPAGE
Lloh10:
	ldr	x1, [x1, _dev_attr_ibdev@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbnz	x0, LBB0_5
; %bb.4:
Lloh11:
	adrp	x1, _dev_attr_port@GOTPAGE
Lloh12:
	ldr	x1, [x1, _dev_attr_port@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_device_unregister
LBB0_6:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_7:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_srp_class,4,2                  ; @srp_class
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"srp-%s-%d"

	.comm	_dev_attr_add_target,4,2        ; @dev_attr_add_target
	.comm	_dev_attr_ibdev,4,2             ; @dev_attr_ibdev
	.comm	_dev_attr_port,4,2              ; @dev_attr_port
	.no_dead_strip	_srp_add_port
.subsections_via_symbols
