	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_probe
_dw_probe:                              ## @dw_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_device_get_match_data
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$24, %edx
	callq	_devm_kmemdup
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r14
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 36(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	36(%r14), %edi
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rax, %rbx
	jmp	LBB0_20
LBB0_11:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_coerce_mask_and_coherent
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.12:
	movq	16(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	%r12, %rdi
	callq	_dev_get_platdata
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%r12, %rdi
	callq	_dw_dma_parse_dt
	movq	%rax, 16(%r15)
LBB0_15:
	movq	%r12, 16(%r14)
	movl	4(%r12), %ecx
	movl	%ecx, 32(%r14)
	movq	%rax, 24(%r14)
	movq	%r14, 8(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	8(%r14), %edi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.16:
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:
	movq	%r12, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_pm_runtime_disable
	movl	8(%r14), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_20
LBB0_18:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movl	12(%r14), %edi
	callq	_dw_dma_of_controller_register
	movl	12(%r14), %edi
	callq	_dw_dma_acpi_controller_register
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hclk"

	.no_dead_strip	_dw_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_probe
_dw_probe:                              ; @dw_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_device_get_match_data
	cbz	x0, LBB0_8
; %bb.1:
	mov	x1, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, x19
	mov	w2, #24
	bl	_devm_kmemdup
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	ldr	w2, [x20]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20]
	tbnz	x0, #63, LBB0_11
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x20, #36]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.5:
	ldr	w0, [x20, #36]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x22, x0
	b	LBB0_10
LBB0_12:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_dma_coerce_mask_and_coherent
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.13:
	ldr	x0, [x21, #16]
	cbnz	x0, LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_dev_get_platdata
	str	x0, [x21, #16]
	cbnz	x0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_dw_dma_parse_dt
	str	x0, [x21, #16]
LBB0_16:
	ldr	w8, [x19, #4]
	str	w8, [x20, #32]
	stp	x19, x0, [x20, #16]
	str	x20, [x21, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #8]
	cbnz	x8, LBB0_6
; %bb.17:
	bl	_clk_prepare_enable
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.18:
	mov	x0, x19
	bl	_pm_runtime_enable
	ldr	x8, [x21]
	mov	x0, x20
	blr	x8
	mov	x22, x0
	cbz	w0, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_pm_runtime_disable
	ldr	w0, [x20, #8]
	bl	_clk_disable_unprepare
	b	LBB0_10
LBB0_20:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	w0, [x20, #12]
	bl	_dw_dma_of_controller_register
	ldr	w0, [x20, #12]
	bl	_dw_dma_acpi_controller_register
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hclk"

	.no_dead_strip	_dw_probe
.subsections_via_symbols
