	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_spi_probe
_wm831x_spi_probe:                      ## @wm831x_spi_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
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_spi_get_device_id
	cmpq	$0, 8(%r12)
	je	LBB0_5
## %bb.1:
	movq	_wm831x_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	(%rax), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r15, 8(%rbx)
	movl	%r13d, (%rbx)
	movq	_wm831x_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regmap_init_spi
	movl	%eax, 16(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	16(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_3:
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	addq	$4, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
LBB0_11:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wm831x_device_init             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wm831x_of_match,4,2            ## @wm831x_of_match
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to match device\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
	.comm	_wm831x_regmap_config,4,2       ## @wm831x_regmap_config
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate register map: %d\n"

	.no_dead_strip	_wm831x_spi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_spi_probe
_wm831x_spi_probe:                      ; @wm831x_spi_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	add	x21, x0, #8
	mov	x0, x21
	bl	_dev_get_platdata
	mov	x20, x0
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _wm831x_of_match@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wm831x_of_match@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_of_match_device
	cbz	x0, LBB0_6
LBB0_2:
	ldr	x23, [x0]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
Lloh6:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_spi_set_drvdata
	str	x21, [x22, #8]
	str	w23, [x22]
Lloh9:
	adrp	x1, _wm831x_regmap_config@GOTPAGE
Lloh10:
	ldr	x1, [x1, _wm831x_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_spi
	str	w0, [x22, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
	ldr	w0, [x22, #16]
	bl	_PTR_ERR
	mov	x19, x0
	ldr	x0, [x22, #8]
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	cbz	x20, LBB0_11
; %bb.10:
	add	x0, x22, #4
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
LBB0_11:
	ldr	w1, [x19]
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_wm831x_device_init
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_wm831x_of_match,4,2            ; @wm831x_of_match
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to match device\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
	.comm	_wm831x_regmap_config,4,2       ; @wm831x_regmap_config
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate register map: %d\n"

	.no_dead_strip	_wm831x_spi_probe
.subsections_via_symbols
