	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_mirror_add                 ## -- Begin function b53_mirror_add
	.p2align	4, 0x90
_b53_mirror_add:                        ## @b53_mirror_add
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	(%rdi), %r13
	testl	%ecx, %ecx
	jne	LBB0_1
## %bb.2:
	movq	_B53_EG_MIR_CTL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_B53_IG_MIR_CTL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	movq	_B53_MGMT_PAGE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-44(%rbp), %r15
	movq	%r13, %rdi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_b53_read16
	movl	%r12d, %edi
	callq	_BIT
	orl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_b53_write16
	movl	(%r14), %esi
	movq	_B53_MIR_CAP_CTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	_b53_read16
	movq	_CAP_PORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	-44(%rbp), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	orl	(%rax), %ecx
	movq	_MIRROR_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%r13, %rdi
	callq	_b53_write16
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B53_IG_MIR_CTL,4,2             ## @B53_IG_MIR_CTL
	.comm	_B53_EG_MIR_CTL,4,2             ## @B53_EG_MIR_CTL
	.comm	_B53_MGMT_PAGE,4,2              ## @B53_MGMT_PAGE
	.comm	_B53_MIR_CAP_CTL,4,2            ## @B53_MIR_CAP_CTL
	.comm	_CAP_PORT_MASK,4,2              ## @CAP_PORT_MASK
	.comm	_MIRROR_EN,4,2                  ## @MIRROR_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b53_mirror_add                 ; -- Begin function b53_mirror_add
	.p2align	2
_b53_mirror_add:                        ; @b53_mirror_add
	.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, x2
	mov	x20, x1
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _B53_EG_MIR_CTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B53_EG_MIR_CTL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _B53_IG_MIR_CTL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _B53_IG_MIR_CTL@GOTPAGEOFF]
	cmp	w3, #0
	csel	x8, x8, x9, eq
	ldr	w22, [x8]
Lloh4:
	adrp	x23, _B53_MGMT_PAGE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _B53_MGMT_PAGE@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x3, sp, #12
	mov	x0, x21
	mov	x2, x22
	bl	_b53_read16
	mov	x0, x20
	bl	_BIT
	ldr	w8, [sp, #12]
	orr	w3, w8, w0
	str	w3, [sp, #12]
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x22
	bl	_b53_write16
	ldr	w1, [x23]
Lloh6:
	adrp	x20, _B53_MIR_CAP_CTL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _B53_MIR_CAP_CTL@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x3, sp, #12
	mov	x0, x21
	bl	_b53_read16
Lloh8:
	adrp	x8, _CAP_PORT_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CAP_PORT_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
	ldr	w9, [x19]
Lloh11:
	adrp	x10, _MIRROR_EN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MIRROR_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh13:
	ldr	w9, [x10]
	orr	w3, w9, w8
	str	w3, [sp, #12]
	ldr	w1, [x23]
	ldr	w2, [x20]
	mov	x0, x21
	bl	_b53_write16
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_B53_IG_MIR_CTL,4,2             ; @B53_IG_MIR_CTL
	.comm	_B53_EG_MIR_CTL,4,2             ; @B53_EG_MIR_CTL
	.comm	_B53_MGMT_PAGE,4,2              ; @B53_MGMT_PAGE
	.comm	_B53_MIR_CAP_CTL,4,2            ; @B53_MIR_CAP_CTL
	.comm	_CAP_PORT_MASK,4,2              ; @CAP_PORT_MASK
	.comm	_MIRROR_EN,4,2                  ; @MIRROR_EN
.subsections_via_symbols
