	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_id_store
_do_id_store:                           ## @do_id_store
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_dax_drv
	movq	%rax, %r13
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_DAX_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	movq	%r14, %rdi
	callq	_sscanf
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.2:
	movl	-72(%rbp), %edx
	movl	-68(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sysfs_streq
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_dax_bus_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	___dax_match_id
	testq	%rax, %rax
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.8:
	movq	%rax, %rbx
	movq	_ID_REMOVE@GOTPCREL(%rip), %rax
                                        ## kill: def $r15d killed $r15d killed $r15
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_15
LBB0_4:
	movq	_ID_ADD@GOTPCREL(%rip), %rax
                                        ## kill: def $r15d killed $r15d killed $r15
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_11
## %bb.5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	_DAX_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_strncpy
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_list_add
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r15d
LBB0_11:
	movq	_dax_bus_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	js	LBB0_15
## %bb.12:
	movq	_ID_ADD@GOTPCREL(%rip), %rax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_14
## %bb.13:
	movq	%r12, %rdi
	callq	_driver_attach
	movl	%eax, %r15d
LBB0_14:
	testl	%r15d, %r15d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmovnel	%r15d, %eax
	movl	%eax, %r15d
LBB0_15:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DAX_NAME_LEN,4,2               ## @DAX_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dax%d.%d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_dax_bus_lock,4,2               ## @dax_bus_lock
	.comm	_ID_ADD,4,2                     ## @ID_ADD
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ID_REMOVE,4,2                  ## @ID_REMOVE
	.no_dead_strip	_do_id_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_id_store
_do_id_store:                           ; @do_id_store
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_to_dax_drv
	mov	x23, x0
	mov	x26, sp
Lloh3:
	adrp	x27, _DAX_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x27, [x27, _DAX_NAME_LEN@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #92
	sub	x3, x29, #96
	mov	x0, x22
	bl	_sscanf
	cmp	w0, #2
	b.ne	LBB0_5
; %bb.1:
	ldp	w3, w2, [x29, #-96]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_sprintf
	mov	x0, x22
	mov	x1, x24
	bl	_sysfs_streq
	cbz	w0, LBB0_5
; %bb.2:
Lloh11:
	adrp	x0, _dax_bus_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _dax_bus_lock@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x23
	mov	x1, x22
	bl	___dax_match_id
Lloh13:
	adrp	x28, _ID_ADD@GOTPAGE
Lloh14:
	ldr	x28, [x28, _ID_ADD@GOTPAGEOFF]
	cbz	x0, LBB0_6
; %bb.3:
Lloh15:
	adrp	x8, _ID_REMOVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ID_REMOVE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	x24, x19
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.4:
	mov	x25, x0
	bl	_list_del
	mov	x0, x25
	bl	_kfree
	b	LBB0_9
LBB0_5:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_14
LBB0_6:
	ldr	w8, [x28]
	mov	x24, x19
	cmp	w8, w21
	b.ne	LBB0_10
; %bb.7:
Lloh21:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.8:
	mov	x24, x0
	ldr	w0, [x0, #4]
	ldr	w2, [x27]
	mov	x1, x22
	bl	_strncpy
	mov	x0, x24
	mov	x1, x23
	bl	_list_add
LBB0_9:
	mov	x24, x19
LBB0_10:
Lloh24:
	adrp	x0, _dax_bus_lock@GOTPAGE
Lloh25:
	ldr	x0, [x0, _dax_bus_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	tbnz	w24, #31, LBB0_14
; %bb.11:
	ldr	w8, [x28]
	cmp	w8, w21
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_driver_attach
	mov	x24, x0
LBB0_13:
	cmp	w24, #0
	csel	w24, w19, w24, eq
LBB0_14:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x24
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_10
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_DAX_NAME_LEN,4,2               ; @DAX_NAME_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dax%d.%d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_dax_bus_lock,4,2               ; @dax_bus_lock
	.comm	_ID_ADD,4,2                     ; @ID_ADD
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ID_REMOVE,4,2                  ; @ID_REMOVE
	.no_dead_strip	_do_id_store
.subsections_via_symbols
