	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atl1c_patch_assign
_atl1c_patch_assign:                    ## @atl1c_patch_assign
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	40(%rdi), %rax
	movq	(%rax), %rbx
	movl	$0, (%rdi)
	movq	_plats@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rsi
	movq	8(%rdi), %rcx
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	addq	$40, %rax
	movq	_ATL1C_LINK_PATCH@GOTPCREL(%rip), %rdx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rsi
	addq	$40, %rax
	testq	%rsi, %rsi
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, %rsi
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-32(%rax), %rsi
	cmpq	16(%rdi), %rsi
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-24(%rax), %rsi
	cmpq	24(%rdi), %rsi
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-16(%rax), %rsi
	cmpq	32(%rdi), %rsi
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rdx), %esi
	testl	%esi, -8(%rax)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%rdi)
	jmp	LBB0_8
LBB0_9:
	movq	_PCI_DEVICE_ID_ATHEROS_L2C_B2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_12
## %bb.10:
	movq	16(%rdi), %rax
	movq	_L2CB_V21@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movq	_REG_PCIE_IND_ACC_ADDR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_REG_PCIE_DEV_MISC_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
	movq	_REG_PCIE_IND_ACC_DATA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_dword
	andb	$-2, -35(%rbp)
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
	movl	(%r12), %esi
	movl	-36(%rbp), %edx
	movq	%rbx, %rdi
	callq	_pci_write_config_dword
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_plats,8,3                      ## @plats
	.comm	_ATL1C_LINK_PATCH,4,2           ## @ATL1C_LINK_PATCH
	.comm	_PCI_DEVICE_ID_ATHEROS_L2C_B2,8,3 ## @PCI_DEVICE_ID_ATHEROS_L2C_B2
	.comm	_L2CB_V21,8,3                   ## @L2CB_V21
	.comm	_REG_PCIE_IND_ACC_ADDR,4,2      ## @REG_PCIE_IND_ACC_ADDR
	.comm	_REG_PCIE_DEV_MISC_CTRL,4,2     ## @REG_PCIE_DEV_MISC_CTRL
	.comm	_REG_PCIE_IND_ACC_DATA,4,2      ## @REG_PCIE_IND_ACC_DATA
	.no_dead_strip	_atl1c_patch_assign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atl1c_patch_assign
_atl1c_patch_assign:                    ; @atl1c_patch_assign
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0, #40]
	ldr	x19, [x8]
	str	wzr, [x0]
Lloh0:
	adrp	x8, _plats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _plats@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	x12, [x9]
	ldr	x8, [x0, #8]
	cbz	x12, LBB0_9
; %bb.1:
	add	x9, x9, #24
Lloh3:
	adrp	x10, _ATL1C_LINK_PATCH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ATL1C_LINK_PATCH@GOTPAGEOFF]
	mov	w11, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x9, #16]
	add	x9, x9, #40
	cbz	x12, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x12, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x12, [x9, #-16]
	ldr	x13, [x0, #16]
	cmp	x12, x13
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x12, [x9, #-8]
	ldr	x13, [x0, #24]
	cmp	x12, x13
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x9]
	ldr	x13, [x0, #32]
	cmp	x12, x13
	b.ne	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x9, #8]
	ldr	w13, [x10]
	tst	w13, w12
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	str	w11, [x0]
	b	LBB0_2
LBB0_9:
Lloh5:
	adrp	x9, _PCI_DEVICE_ID_ATHEROS_L2C_B2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_DEVICE_ID_ATHEROS_L2C_B2@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldr	x8, [x0, #16]
Lloh8:
	adrp	x9, _L2CB_V21@GOTPAGE
Lloh9:
	ldr	x9, [x9, _L2CB_V21@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
Lloh11:
	adrp	x20, _REG_PCIE_IND_ACC_ADDR@GOTPAGE
Lloh12:
	ldr	x20, [x20, _REG_PCIE_IND_ACC_ADDR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh13:
	adrp	x21, _REG_PCIE_DEV_MISC_CTRL@GOTPAGE
Lloh14:
	ldr	x21, [x21, _REG_PCIE_DEV_MISC_CTRL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_pci_write_config_dword
Lloh15:
	adrp	x22, _REG_PCIE_IND_ACC_DATA@GOTPAGE
Lloh16:
	ldr	x22, [x22, _REG_PCIE_IND_ACC_DATA@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffeff
	str	w8, [sp, #12]
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_pci_write_config_dword
	ldr	w1, [x22]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_pci_write_config_dword
LBB0_12:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_plats,8,3                      ; @plats
	.comm	_ATL1C_LINK_PATCH,4,2           ; @ATL1C_LINK_PATCH
	.comm	_PCI_DEVICE_ID_ATHEROS_L2C_B2,8,3 ; @PCI_DEVICE_ID_ATHEROS_L2C_B2
	.comm	_L2CB_V21,8,3                   ; @L2CB_V21
	.comm	_REG_PCIE_IND_ACC_ADDR,4,2      ; @REG_PCIE_IND_ACC_ADDR
	.comm	_REG_PCIE_DEV_MISC_CTRL,4,2     ; @REG_PCIE_DEV_MISC_CTRL
	.comm	_REG_PCIE_IND_ACC_DATA,4,2      ; @REG_PCIE_IND_ACC_DATA
	.no_dead_strip	_atl1c_patch_assign
.subsections_via_symbols
