	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stdev_create
_stdev_create:                          ## @stdev_create
	.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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	callq	_dev_to_node
	movl	$88, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_kzalloc_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	%r14, 80(%rax)
	leaq	76(%rax), %rdi
	callq	_INIT_LIST_HEAD
	leaq	72(%rbx), %rdi
	callq	_mutex_init
	movq	$0, 64(%rbx)
	leaq	60(%rbx), %rdi
	movq	_mrpc_event_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	56(%rbx), %rdi
	movq	_mrpc_timeout_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	52(%rbx), %rdi
	movq	_link_event_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	48(%rbx), %rdi
	callq	_init_waitqueue_head
	leaq	44(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_device_initialize
	movq	_switchtec_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	_switchtec_device_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_stdev_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	(%r12), %ecx
	movq	_switchtec_minor_ida@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ida_simple_get
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_switchtec_devt@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MAJOR
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_MKDEV
	movl	%eax, 8(%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_dev_set_name
	movq	%rbx, %rdi
	addq	$40, %rdi
	movq	_switchtec_fops@GOTPCREL(%rip), %rsi
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_put_device
	movl	%r14d, %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mrpc_event_work,4,2            ## @mrpc_event_work
	.comm	_mrpc_timeout_work,4,2          ## @mrpc_timeout_work
	.comm	_link_event_work,4,2            ## @link_event_work
	.comm	_switchtec_class,4,2            ## @switchtec_class
	.comm	_switchtec_device_groups,4,2    ## @switchtec_device_groups
	.comm	_stdev_release,4,2              ## @stdev_release
	.comm	_switchtec_minor_ida,4,2        ## @switchtec_minor_ida
	.comm	_switchtec_devt,4,2             ## @switchtec_devt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"switchtec%d"

	.comm	_switchtec_fops,4,2             ## @switchtec_fops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.no_dead_strip	_stdev_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stdev_create
_stdev_create:                          ; @stdev_create
	.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	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w19, [x22]
	bl	_dev_to_node
	mov	x2, x0
	mov	w0, #88
	mov	x1, x19
	bl	_kzalloc_node
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	str	x20, [x0, #80]
	add	x0, x0, #76
	bl	_INIT_LIST_HEAD
	add	x0, x19, #72
	bl	_mutex_init
	str	xzr, [x19, #64]
	add	x0, x19, #60
Lloh2:
	adrp	x8, _mrpc_event_work@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mrpc_event_work@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #56
Lloh5:
	adrp	x8, _mrpc_timeout_work@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mrpc_timeout_work@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #52
Lloh8:
	adrp	x8, _link_event_work@GOTPAGE
Lloh9:
	ldr	x8, [x8, _link_event_work@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x19, #48
	bl	_init_waitqueue_head
	add	x0, x19, #44
	mov	w1, #0
	bl	_atomic_set
	add	x21, x19, #8
	mov	x0, x21
	bl	_device_initialize
Lloh11:
	adrp	x8, _switchtec_class@GOTPAGE
Lloh12:
	ldr	x8, [x8, _switchtec_class@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	str	x20, [x19, #24]
Lloh14:
	adrp	x8, _switchtec_device_groups@GOTPAGE
Lloh15:
	ldr	x8, [x8, _switchtec_device_groups@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _stdev_release@GOTPAGE
Lloh18:
	ldr	x9, [x9, _stdev_release@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #12]
	ldr	w3, [x22]
Lloh20:
	adrp	x0, _switchtec_minor_ida@GOTPAGE
Lloh21:
	ldr	x0, [x0, _switchtec_minor_ida@GOTPAGEOFF]
	mov	w1, #0
	mov	w2, #0
	bl	_ida_simple_get
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh22:
	adrp	x8, _switchtec_devt@GOTPAGE
Lloh23:
	ldr	x8, [x8, _switchtec_devt@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_MAJOR
	mov	x1, x20
	bl	_MKDEV
	str	w0, [x19, #8]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_set_name
	add	x0, x19, #40
Lloh27:
	adrp	x1, _switchtec_fops@GOTPAGE
Lloh28:
	ldr	x1, [x1, _switchtec_fops@GOTPAGEOFF]
	bl	_cdev_init
Lloh29:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	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
LBB0_3:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_put_device
	mov	x0, x20
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mrpc_event_work,4,2            ; @mrpc_event_work
	.comm	_mrpc_timeout_work,4,2          ; @mrpc_timeout_work
	.comm	_link_event_work,4,2            ; @link_event_work
	.comm	_switchtec_class,4,2            ; @switchtec_class
	.comm	_switchtec_device_groups,4,2    ; @switchtec_device_groups
	.comm	_stdev_release,4,2              ; @stdev_release
	.comm	_switchtec_minor_ida,4,2        ; @switchtec_minor_ida
	.comm	_switchtec_devt,4,2             ; @switchtec_devt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"switchtec%d"

	.comm	_switchtec_fops,4,2             ; @switchtec_fops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.no_dead_strip	_stdev_create
.subsections_via_symbols
