	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucb1400_core_probe
_ucb1400_core_probe:                    ## @ucb1400_core_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_dev_get_platdata
	movq	%rax, %r14
	leaq	-120(%rbp), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%rbx, %rdi
	callq	_to_ac97_t
	movq	%rax, %r12
	movq	_UCB_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ucb1400_reg_read
	movq	%rax, -120(%rbp)
	movq	_UCB_ID_1400@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movq	%r12, -64(%rbp)
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	16(%r14), %eax
	movl	%eax, -48(%rbp)
	movl	12(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	8(%r14), %eax
	movl	%eax, -56(%rbp)
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movl	$-1, %esi
	callq	_platform_device_alloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	-80(%rbp), %rsi
	movq	%rax, %rdi
	movl	$40, %edx
	callq	_platform_device_add_data
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.10:
	movq	(%r15), %rdi
	callq	_platform_device_add
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.11:
	movq	%r12, -104(%rbp)
	testq	%r14, %r14
	je	LBB0_12
## %bb.13:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	movq	$-1, %rax
	cmovnsq	%rcx, %rax
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_23
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_22
LBB0_12:
	movl	$-1, %eax
LBB0_14:
	movl	%eax, -112(%rbp)
	leaq	L_.str.1(%rip), %rdi
	movl	$-1, %esi
	callq	_platform_device_alloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	leaq	-120(%rbp), %rsi
	movq	%rax, %rdi
	movl	$40, %edx
	callq	_platform_device_add_data
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	8(%r15), %rdi
	callq	_platform_device_add
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_18
LBB0_19:
	movq	8(%r15), %rdi
	callq	_platform_device_put
	jmp	LBB0_20
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_20:
	movq	(%r15), %rdi
	callq	_platform_device_del
LBB0_21:
	movq	(%r15), %rdi
	callq	_platform_device_put
LBB0_22:
	movq	%r15, %rdi
	callq	_kfree
LBB0_23:
	movl	%r13d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%r13d, %r13d
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_UCB_ID,4,2                     ## @UCB_ID
	.comm	_UCB_ID_1400,8,3                ## @UCB_ID_1400
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ucb1400_gpio"

L_.str.1:                               ## @.str.1
	.asciz	"ucb1400_ts"

	.no_dead_strip	_ucb1400_core_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucb1400_core_probe
_ucb1400_core_probe:                    ; @ucb1400_core_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x0
	bl	_dev_get_platdata
	mov	x20, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x21
	bl	_to_ac97_t
	mov	x22, x0
Lloh3:
	adrp	x8, _UCB_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UCB_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ucb1400_reg_read
	str	x0, [sp, #40]
Lloh6:
	adrp	x8, _UCB_ID_1400@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UCB_ID_1400@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.2:
	str	x22, [sp, #16]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	w8, [x20, #16]
	str	w8, [sp, #32]
	ldr	d0, [x20, #8]
	str	d0, [sp, #24]
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #-1
	bl	_platform_device_alloc
	str	x0, [x19]
	cbz	x0, LBB0_11
; %bb.5:
	mov	x1, sp
	mov	w2, #40
	bl	_platform_device_add_data
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.6:
	ldr	x0, [x19]
	bl	_platform_device_add
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.7:
	str	x22, [sp, #56]
	cbz	x20, LBB0_13
; %bb.8:
	ldr	x8, [x20]
	cmp	x8, #0
	csinv	x8, x8, xzr, ge
	b	LBB0_14
LBB0_9:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_22
LBB0_10:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_21
LBB0_13:
	mov	w8, #-1
LBB0_14:
	str	w8, [sp, #48]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #-1
	bl	_platform_device_alloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.15:
	add	x1, sp, #40
	mov	w2, #40
	bl	_platform_device_add_data
	mov	x21, x0
	cbnz	w0, LBB0_17
; %bb.16:
	ldr	x0, [x19, #8]
	bl	_platform_device_add
	mov	x21, x0
	cbz	w0, LBB0_22
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_platform_device_put
	b	LBB0_19
LBB0_18:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_19:
	ldr	x0, [x19]
	bl	_platform_device_del
LBB0_20:
	ldr	x0, [x19]
	bl	_platform_device_put
LBB0_21:
	mov	x0, x19
	bl	_kfree
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_UCB_ID,4,2                     ; @UCB_ID
	.comm	_UCB_ID_1400,8,3                ; @UCB_ID_1400
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ucb1400_gpio"

l_.str.1:                               ; @.str.1
	.asciz	"ucb1400_ts"

	.no_dead_strip	_ucb1400_core_probe
.subsections_via_symbols
