	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ad1848_probe
_snd_ad1848_probe:                      ## @snd_ad1848_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_jiffies@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_msecs_to_jiffies
	movq	%rax, %rbx
	movq	_REGSEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_CS4231P
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wss_inb
	movq	_CS4231_INIT@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.1:
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cond_resched
	movl	(%r15), %edi
	callq	_CS4231P
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wss_inb
	testl	%eax, (%r13)
	jne	LBB0_2
LBB0_5:
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_CS4231_MISC_INFO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_wss_dout
	movq	_CS4231_RIGHT_INPUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$69, %edx
	callq	_snd_wss_dout
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_wss_in
	movzbl	%al, %eax
	cmpl	$69, %eax
	jne	LBB0_6
## %bb.8:
	movq	_CS4231_LEFT_INPUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	$170, %edx
	callq	_snd_wss_dout
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_snd_wss_in
	movzbl	%al, %eax
	movq	_CS4231_ENABLE_MIC_GAIN@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	orl	%eax, %ecx
	xorl	%ebx, %ebx
	cmpl	$170, %ecx
	je	LBB0_11
## %bb.9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r15d
	jmp	LBB0_26
LBB0_6:
	movq	_CS4231_ENABLE_MIC_GAIN@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	cmpl	$69, %eax
	jne	LBB0_7
## %bb.10:
	movq	_WSS_HW_AD1847@GOTPCREL(%rip), %rax
	movzwl	(%rax), %ebx
LBB0_11:
	movq	_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_CS4231P
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wss_inb
	movl	(%r15), %edi
	callq	_CS4231P
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_wss_outb
	xorl	%eax, %eax
	callq	_mb
	movq	_WSS_HW_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	movq	_WSS_HW_DETECT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.12:
	testw	%bx, %bx
	je	LBB0_14
## %bb.13:
	movzwl	%bx, %eax
	movl	%eax, (%r12)
	jmp	LBB0_26
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_27
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_26
LBB0_14:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_snd_wss_in
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	_CS4231_MODE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_snd_wss_dout
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_wss_in
	movl	%eax, %r13d
	addl	$16, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_wss_in
	cmpl	%eax, %r13d
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_16 Depth=1
	addl	$-15, %ebx
	cmpl	$16, %ebx
	jne	LBB0_16
## %bb.20:
	testb	$-128, %r15b
	jne	LBB0_21
## %bb.22:
	movq	_WSS_HW_AD1848@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_17:
	andl	$15, %r15d
	cmpl	$10, %r15d
	movq	_CS4231_MISC_INFO@GOTPCREL(%rip), %rbx
	jne	LBB0_25
## %bb.18:
	movq	_CS4231_VERSION@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_wss_dout
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_snd_wss_in
	testb	$-25, %al
	jne	LBB0_25
## %bb.19:
	movq	_WSS_HW_CMI8330@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_21:
	movq	_WSS_HW_CS4248@GOTPCREL(%rip), %rax
LBB0_23:
	movq	_CS4231_MISC_INFO@GOTPCREL(%rip), %rbx
LBB0_24:
	movzwl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_25:
	movl	(%rbx), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_snd_wss_dout
LBB0_26:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_27:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_REGSEL,4,2                     ## @REGSEL
	.comm	_CS4231_INIT,4,2                ## @CS4231_INIT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CS4231_MISC_INFO,4,2           ## @CS4231_MISC_INFO
	.comm	_CS4231_RIGHT_INPUT,4,2         ## @CS4231_RIGHT_INPUT
	.comm	_CS4231_ENABLE_MIC_GAIN,1,0     ## @CS4231_ENABLE_MIC_GAIN
	.comm	_WSS_HW_AD1847,2,1              ## @WSS_HW_AD1847
	.comm	_CS4231_LEFT_INPUT,4,2          ## @CS4231_LEFT_INPUT
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_WSS_HW_TYPE_MASK,4,2           ## @WSS_HW_TYPE_MASK
	.comm	_WSS_HW_DETECT,4,2              ## @WSS_HW_DETECT
	.comm	_CS4231_MODE2,4,2               ## @CS4231_MODE2
	.comm	_CS4231_VERSION,4,2             ## @CS4231_VERSION
	.comm	_WSS_HW_CMI8330,2,1             ## @WSS_HW_CMI8330
	.comm	_WSS_HW_CS4248,2,1              ## @WSS_HW_CS4248
	.comm	_WSS_HW_AD1848,2,1              ## @WSS_HW_AD1848
	.no_dead_strip	_snd_ad1848_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ad1848_probe
_snd_ad1848_probe:                      ; @snd_ad1848_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x21, _jiffies@GOTPAGE
Lloh1:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x24, [x21]
	mov	w0, #1000
	bl	_msecs_to_jiffies
	mov	x20, x0
Lloh2:
	adrp	x22, _REGSEL@GOTPAGE
