	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_dw_hdmi_probe
_snd_dw_hdmi_probe:                     ## @snd_dw_hdmi_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	8(%rdi), %r14
	movq	_HDMI_IH_MUTE_AHBDMAAUD_STAT0_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HDMI_IH_MUTE_AHBDMAAUD_STAT0@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_writeb_relaxed
	movq	_HDMI_REVISION_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r14), %rdi
	callq	_readb_relaxed
	movl	%eax, %r13d
	andl	$-17, %eax
	cmpl	$10, %eax
	jne	LBB0_1
## %bb.2:
	movq	_SNDRV_DEFAULT_IDX1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SNDRV_DEFAULT_STR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r9
	movq	%r12, %rdi
	movl	$48, %r8d
	callq	_snd_card_new
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax
	movq	(%rax), %rdi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	-48(%rbp), %rax
	movq	8(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	-48(%rbp), %rax
	movl	24(%rax), %edi
	movq	8(%rax), %rcx
	movl	(%r14), %r9d
	leaq	L_.str.2(%rip), %rdx
	movl	$4, %esi
	movl	%r13d, %r8d
	callq	_snprintf
	movq	-48(%rbp), %rax
	movq	16(%rax), %r12
	movq	%rax, 40(%r12)
	movups	(%r14), %xmm0
	movups	%xmm0, 24(%r12)
	movl	%r13d, (%r12)
	leaq	16(%r12), %rdi
	callq	_spin_lock_init
	movq	-48(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_snd_pcm_new
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	movq	-56(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	%r12, 8(%rax)
	movq	(%rax), %rdi
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$8, %edx
	callq	_strlcpy
	movq	-56(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_dw_hdmi_ops@GOTPCREL(%rip), %rdx
	callq	_snd_pcm_set_ops
	movq	-56(%rbp), %rdi
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	$131072, %ecx                   ## imm = 0x20000
	movl	$1048576, %r8d                  ## imm = 0x100000
	callq	_snd_pcm_lib_preallocate_pages_for_all
	movq	-48(%rbp), %rdi
	callq	_snd_card_register
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_snd_card_free
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDMI_IH_MUTE_AHBDMAAUD_STAT0_ALL,4,2 ## @HDMI_IH_MUTE_AHBDMAAUD_STAT0_ALL
	.comm	_HDMI_IH_MUTE_AHBDMAAUD_STAT0,8,3 ## @HDMI_IH_MUTE_AHBDMAAUD_STAT0
	.comm	_HDMI_REVISION_ID,8,3           ## @HDMI_REVISION_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dw-hdmi-audio: unknown revision 0x%02x\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SNDRV_DEFAULT_IDX1,4,2         ## @SNDRV_DEFAULT_IDX1
	.comm	_SNDRV_DEFAULT_STR1,4,2         ## @SNDRV_DEFAULT_STR1
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_DRIVER_NAME,8,3                ## @DRIVER_NAME
L_.str.1:                               ## @.str.1
	.asciz	"DW-HDMI"

L_.str.2:                               ## @.str.2
	.asciz	"%s rev 0x%02x, irq %d"

L_.str.3:                               ## @.str.3
	.asciz	"DW HDMI"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_snd_dw_hdmi_ops,4,2            ## @snd_dw_hdmi_ops
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ## @SNDRV_DMA_TYPE_DEV
	.no_dead_strip	_snd_dw_hdmi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_dw_hdmi_probe
_snd_dw_hdmi_probe:                     ; @snd_dw_hdmi_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldp	x20, x24, [x0]
Lloh0:
	adrp	x8, _HDMI_IH_MUTE_AHBDMAAUD_STAT0_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDMI_IH_MUTE_AHBDMAAUD_STAT0_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x24, #8]
Lloh3:
	adrp	x9, _HDMI_IH_MUTE_AHBDMAAUD_STAT0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDMI_IH_MUTE_AHBDMAAUD_STAT0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb_relaxed
	ldr	x8, [x24, #8]
Lloh6:
	adrp	x9, _HDMI_REVISION_ID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HDMI_REVISION_ID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readb_relaxed
	mov	x21, x0
	and	w8, w0, #0xffffffef
	cmp	w8, #10
	b.ne	LBB0_5
; %bb.1:
Lloh9:
	adrp	x8, _SNDRV_DEFAULT_IDX1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDRV_DEFAULT_IDX1@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _SNDRV_DEFAULT_STR1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SNDRV_DEFAULT_STR1@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	add	x5, sp, #8
	mov	x0, x20
	mov	w4, #48
	bl	_snd_card_new
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	x0, [x8]
Lloh18:
	adrp	x25, _DRIVER_NAME@GOTPAGE
Lloh19:
	ldr	x25, [x25, _DRIVER_NAME@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	w2, #8
	bl	_strlcpy
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #8
	bl	_strlcpy
	ldr	x8, [sp, #8]
	ldr	w0, [x8, #24]
	ldr	x3, [x8, #8]
	ldr	w5, [x24]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w1, #4
	mov	x4, x21
	bl	_snprintf
	ldr	x8, [sp, #8]
	ldr	x22, [x8, #16]
	str	x8, [x22, #40]
	ldr	q0, [x24]
	stur	q0, [x22, #24]
	str	w21, [x22]
	add	x0, x22, #16
	bl	_spin_lock_init
	ldr	x0, [sp, #8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x5, sp
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	bl	_snd_pcm_new
	tbnz	w0, #31, LBB0_7
; %bb.3:
	ldr	x8, [sp]
	str	x8, [x22, #8]
	str	x22, [x8, #8]
	ldr	x0, [x8]
	ldr	x1, [x25]
	mov	w2, #8
	bl	_strlcpy
	ldr	x0, [sp]
Lloh26:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, _snd_dw_hdmi_ops@GOTPAGE
Lloh30:
	ldr	x2, [x2, _snd_dw_hdmi_ops@GOTPAGEOFF]
	bl	_snd_pcm_set_ops
	ldr	x0, [sp]
Lloh31:
	adrp	x8, _SNDRV_DMA_TYPE_DEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SNDRV_DMA_TYPE_DEV@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x2, x20
	mov	w3, #131072
	mov	w4, #1048576
	bl	_snd_pcm_lib_preallocate_pages_for_all
	ldr	x0, [sp, #8]
	bl	_snd_card_register
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x22
	bl	_platform_set_drvdata
	mov	w23, #0
	b	LBB0_8
LBB0_5:
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
Lloh36:
	adrp	x8, _ENXIO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_8
LBB0_6:
	mov	x23, x0
	b	LBB0_8
LBB0_7:
	mov	x23, x0
	ldr	x0, [sp, #8]
	bl	_snd_card_free
LBB0_8:
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_HDMI_IH_MUTE_AHBDMAAUD_STAT0_ALL,4,2 ; @HDMI_IH_MUTE_AHBDMAAUD_STAT0_ALL
	.comm	_HDMI_IH_MUTE_AHBDMAAUD_STAT0,8,3 ; @HDMI_IH_MUTE_AHBDMAAUD_STAT0
	.comm	_HDMI_REVISION_ID,8,3           ; @HDMI_REVISION_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dw-hdmi-audio: unknown revision 0x%02x\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SNDRV_DEFAULT_IDX1,4,2         ; @SNDRV_DEFAULT_IDX1
	.comm	_SNDRV_DEFAULT_STR1,4,2         ; @SNDRV_DEFAULT_STR1
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_DRIVER_NAME,8,3                ; @DRIVER_NAME
l_.str.1:                               ; @.str.1
	.asciz	"DW-HDMI"

l_.str.2:                               ; @.str.2
	.asciz	"%s rev 0x%02x, irq %d"

l_.str.3:                               ; @.str.3
	.asciz	"DW HDMI"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_snd_dw_hdmi_ops,4,2            ; @snd_dw_hdmi_ops
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ; @SNDRV_DMA_TYPE_DEV
	.no_dead_strip	_snd_dw_hdmi_probe
.subsections_via_symbols
