	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmf_create_ctrl
_nvmf_create_ctrl:                      ## @nvmf_create_ctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_nvmf_parse_options
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.4:
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rdi
	callq	_request_module
	movq	_NVMF_REQUIRED_OPTS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_nvmf_check_required_opts
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:
	movl	(%r15), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	_nvmf_transports_rwsem@GOTPCREL(%rip), %rdi
	callq	_down_read
	movq	%r12, %rdi
	callq	_nvmf_lookup_transport
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %r15
	movl	8(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	_nvmf_transports_rwsem@GOTPCREL(%rip), %rdi
	callq	_up_read
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_nvmf_check_required_opts
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movq	_NVMF_ALLOWED_OPTS@GOTPCREL(%rip), %rax
	movl	4(%r15), %esi
	orl	(%rax), %esi
	orl	(%r15), %esi
	movq	%r12, %rdi
	callq	_nvmf_check_allowed_opts
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*16(%r15)
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_14:
	movl	8(%r15), %edi
	callq	_module_put
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_6:
	movl	4(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_nvmf_transports_rwsem@GOTPCREL(%rip), %rdi
	callq	_up_read
LBB0_15:
	movq	%r12, %rdi
	callq	_nvmf_free_options
	movl	%ebx, %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_16:
	movl	8(%r15), %edi
	callq	_module_put
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvme-%s"

	.comm	_NVMF_REQUIRED_OPTS,4,2         ## @NVMF_REQUIRED_OPTS
	.comm	_nvmf_transports_rwsem,4,2      ## @nvmf_transports_rwsem
L_.str.1:                               ## @.str.1
	.asciz	"no handler found for transport %s.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NVMF_ALLOWED_OPTS,4,2          ## @NVMF_ALLOWED_OPTS
	.no_dead_strip	_nvmf_create_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmf_create_ctrl
_nvmf_create_ctrl:                      ; @nvmf_create_ctrl
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	x1, x21
	bl	_nvmf_parse_options
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.2:
	ldr	w1, [x19, #4]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_request_module
Lloh5:
	adrp	x21, _NVMF_REQUIRED_OPTS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _NVMF_REQUIRED_OPTS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_nvmf_check_required_opts
	mov	x22, x0
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	w8, [x21]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh7:
	adrp	x0, _nvmf_transports_rwsem@GOTPAGE
Lloh8:
	ldr	x0, [x0, _nvmf_transports_rwsem@GOTPAGEOFF]
	bl	_down_read
	mov	x0, x19
	bl	_nvmf_lookup_transport
	cbz	x0, LBB0_11
; %bb.4:
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_try_module_get
	cbz	w0, LBB0_12
; %bb.5:
Lloh9:
	adrp	x0, _nvmf_transports_rwsem@GOTPAGE
Lloh10:
	ldr	x0, [x0, _nvmf_transports_rwsem@GOTPAGEOFF]
	bl	_up_read
	ldr	w1, [x21]
	mov	x0, x19
	bl	_nvmf_check_required_opts
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _NVMF_ALLOWED_OPTS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NVMF_ALLOWED_OPTS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldp	w10, w9, [x21]
	orr	w8, w9, w8
	orr	w1, w8, w10
	mov	x0, x19
	bl	_nvmf_check_allowed_opts
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x21, #16]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.8:
	mov	x0, x20
	bl	_PTR_ERR
	mov	x22, x0
LBB0_9:
	ldr	w0, [x21, #8]
	bl	_module_put
	b	LBB0_14
LBB0_10:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_11:
	ldr	w1, [x19, #4]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh21:
	adrp	x8, _EBUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w22, w8
Lloh23:
	adrp	x0, _nvmf_transports_rwsem@GOTPAGE
Lloh24:
	ldr	x0, [x0, _nvmf_transports_rwsem@GOTPAGEOFF]
	bl	_up_read
LBB0_14:
	mov	x0, x19
	bl	_nvmf_free_options
	mov	x0, x22
LBB0_15:
	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
	b	_ERR_PTR
LBB0_16:
	ldr	w0, [x21, #8]
	bl	_module_put
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvme-%s"

	.comm	_NVMF_REQUIRED_OPTS,4,2         ; @NVMF_REQUIRED_OPTS
	.comm	_nvmf_transports_rwsem,4,2      ; @nvmf_transports_rwsem
l_.str.1:                               ; @.str.1
	.asciz	"no handler found for transport %s.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NVMF_ALLOWED_OPTS,4,2          ; @NVMF_ALLOWED_OPTS
	.no_dead_strip	_nvmf_create_ctrl
.subsections_via_symbols
