	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_sysfs_init              ## -- Begin function wlcore_sysfs_init
	.p2align	4, 0x90
_wlcore_sysfs_init:                     ## @wlcore_sysfs_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_dev_attr_bt_coex_state@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	(%r14), %edi
	movq	_dev_attr_hw_pg_ver@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	movq	_fwlog_attr@GOTPCREL(%rip), %rsi
	callq	_device_create_bin_file
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_wl1271_error
	movl	(%r14), %edi
	movq	_dev_attr_hw_pg_ver@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	callq	_wl1271_error
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_wl1271_error
LBB0_6:
	movl	(%r14), %edi
	movq	_dev_attr_bt_coex_state@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_bt_coex_state,4,2     ## @dev_attr_bt_coex_state
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create sysfs file bt_coex_state"

	.comm	_dev_attr_hw_pg_ver,4,2         ## @dev_attr_hw_pg_ver
L_.str.1:                               ## @.str.1
	.asciz	"failed to create sysfs file hw_pg_ver"

	.comm	_fwlog_attr,4,2                 ## @fwlog_attr
L_.str.2:                               ## @.str.2
	.asciz	"failed to create sysfs file fwlog"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlcore_sysfs_init              ; -- Begin function wlcore_sysfs_init
	.p2align	2
_wlcore_sysfs_init:                     ; @wlcore_sysfs_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, _dev_attr_bt_coex_state@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_bt_coex_state@GOTPAGEOFF]
	bl	_device_create_file
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w0, [x19]
Lloh2:
	adrp	x1, _dev_attr_hw_pg_ver@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dev_attr_hw_pg_ver@GOTPAGEOFF]
	bl	_device_create_file
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, _fwlog_attr@GOTPAGE
Lloh5:
	ldr	x1, [x1, _fwlog_attr@GOTPAGEOFF]
	bl	_device_create_bin_file
	mov	x20, x0
	tbz	w0, #31, LBB0_7
; %bb.3:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_wl1271_error
	ldr	w0, [x19]
Lloh8:
	adrp	x1, _dev_attr_hw_pg_ver@GOTPAGE
Lloh9:
	ldr	x1, [x1, _dev_attr_hw_pg_ver@GOTPAGEOFF]
	bl	_device_remove_file
	b	LBB0_6
LBB0_4:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_wl1271_error
	b	LBB0_7
LBB0_5:
	mov	x20, x0
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_wl1271_error
LBB0_6:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, _dev_attr_bt_coex_state@GOTPAGE
Lloh15:
	ldr	x1, [x1, _dev_attr_bt_coex_state@GOTPAGEOFF]
	bl	_device_remove_file
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_bt_coex_state,4,2     ; @dev_attr_bt_coex_state
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create sysfs file bt_coex_state"

	.comm	_dev_attr_hw_pg_ver,4,2         ; @dev_attr_hw_pg_ver
l_.str.1:                               ; @.str.1
	.asciz	"failed to create sysfs file hw_pg_ver"

	.comm	_fwlog_attr,4,2                 ; @fwlog_attr
l_.str.2:                               ; @.str.2
	.asciz	"failed to create sysfs file fwlog"

.subsections_via_symbols