Lloh3:
	ldr	x22, [x22, _REGSEL@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_CS4231P
	mov	x1, x0
	mov	x0, x19
	bl	_wss_inb
Lloh4:
	adrp	x23, _CS4231_INIT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CS4231_INIT@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	add	x20, x20, x24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_time_after
	cbnz	x0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_cond_resched
	ldr	w0, [x22]
	bl	_CS4231P
	mov	x1, x0
	mov	x0, x19
	bl	_wss_inb
	ldr	w8, [x23]
	tst	w8, w0
	b.ne	LBB0_2
LBB0_4:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh6:
	adrp	x24, _CS4231_MISC_INFO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CS4231_MISC_INFO@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_wss_dout
Lloh8:
	adrp	x21, _CS4231_RIGHT_INPUT@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CS4231_RIGHT_INPUT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #69
	bl	_snd_wss_dout
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_wss_in
	and	w8, w0, #0xff
	cmp	w8, #69
	b.ne	LBB0_7
; %bb.5:
Lloh10:
	adrp	x21, _CS4231_LEFT_INPUT@GOTPAGE
Lloh11:
	ldr	x21, [x21, _CS4231_LEFT_INPUT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #170
	bl	_snd_wss_dout
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_wss_in
	and	w8, w0, #0xff
Lloh12:
	adrp	x9, _CS4231_ENABLE_MIC_GAIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CS4231_ENABLE_MIC_GAIN@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w8, w9
	cmp	w8, #170
	b.ne	LBB0_12
; %bb.6:
	mov	w22, #0
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x9, _CS4231_ENABLE_MIC_GAIN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CS4231_ENABLE_MIC_GAIN@GOTPAGEOFF]
	ldrb	w9, [x9]
	bic	w8, w8, w9
	cmp	w8, #69
	b.ne	LBB0_12
; %bb.8:
Lloh16:
	adrp	x8, _WSS_HW_AD1847@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WSS_HW_AD1847@GOTPAGEOFF]
	ldrh	w22, [x8]
LBB0_9:
Lloh18:
	adrp	x21, _STATUS@GOTPAGE
Lloh19:
	ldr	x21, [x21, _STATUS@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_CS4231P
	mov	x1, x0
	mov	x0, x19
	bl	_wss_inb
	ldr	w0, [x21]
	bl	_CS4231P
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_wss_outb
	bl	_mb
	mov	w21, #0
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _WSS_HW_TYPE_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _WSS_HW_TYPE_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh23:
	adrp	x9, _WSS_HW_DETECT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _WSS_HW_DETECT@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.10:
	cbz	w22, LBB0_16
; %bb.11:
	mov	w21, #0
	str	w22, [x19]
	b	LBB0_13
LBB0_12:
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_15
LBB0_14:
Lloh29:
	adrp	x8, _ENODEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w1, [x24]
	mov	x0, x19
	bl	_snd_wss_in
	mov	x21, x0
	ldr	w1, [x24]
Lloh32:
	adrp	x8, _CS4231_MODE2@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CS4231_MODE2@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_snd_wss_dout
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_snd_wss_in
	mov	x23, x0
	add	w22, w22, #16
	mov	x0, x19
	mov	x1, x22
	bl	_snd_wss_in
	cmp	w23, w0
	b.ne	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	sub	w22, w22, #15
	cmp	w22, #16
	b.ne	LBB0_17
; %bb.19:
Lloh35:
	adrp	x8, _WSS_HW_CS4248@GOTPAGE
Lloh36:
	ldr	x8, [x8, _WSS_HW_CS4248@GOTPAGEOFF]
Lloh37:
	adrp	x9, _WSS_HW_AD1848@GOTPAGE
Lloh38:
	ldr	x9, [x9, _WSS_HW_AD1848@GOTPAGEOFF]
	tst	w21, #0x80
	csel	x8, x9, x8, eq
LBB0_20:
	ldrh	w8, [x8]
	str	w8, [x19]
	b	LBB0_23
LBB0_21:
	and	w8, w21, #0xf
	cmp	w8, #10
	b.ne	LBB0_23
; %bb.22:
Lloh39:
	adrp	x21, _CS4231_VERSION@GOTPAGE
Lloh40:
	ldr	x21, [x21, _CS4231_VERSION@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_wss_dout
	ldr	w1, [x21]
	mov	x0, x19
	bl	_snd_wss_in
	mov	w8, #231
	tst	w0, w8
	b.eq	LBB0_24
LBB0_23:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_wss_dout
	mov	w21, #0
	b	LBB0_13
LBB0_24:
Lloh41:
	adrp	x8, _WSS_HW_CMI8330@GOTPAGE
Lloh42:
	ldr	x8, [x8, _WSS_HW_CMI8330@GOTPAGEOFF]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_REGSEL,4,2                     ; @REGSEL
	.comm	_CS4231_INIT,4,2                ; @CS4231_INIT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CS4231_MISC_INFO,4,2           ; @CS4231_MISC_INFO
	.comm	_CS4231_RIGHT_INPUT,4,2         ; @CS4231_RIGHT_INPUT
	.comm	_CS4231_ENABLE_MIC_GAIN,1,0     ; @CS4231_ENABLE_MIC_GAIN
	.comm	_WSS_HW_AD1847,2,1              ; @WSS_HW_AD1847
	.comm	_CS4231_LEFT_INPUT,4,2          ; @CS4231_LEFT_INPUT
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_WSS_HW_TYPE_MASK,4,2           ; @WSS_HW_TYPE_MASK
	.comm	_WSS_HW_DETECT,4,2              ; @WSS_HW_DETECT
	.comm	_CS4231_MODE2,4,2               ; @CS4231_MODE2
	.comm	_CS4231_VERSION,4,2             ; @CS4231_VERSION
	.comm	_WSS_HW_CMI8330,2,1             ; @WSS_HW_CMI8330
	.comm	_WSS_HW_CS4248,2,1              ; @WSS_HW_CS4248
	.comm	_WSS_HW_AD1848,2,1              ; @WSS_HW_AD1848
	.no_dead_strip	_snd_ad1848_probe
.subsections_via_symbols
