	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_pci_create_generic_ctl    ## -- Begin function edac_pci_create_generic_ctl
	.p2align	4, 0x90
_edac_pci_create_generic_ctl:           ## @edac_pci_create_generic_ctl
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	_EDAC_PCI_GENCTL_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$8, %edi
	callq	_edac_pci_alloc_ctl_info
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	32(%rax), %r12
	movq	%r15, 24(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r15, %rdi
	callq	_to_pci_dev
	movl	%eax, %edi
	callq	_pci_name
	movl	%eax, 16(%rbx)
	movq	%r14, (%rbx)
	movl	(%r13), %eax
	movl	%eax, 12(%rbx)
	movq	_edac_op_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EDAC_OPSTATE_POLL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_edac_pci_generic_check@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
LBB0_3:
	movq	_edac_pci_idx@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leal	1(%rsi), %ecx
	movl	%ecx, (%rax)
	movq	%rsi, (%r12)
	movq	%rbx, %rdi
	callq	_edac_pci_add_device
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_edac_dbg
	movq	%rbx, %rdi
	callq	_edac_pci_free_ctl_info
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EDAC_PCI_GENCTL_NAME,4,2       ## @EDAC_PCI_GENCTL_NAME
	.comm	_edac_op_state,8,3              ## @edac_op_state
	.comm	_EDAC_OPSTATE_POLL,8,3          ## @EDAC_OPSTATE_POLL
	.comm	_edac_pci_generic_check,4,2     ## @edac_pci_generic_check
	.comm	_edac_pci_idx,4,2               ## @edac_pci_idx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed edac_pci_add_device()\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_edac_pci_create_generic_ctl    ; -- Begin function edac_pci_create_generic_ctl
	.p2align	2
_edac_pci_create_generic_ctl:           ; @edac_pci_create_generic_ctl
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _EDAC_PCI_GENCTL_NAME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EDAC_PCI_GENCTL_NAME@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #8
	bl	_edac_pci_alloc_ctl_info
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x22, [x19, #32]
	str	x21, [x19, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x21
	bl	_to_pci_dev
	bl	_pci_name
	str	x20, [x19]
	ldr	w8, [x23]
Lloh2:
	adrp	x9, _edac_op_state@GOTPAGE
Lloh3:
	ldr	x9, [x9, _edac_op_state@GOTPAGEOFF]
	stp	w8, w0, [x19, #12]
Lloh4:
	ldr	x8, [x9]
Lloh5:
	adrp	x9, _EDAC_OPSTATE_POLL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _EDAC_OPSTATE_POLL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _edac_pci_generic_check@GOTPAGE
Lloh9:
	ldr	x8, [x8, _edac_pci_generic_check@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_3:
Lloh11:
	adrp	x8, _edac_pci_idx@GOTPAGE
Lloh12:
	ldr	x8, [x8, _edac_pci_idx@GOTPAGEOFF]
	ldrsw	x1, [x8]
	add	w9, w1, #1
	str	w9, [x8]
	str	x1, [x22]
	mov	x0, x19
	bl	_edac_pci_add_device
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.4:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_edac_dbg
	mov	x0, x19
	bl	_edac_pci_free_ctl_info
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EDAC_PCI_GENCTL_NAME,4,2       ; @EDAC_PCI_GENCTL_NAME
	.comm	_edac_op_state,8,3              ; @edac_op_state
	.comm	_EDAC_OPSTATE_POLL,8,3          ; @EDAC_OPSTATE_POLL
	.comm	_edac_pci_generic_check,4,2     ; @edac_pci_generic_check
	.comm	_edac_pci_idx,4,2               ; @edac_pci_idx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed edac_pci_add_device()\n"

.subsections_via_symbols
