	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_probe
_adv748x_probe:                         ## @adv748x_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, %rbx
	movl	4(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_mutex_init
	movq	%rbx, 64(%r13)
	movq	%rbx, 56(%r13)
	movq	48(%r13), %rax
	movq	_ADV748X_PAGE_IO@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	%rbx, (%rax,%rcx,8)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	movq	%r13, 40(%r13)
	movq	%r13, 24(%r13)
	movq	_ADV748X_PAGE_TXA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r13)
	movq	_ADV748X_PAGE_TXB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r13)
	movq	_ADV748X_PORT_TXA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13)
	movq	_ADV748X_PORT_TXB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movq	%r13, %rdi
	callq	_adv748x_parse_dt
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_adv_err
	jmp	LBB0_30
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_31
LBB0_7:
	movq	(%r15), %rsi
	movq	%r13, %rdi
	callq	_adv748x_configure_regmap
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	callq	_adv748x_identify_chip
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movq	%r13, %rdi
	callq	_adv_err
LBB0_29:
	movq	%r13, %rdi
	callq	_adv748x_dt_cleanup
LBB0_30:
	movq	%r13, %rdi
	callq	_mutex_destroy
LBB0_31:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r13, %rdi
	callq	_adv748x_initialise_clients
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_15:
	movq	%r13, %rdi
	callq	_adv748x_reset
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_17:
	leaq	4(%r13), %r15
	movq	%r15, %rdi
	callq	_adv748x_hdmi_init
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
LBB0_14:
	movq	%r13, %rdi
	callq	_adv_err
LBB0_28:
	movq	%r13, %rdi
	callq	_adv748x_unregister_clients
	jmp	LBB0_29
LBB0_19:
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_adv748x_afe_init
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_adv_err
	jmp	LBB0_27
LBB0_21:
	leaq	16(%r13), %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_adv748x_csi2_init
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movl	%eax, %r14d
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_adv_err
	jmp	LBB0_26
LBB0_23:
	movq	%r13, %rsi
	addq	$32, %rsi
	movq	%r13, %rdi
	callq	_adv748x_csi2_init
	testl	%eax, %eax
	je	LBB0_24
## %bb.25:
	movl	%eax, %r14d
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_adv_err
	movq	%rbx, %rdi
	callq	_adv748x_csi2_cleanup
LBB0_26:
	movq	%r12, %rdi
	callq	_adv748x_afe_cleanup
LBB0_27:
	movq	%r15, %rdi
	callq	_adv748x_hdmi_cleanup
	jmp	LBB0_28
LBB0_24:
	xorl	%r14d, %r14d
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ADV748X_PAGE_IO,8,3            ## @ADV748X_PAGE_IO
	.comm	_ADV748X_PAGE_TXA,4,2           ## @ADV748X_PAGE_TXA
	.comm	_ADV748X_PAGE_TXB,4,2           ## @ADV748X_PAGE_TXB
	.comm	_ADV748X_PORT_TXA,4,2           ## @ADV748X_PORT_TXA
	.comm	_ADV748X_PORT_TXB,4,2           ## @ADV748X_PORT_TXB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to parse device tree"

L_.str.1:                               ## @.str.1
	.asciz	"Error configuring IO regmap region"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to identify chip"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to setup client regmap pages"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to reset hardware"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to probe HDMI"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to probe AFE"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to probe TXA"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to probe TXB"

	.no_dead_strip	_adv748x_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_probe
_adv748x_probe:                         ; @adv748x_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	x20, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	bl	_mutex_init
	stp	x20, x20, [x19, #56]
	ldr	x8, [x19, #48]
Lloh6:
	adrp	x23, _ADV748X_PAGE_IO@GOTPAGE
Lloh7:
	ldr	x23, [x23, _ADV748X_PAGE_IO@GOTPAGEOFF]
	ldr	x9, [x23]
	str	x20, [x8, x9, lsl #3]
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
Lloh8:
	adrp	x8, _ADV748X_PORT_TXB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADV748X_PORT_TXB@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	x22, x19
	str	w8, [x22, #32]!
	str	x19, [x19, #40]
Lloh11:
	adrp	x8, _ADV748X_PORT_TXA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ADV748X_PORT_TXA@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mov	x21, x19
	str	w8, [x21, #16]!
	str	x19, [x19, #24]
Lloh14:
	adrp	x8, _ADV748X_PAGE_TXA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADV748X_PAGE_TXA@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #20]
Lloh17:
	adrp	x8, _ADV748X_PAGE_TXB@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ADV748X_PAGE_TXB@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	mov	x0, x19
	bl	_adv748x_parse_dt
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_adv_err
	b	LBB0_13
LBB0_4:
Lloh22:
	adrp	x8, _EIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_7:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_adv748x_configure_regmap
	cbz	w0, LBB0_9
; %bb.8:
	mov	x20, x0
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_adv748x_identify_chip
	cbz	w0, LBB0_15
; %bb.10:
	mov	x20, x0
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_adv_err
LBB0_12:
	mov	x0, x19
	bl	_adv748x_dt_cleanup
LBB0_13:
	mov	x0, x19
	bl	_mutex_destroy
LBB0_14:
	mov	x0, x20
	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_15:
	mov	x0, x19
	bl	_adv748x_initialise_clients
	cbz	w0, LBB0_17
; %bb.16:
	mov	x20, x0
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_21
LBB0_17:
	mov	x0, x19
	bl	_adv748x_reset
	cbz	w0, LBB0_19
; %bb.18:
	mov	x20, x0
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_19:
	add	x23, x19, #4
	mov	x0, x23
	bl	_adv748x_hdmi_init
	cbz	w0, LBB0_23
; %bb.20:
	mov	x20, x0
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_adv_err
LBB0_22:
	mov	x0, x19
	bl	_adv748x_unregister_clients
	b	LBB0_12
LBB0_23:
	add	x24, x19, #8
	mov	x0, x24
	bl	_adv748x_afe_init
	cbz	w0, LBB0_25
; %bb.24:
	mov	x20, x0
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_adv_err
	b	LBB0_30
LBB0_25:
	mov	x0, x19
	mov	x1, x21
	bl	_adv748x_csi2_init
	cbz	w0, LBB0_27
; %bb.26:
	mov	x20, x0
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_adv_err
	b	LBB0_29
LBB0_27:
	mov	x0, x19
	mov	x1, x22
	bl	_adv748x_csi2_init
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.28:
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_adv_err
	mov	x0, x21
	bl	_adv748x_csi2_cleanup
LBB0_29:
	mov	x0, x24
	bl	_adv748x_afe_cleanup
LBB0_30:
	mov	x0, x23
	bl	_adv748x_hdmi_cleanup
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ADV748X_PAGE_IO,8,3            ; @ADV748X_PAGE_IO
	.comm	_ADV748X_PAGE_TXA,4,2           ; @ADV748X_PAGE_TXA
	.comm	_ADV748X_PAGE_TXB,4,2           ; @ADV748X_PAGE_TXB
	.comm	_ADV748X_PORT_TXA,4,2           ; @ADV748X_PORT_TXA
	.comm	_ADV748X_PORT_TXB,4,2           ; @ADV748X_PORT_TXB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to parse device tree"

l_.str.1:                               ; @.str.1
	.asciz	"Error configuring IO regmap region"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to identify chip"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to setup client regmap pages"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to reset hardware"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to probe HDMI"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to probe AFE"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to probe TXA"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to probe TXB"

	.no_dead_strip	_adv748x_probe
.subsections_via_symbols
