	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _wm97xx_probe
__wm97xx_probe:                         ## @_wm97xx_probe
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$32, %rdi
	callq	_mutex_init
	movl	24(%rbx), %edi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	_AC97_VENDOR_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wm97xx_reg_read
	movq	_WM97XX_ID1@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_1
## %bb.2:
	movq	_AC97_VENDOR_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wm97xx_reg_read
	movl	%eax, (%rbx)
	movq	_WM97xx_GENERIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movl	24(%rbx), %edi
	movzbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movl	24(%rbx), %edi
	movzbl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movl	24(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
LBB0_3:
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_VENDOR_ID1,4,2            ## @AC97_VENDOR_ID1
	.comm	_WM97XX_ID1,4,2                 ## @WM97XX_ID1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device with vendor %04x is not a wm97xx\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_AC97_VENDOR_ID2,4,2            ## @AC97_VENDOR_ID2
	.comm	_WM97xx_GENERIC,4,2             ## @WM97xx_GENERIC
L_.str.1:                               ## @.str.1
	.asciz	"detected a wm97%02x codec\n"

L_.str.2:                               ## @.str.2
	.asciz	"Support for wm97%02x not compiled in.\n"

	.comm	_AC97_GPIO_CFG,4,2              ## @AC97_GPIO_CFG
	.comm	_AC97_GPIO_POLARITY,4,2         ## @AC97_GPIO_POLARITY
	.comm	_AC97_GPIO_STATUS,4,2           ## @AC97_GPIO_STATUS
	.comm	_AC97_GPIO_STICKY,4,2           ## @AC97_GPIO_STICKY
	.comm	_AC97_GPIO_WAKEUP,4,2           ## @AC97_GPIO_WAKEUP
	.comm	_AC97_MISC_AFE,4,2              ## @AC97_MISC_AFE
	.comm	_wm9705_codec,8,3               ## @wm9705_codec
	.comm	_wm9712_codec,8,3               ## @wm9712_codec
	.comm	_wm9713_codec,8,3               ## @wm9713_codec
	.no_dead_strip	__wm97xx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _wm97xx_probe
__wm97xx_probe:                         ; @_wm97xx_probe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #32
	bl	_mutex_init
	ldr	w0, [x19, #24]
	mov	x1, x19
	bl	_dev_set_drvdata
Lloh0:
	adrp	x8, _AC97_VENDOR_ID1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC97_VENDOR_ID1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm97xx_reg_read
	mov	x2, x0
Lloh3:
	adrp	x8, _WM97XX_ID1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM97XX_ID1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AC97_VENDOR_ID2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC97_VENDOR_ID2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm97xx_reg_read
	str	w0, [x19]
Lloh9:
	adrp	x8, _WM97xx_GENERIC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM97xx_GENERIC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	ldr	w8, [x19, #24]
	and	w2, w0, #0xff
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_info
	ldr	w0, [x19, #24]
	ldrb	w2, [x19]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #24]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_3:
	bl	_dev_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_VENDOR_ID1,4,2            ; @AC97_VENDOR_ID1
	.comm	_WM97XX_ID1,4,2                 ; @WM97XX_ID1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device with vendor %04x is not a wm97xx\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_AC97_VENDOR_ID2,4,2            ; @AC97_VENDOR_ID2
	.comm	_WM97xx_GENERIC,4,2             ; @WM97xx_GENERIC
l_.str.1:                               ; @.str.1
	.asciz	"detected a wm97%02x codec\n"

l_.str.2:                               ; @.str.2
	.asciz	"Support for wm97%02x not compiled in.\n"

	.comm	_AC97_GPIO_CFG,4,2              ; @AC97_GPIO_CFG
	.comm	_AC97_GPIO_POLARITY,4,2         ; @AC97_GPIO_POLARITY
	.comm	_AC97_GPIO_STATUS,4,2           ; @AC97_GPIO_STATUS
	.comm	_AC97_GPIO_STICKY,4,2           ; @AC97_GPIO_STICKY
	.comm	_AC97_GPIO_WAKEUP,4,2           ; @AC97_GPIO_WAKEUP
	.comm	_AC97_MISC_AFE,4,2              ; @AC97_MISC_AFE
	.comm	_wm9705_codec,8,3               ; @wm9705_codec
	.comm	_wm9712_codec,8,3               ; @wm9712_codec
	.comm	_wm9713_codec,8,3               ; @wm9713_codec
	.no_dead_strip	__wm97xx_probe
.subsections_via_symbols
