	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function card_id_store_attr
_card_id_store_attr:                    ## @card_id_store_attr
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	callq	_dev_get_drvdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	$3, %r15
	movl	$3, %r14d
	cmovbq	%r15, %r14
	testq	%r14, %r14
	je	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rbx), %r13d
	movsbl	%r13b, %edi
	callq	_isalnum
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$45, %r13b
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$95, %r13b
	je	LBB0_7
## %bb.5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_8:
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movb	$0, -44(%rbp,%r14)
	movq	_snd_card_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_snd_info_check_reserved_words
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	movq	_snd_ecards_limit@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	xorl	%ebx, %ebx
	movq	_snd_cards@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	(%rcx), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%r12), %rax
	jmp	LBB0_14
LBB0_15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	leaq	-44(%rbp), %rsi
	callq	_strcpy
	movq	%rbx, %rdi
	callq	_snd_info_card_id_change
LBB0_16:
	movq	_snd_card_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	jmp	LBB0_17
LBB0_18:
	movq	(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rax,%rbx,8), %rcx
	je	LBB0_16
LBB0_19:
	movq	_snd_card_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r15d, %r15d
	subq	(%rax), %r15
LBB0_17:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_snd_card_mutex,4,2             ## @snd_card_mutex
	.comm	_EEXIST,8,3                     ## @EEXIST
	.comm	_snd_ecards_limit,8,3           ## @snd_ecards_limit
	.comm	_snd_cards,8,3                  ## @snd_cards
	.no_dead_strip	_card_id_store_attr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function card_id_store_attr
_card_id_store_attr:                    ; @card_id_store_attr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	w8, #3
	cmp	x19, #3
	csel	x22, x19, x8, lo
	cbz	x22, LBB0_6
; %bb.1:
	ldrsb	w23, [x21]
	mov	x0, x23
	bl	_isalnum
	cbz	w0, LBB0_15
LBB0_2:
	cmp	x22, #1
	b.eq	LBB0_6
; %bb.3:
	ldrsb	w23, [x21, #1]
	mov	x0, x23
	bl	_isalnum
	cbz	w0, LBB0_19
LBB0_4:
	cmp	x22, #2
	b.eq	LBB0_6
; %bb.5:
	ldrsb	w23, [x21, #2]
	mov	x0, x23
	bl	_isalnum
	cbz	w0, LBB0_21
LBB0_6:
	add	x23, sp, #12
	add	x0, sp, #12
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	strb	wzr, [x23, x22]
Lloh0:
	adrp	x0, _snd_card_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _snd_card_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	add	x0, sp, #12
	bl	_snd_info_check_reserved_words
	cbz	w0, LBB0_18
; %bb.7:
Lloh2:
	adrp	x21, _snd_ecards_limit@GOTPAGE
Lloh3:
	ldr	x21, [x21, _snd_ecards_limit@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_13
; %bb.8:
	mov	x22, #0
Lloh4:
	adrp	x23, _snd_cards@GOTPAGE
Lloh5:
	ldr	x23, [x23, _snd_cards@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #1
	cmp	x22, x8
	b.hs	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	ldr	x9, [x9, x22, lsl #3]
	cbz	x9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x9]
	add	x1, sp, #12
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21]
	b	LBB0_9
LBB0_13:
	ldr	w0, [x20]
	add	x1, sp, #12
	bl	_strcpy
	mov	x0, x20
	bl	_snd_info_card_id_change
LBB0_14:
Lloh6:
	adrp	x0, _snd_card_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _snd_card_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	b	LBB0_25
LBB0_15:
	and	w8, w23, #0xff
	cmp	w8, #45
	b.eq	LBB0_2
; %bb.16:
	cmp	w8, #95
	b.eq	LBB0_2
	b	LBB0_23
LBB0_17:
	ldr	x8, [x23]
	ldr	x8, [x8, x22, lsl #3]
	cmp	x20, x8
	b.eq	LBB0_14
LBB0_18:
Lloh8:
	adrp	x0, _snd_card_mutex@GOTPAGE
Lloh9:
	ldr	x0, [x0, _snd_card_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh10:
	adrp	x8, _EEXIST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_24
LBB0_19:
	and	w8, w23, #0xff
	cmp	w8, #95
	b.eq	LBB0_4
; %bb.20:
	cmp	w8, #45
	b.eq	LBB0_4
	b	LBB0_23
LBB0_21:
	and	w8, w23, #0xff
	cmp	w8, #95
	b.eq	LBB0_6
; %bb.22:
	cmp	w8, #45
	b.eq	LBB0_6
LBB0_23:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_24:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_25:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_snd_card_mutex,4,2             ; @snd_card_mutex
	.comm	_EEXIST,8,3                     ; @EEXIST
	.comm	_snd_ecards_limit,8,3           ; @snd_ecards_limit
	.comm	_snd_cards,8,3                  ; @snd_cards
	.no_dead_strip	_card_id_store_attr
.subsections_via_symbols
