	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_enable_port              ## -- Begin function nvmet_enable_port
	.p2align	4, 0x90
_nvmet_enable_port:                     ## @nvmet_enable_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
	movq	%rdi, %r14
	movq	_nvmet_config_sem@GOTPCREL(%rip), %rdi
	callq	_lockdep_assert_held
	movq	_nvmet_transports@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	24(%r14), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.1:
	movq	_nvmet_config_sem@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_up_write
	movq	24(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_request_module
	movq	%rbx, %rdi
	callq	_down_write
	movq	(%r15), %rax
	movq	24(%r14), %rsi
	movq	(%rax,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
LBB0_3:
	movl	8(%rbx), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	*(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	callq	_module_put
	jmp	LBB0_10
LBB0_7:
	cmpq	$0, (%r14)
	jns	LBB0_9
## %bb.8:
	movq	$0, (%r14)
LBB0_9:
	movl	$1, 8(%r14)
	movq	%rbx, 16(%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvmet_config_sem,4,2           ## @nvmet_config_sem
	.comm	_nvmet_transports,8,3           ## @nvmet_transports
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvmet-transport-%d"

L_.str.1:                               ## @.str.1
	.asciz	"transport type %d not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvmet_enable_port              ; -- Begin function nvmet_enable_port
	.p2align	2
_nvmet_enable_port:                     ; @nvmet_enable_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	x19, x0
Lloh0:
	adrp	x0, _nvmet_config_sem@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nvmet_config_sem@GOTPAGEOFF]
	bl	_lockdep_assert_held
Lloh2:
	adrp	x22, _nvmet_transports@GOTPAGE
Lloh3:
	ldr	x22, [x22, _nvmet_transports@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x19, #24]
	ldr	x21, [x8, x9, lsl #3]
	cbnz	x21, LBB0_2
; %bb.1:
Lloh4:
	adrp	x20, _nvmet_config_sem@GOTPAGE
Lloh5:
	ldr	x20, [x20, _nvmet_config_sem@GOTPAGEOFF]
	mov	x0, x20
	bl	_up_write
	ldr	x1, [x19, #24]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_request_module
	mov	x0, x20
	bl	_down_write
	ldr	x8, [x22]
	ldr	x1, [x19, #24]
	ldr	x21, [x8, x1, lsl #3]
	cbz	x21, LBB0_8
LBB0_2:
	ldr	w0, [x21, #8]
	bl	_try_module_get
	cbz	w0, LBB0_9
; %bb.3:
	ldr	x8, [x21]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	w0, [x21, #8]
	bl	_module_put
	b	LBB0_10
LBB0_5:
	ldr	x8, [x19]
	tbz	x8, #63, LBB0_7
; %bb.6:
	str	xzr, [x19]
LBB0_7:
	mov	w20, #0
	mov	w8, #1
	str	w8, [x19, #8]
	str	x21, [x19, #16]
	b	LBB0_10
LBB0_8:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_9:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nvmet_config_sem,4,2           ; @nvmet_config_sem
	.comm	_nvmet_transports,8,3           ; @nvmet_transports
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvmet-transport-%d"

l_.str.1:                               ; @.str.1
	.asciz	"transport type %d not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
