	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_sysfs_afu_new_cr
_cxl_sysfs_afu_new_cr:                  ## @cxl_sysfs_afu_new_cr
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%r12d, (%rax)
	movq	_cxl_ops@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_PCI_DEVICE_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	44(%r15), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	(%r13), %rax
	movq	_PCI_VENDOR_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	40(%r15), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	(%r13), %rax
	movq	_PCI_CLASS_REVISION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	4(%r15), %rcx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	*8(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	sarl	$8, 4(%r15)
	leaq	16(%r15), %r12
	movq	%r12, %rdi
	callq	_sysfs_bin_attr_init
	leaq	L_.str(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movl	4(%r14), %eax
	movl	%eax, 20(%r15)
	movq	_afu_read_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r15, %r13
	addq	$8, %r13
	movl	(%r15), %r8d
	movq	_afu_config_record_type@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_kobject_init_and_add
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_10:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_sysfs_create_bin_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_kobject_uevent
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_sysfs_remove_bin_file
LBB0_9:
	movq	%r13, %rdi
	callq	_kobject_put
	jmp	LBB0_11
LBB0_12:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cxl_ops,8,3                    ## @cxl_ops
	.comm	_PCI_DEVICE_ID,4,2              ## @PCI_DEVICE_ID
	.comm	_PCI_VENDOR_ID,4,2              ## @PCI_VENDOR_ID
	.comm	_PCI_CLASS_REVISION,4,2         ## @PCI_CLASS_REVISION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"config"

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_afu_read_config,4,2            ## @afu_read_config
	.comm	_afu_config_record_type,4,2     ## @afu_config_record_type
L_.str.1:                               ## @.str.1
	.asciz	"cr%i"

	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
	.no_dead_strip	_cxl_sysfs_afu_new_cr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_sysfs_afu_new_cr
_cxl_sysfs_afu_new_cr:                  ; @cxl_sysfs_afu_new_cr
	.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	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x3, x0
	str	w21, [x3], #44
Lloh3:
	adrp	x23, _cxl_ops@GOTPAGE
Lloh4:
	ldr	x23, [x23, _cxl_ops@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _PCI_DEVICE_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_DEVICE_ID@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x23]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _PCI_VENDOR_ID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PCI_VENDOR_ID@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x9]
	add	x3, x19, #40
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
Lloh11:
	adrp	x9, _PCI_CLASS_REVISION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PCI_CLASS_REVISION@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	add	x3, x19, #4
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x19, #4]
	asr	w8, w8, #8
	str	w8, [x19, #4]
	add	x21, x19, #16
	mov	x0, x21
	bl	_sysfs_bin_attr_init
Lloh14:
	adrp	x8, l_.str@PAGE
Lloh15:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19, #24]
Lloh16:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh19:
	adrp	x8, _afu_read_config@GOTPAGE
Lloh20:
	ldr	x8, [x8, _afu_read_config@GOTPAGEOFF]
	ldr	w9, [x20, #4]
Lloh21:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #16]
	add	x23, x19, #8
	ldr	w4, [x19]
Lloh22:
	adrp	x1, _afu_config_record_type@GOTPAGE
Lloh23:
	ldr	x1, [x1, _afu_config_record_type@GOTPAGEOFF]
Lloh24:
	adrp	x3, l_.str.1@PAGE
Lloh25:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x20
	bl	_kobject_init_and_add
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_kfree
	b	LBB0_7
LBB0_6:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	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	_ERR_PTR
LBB0_8:
	mov	x0, x23
	mov	x1, x21
	bl	_sysfs_create_bin_file
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.9:
Lloh29:
	adrp	x8, _KOBJ_ADD@GOTPAGE
Lloh30:
	ldr	x8, [x8, _KOBJ_ADD@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_kobject_uevent
	cbz	w0, LBB0_12
; %bb.10:
	mov	x22, x0
	mov	x0, x23
	mov	x1, x21
	bl	_sysfs_remove_bin_file
LBB0_11:
	mov	x0, x23
	bl	_kobject_put
	b	LBB0_7
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cxl_ops,8,3                    ; @cxl_ops
	.comm	_PCI_DEVICE_ID,4,2              ; @PCI_DEVICE_ID
	.comm	_PCI_VENDOR_ID,4,2              ; @PCI_VENDOR_ID
	.comm	_PCI_CLASS_REVISION,4,2         ; @PCI_CLASS_REVISION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"config"

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_afu_read_config,4,2            ; @afu_read_config
	.comm	_afu_config_record_type,4,2     ; @afu_config_record_type
l_.str.1:                               ; @.str.1
	.asciz	"cr%i"

	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
	.no_dead_strip	_cxl_sysfs_afu_new_cr
.subsections_via_symbols
