	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cec_s_phys_addr              ## -- Begin function __cec_s_phys_addr
	.p2align	4, 0x90
___cec_s_phys_addr:                     ## @__cec_s_phys_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	%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
	cmpq	%rsi, (%rdi)
	je	LBB0_21
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_CEC_PHYS_ADDR_INVALID@GOTPCREL(%rip), %r13
	cmpq	%rsi, (%r13)
	je	LBB0_3
## %bb.2:
	cmpq	$0, 32(%rbx)
	jne	LBB0_21
LBB0_3:
	movq	%r15, %rdi
	callq	_cec_phys_addr_exp
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	callq	_dprintk
	movq	(%r13), %rax
	cmpq	%r15, %rax
	je	LBB0_5
## %bb.4:
	cmpq	%rax, (%rbx)
	je	LBB0_11
LBB0_5:
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_cec_post_state_event
	movq	%rbx, %rdi
	callq	_cec_adap_unconfigure
	cmpq	$0, 56(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_adap_monitor_all_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_call_op
	movq	%rax, %rdi
	callq	_WARN_ON
LBB0_7:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpq	$0, 48(%rbx)
	jne	LBB0_9
## %bb.8:
	leaq	28(%rbx), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movq	40(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rax, %rdi
	callq	_WARN_ON
	movl	$0, 8(%rbx)
	leaq	64(%rbx), %rdi
	callq	_wake_up_interruptible
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
	cmpq	%r15, (%r13)
	jne	LBB0_11
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movabsq	$1095216660480, %rax            ## imm = 0xFF00000000
	movq	%rax, 8(%rbx)
	cmpq	$0, 48(%rbx)
	jne	LBB0_13
## %bb.12:
	leaq	28(%rbx), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_14
LBB0_13:
	movq	40(%rbx), %rax
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_19
LBB0_14:
	cmpq	$0, 56(%rbx)
	je	LBB0_20
## %bb.15:
	movq	_adap_monitor_all_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_call_op
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	cmpq	$0, 48(%rbx)
	jne	LBB0_18
## %bb.17:
	leaq	28(%rbx), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_19
LBB0_18:
	movq	40(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*(%rax)
	movq	%rax, %rdi
	callq	_WARN_ON
LBB0_19:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_20:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r15, (%rbx)
	movq	%rbx, %rdi
	callq	_cec_post_state_event
	cmpq	$0, 16(%rbx)
	je	LBB0_21
## %bb.22:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cec_claim_log_addrs            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CEC_PHYS_ADDR_INVALID,8,3      ## @CEC_PHYS_ADDR_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"new physical address %x.%x.%x.%x\n"

	.comm	_adap_monitor_all_enable,4,2    ## @adap_monitor_all_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___cec_s_phys_addr              ; -- Begin function __cec_s_phys_addr
	.p2align	2
___cec_s_phys_addr:                     ; @__cec_s_phys_addr
	.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
	ldr	x8, [x0]
	cmp	x8, x1
	b.eq	LBB0_11
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _CEC_PHYS_ADDR_INVALID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CEC_PHYS_ADDR_INVALID@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x1
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_11
LBB0_3:
	mov	x0, x21
	bl	_cec_phys_addr_exp
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	ldr	x8, [x23]
	cmp	x8, x21
	b.eq	LBB0_5
; %bb.4:
	ldr	x9, [x19]
	cmp	x9, x8
	b.eq	LBB0_12
LBB0_5:
	str	x8, [x19]
	mov	x0, x19
	bl	_cec_post_state_event
	mov	x0, x19
	bl	_cec_adap_unconfigure
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _adap_monitor_all_enable@GOTPAGE
Lloh5:
	ldr	x8, [x8, _adap_monitor_all_enable@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_call_op
	bl	_WARN_ON
LBB0_7:
	add	x22, x19, #24
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_9
; %bb.8:
	add	x0, x19, #28
	bl	_list_empty
	cbz	x0, LBB0_10
LBB0_9:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	bl	_WARN_ON
	str	wzr, [x19, #8]
	add	x0, x19, #64
	bl	_wake_up_interruptible
LBB0_10:
	mov	x0, x22
	bl	_mutex_unlock
	ldr	x8, [x23]
	cmp	x8, x21
	b.ne	LBB0_12
LBB0_11:
	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_12:
	add	x22, x19, #24
	mov	x0, x22
	bl	_mutex_lock
	movi	d0, #0x0000ff00000000
	str	d0, [x19, #8]
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_14
; %bb.13:
	add	x0, x19, #28
	bl	_list_empty
	cbz	x0, LBB0_15
LBB0_14:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #1
	blr	x8
	cbnz	x0, LBB0_20
LBB0_15:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_21
; %bb.16:
Lloh7:
	adrp	x8, _adap_monitor_all_enable@GOTPAGE
Lloh8:
	ldr	x8, [x8, _adap_monitor_all_enable@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_call_op
	cbz	x0, LBB0_21
; %bb.17:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_19
; %bb.18:
	add	x0, x19, #28
	bl	_list_empty
	cbz	x0, LBB0_20
LBB0_19:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	bl	_WARN_ON
LBB0_20:
	mov	x0, x22
	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
	b	_mutex_unlock
LBB0_21:
	mov	x0, x22
	bl	_mutex_unlock
	str	x21, [x19]
	mov	x0, x19
	bl	_cec_post_state_event
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_11
; %bb.22:
	mov	x0, x19
	mov	x1, 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
	b	_cec_claim_log_addrs
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_CEC_PHYS_ADDR_INVALID,8,3      ; @CEC_PHYS_ADDR_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"new physical address %x.%x.%x.%x\n"

	.comm	_adap_monitor_all_enable,4,2    ; @adap_monitor_all_enable
.subsections_via_symbols
