	.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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$64, %rdi
	callq	_mutex_init
	movq	%r14, 48(%r15)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_dev_set_drvdata
	movq	%r14, %rdi
	callq	_to_ac97_t
	movl	%eax, 60(%r15)
	movq	_AC97_VENDOR_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm97xx_reg_read
	movq	_WM97XX_ID1@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_AC97_VENDOR_ID2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_wm97xx_reg_read
	movl	%eax, (%r15)
	movq	_WM97xx_GENERIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%r15)
	movq	48(%r15), %rdi
	movzbl	%al, %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	48(%r15), %rdi
	movzbl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
LBB0_5:
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_kfree
LBB0_6:
	negl	%ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.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	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_abs_p,8,3                      ## @abs_p
	.comm	_abs_x,8,3                      ## @abs_x
	.comm	_abs_y,8,3                      ## @abs_y
	.comm	_wm9705_codec,8,3               ## @wm9705_codec
	.comm	_wm9712_codec,8,3               ## @wm9712_codec
	.comm	_wm9713_codec,8,3               ## @wm9713_codec
	.comm	_wm97xx_ts_input_close,4,2      ## @wm97xx_ts_input_close
	.comm	_wm97xx_ts_input_open,4,2       ## @wm97xx_ts_input_open
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #64
	bl	_mutex_init
	str	x20, [x19, #48]
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x20
	bl	_to_ac97_t
	str	w0, [x19, #60]
Lloh3:
	adrp	x8, _AC97_VENDOR_ID1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC97_VENDOR_ID1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm97xx_reg_read
	mov	x2, x0
Lloh6:
	adrp	x8, _WM97XX_ID1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM97XX_ID1@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _AC97_VENDOR_ID2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC97_VENDOR_ID2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm97xx_reg_read
	str	w0, [x19]
Lloh12:
	adrp	x8, _WM97xx_GENERIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM97xx_GENERIC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #56]
	ldr	x8, [x19, #48]
	and	w2, w0, #0xff
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_info
	ldr	x0, [x19, #48]
	ldrb	w2, [x19]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w20, [x8]
	b	LBB0_6
LBB0_4:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
LBB0_5:
	bl	_dev_err
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_kfree
LBB0_6:
	neg	w0, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.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	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.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	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_abs_p,8,3                      ; @abs_p
	.comm	_abs_x,8,3                      ; @abs_x
	.comm	_abs_y,8,3                      ; @abs_y
	.comm	_wm9705_codec,8,3               ; @wm9705_codec
	.comm	_wm9712_codec,8,3               ; @wm9712_codec
	.comm	_wm9713_codec,8,3               ; @wm9713_codec
	.comm	_wm97xx_ts_input_close,4,2      ; @wm97xx_ts_input_close
	.comm	_wm97xx_ts_input_open,4,2       ; @wm97xx_ts_input_open
	.no_dead_strip	_wm97xx_probe
.subsections_via_symbols
