	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_cec_adap_log_addr
_stm32_cec_adap_log_addr:               ## @stm32_cec_adap_log_addr
	.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
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	movl	(%rbx), %edi
	movq	_CEC_CR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_CEC_XFER_TIMEOUT_MS@GOTPCREL(%rip), %rax
	imull	$1000, (%rax), %r9d             ## imm = 0x3E8
	movl	$1, %ecx
	movl	$100, %r8d
	callq	_regmap_read_poll_timeout
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	_CECEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	movq	_CEC_LOG_ADDR_INVALID@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	movq	_CEC_CFGR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_2:
	movl	$65536, %edx                    ## imm = 0x10000
	movl	%r14d, %ecx
	shll	%cl, %edx
	movl	(%rbx), %edi
	movq	_CEC_CFGR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edx, %ecx
LBB0_3:
	callq	_regmap_update_bits
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	(%r12), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_CR,4,2                     ## @CEC_CR
	.comm	_TXSOM,4,2                      ## @TXSOM
	.comm	_CEC_XFER_TIMEOUT_MS,4,2        ## @CEC_XFER_TIMEOUT_MS
	.comm	_CECEN,4,2                      ## @CECEN
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ## @CEC_LOG_ADDR_INVALID
	.comm	_CEC_CFGR,4,2                   ## @CEC_CFGR
	.comm	_OAR,4,2                        ## @OAR
	.no_dead_strip	_stm32_cec_adap_log_addr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_cec_adap_log_addr
_stm32_cec_adap_log_addr:               ; @stm32_cec_adap_log_addr
	.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, x1
	ldr	x20, [x0]
	ldr	w0, [x20]
Lloh0:
	adrp	x21, _CEC_CR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CEC_CR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _CEC_XFER_TIMEOUT_MS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CEC_XFER_TIMEOUT_MS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w9, #1000
	mul	w5, w8, w9
	mov	w3, #1
	mov	w4, #100
	bl	_regmap_read_poll_timeout
	ldr	w0, [x20]
	ldr	w1, [x21]
Lloh5:
	adrp	x22, _CECEN@GOTPAGE
Lloh6:
	ldr	x22, [x22, _CECEN@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w3, #0
	bl	_regmap_update_bits
Lloh7:
	adrp	x8, _CEC_LOG_ADDR_INVALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CEC_LOG_ADDR_INVALID@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _CEC_CFGR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CEC_CFGR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _OAR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OAR@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	w3, #0
	b	LBB0_3
LBB0_2:
	mov	w8, #65536
	lsl	w2, w8, w19
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _CEC_CFGR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CEC_CFGR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x3, x2
LBB0_3:
	bl	_regmap_update_bits
	ldr	w0, [x20]
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x3, x2
	bl	_regmap_update_bits
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_CR,4,2                     ; @CEC_CR
	.comm	_TXSOM,4,2                      ; @TXSOM
	.comm	_CEC_XFER_TIMEOUT_MS,4,2        ; @CEC_XFER_TIMEOUT_MS
	.comm	_CECEN,4,2                      ; @CECEN
	.comm	_CEC_LOG_ADDR_INVALID,4,2       ; @CEC_LOG_ADDR_INVALID
	.comm	_CEC_CFGR,4,2                   ; @CEC_CFGR
	.comm	_OAR,4,2                        ; @OAR
	.no_dead_strip	_stm32_cec_adap_log_addr
.subsections_via_symbols
