	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_led_init
_mt76_led_init:                         ## @mt76_led_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	%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	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	40(%rdi), %r12
	movq	(%rax), %r15
	cmpl	$0, 16(%rdi)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 12(%rbx)
	je	LBB0_2
LBB0_3:
	leaq	4(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	36(%rbx), %r13d
	movl	(%r12), %edi
	callq	_wiphy_name
	leaq	L_.str(%rip), %rdx
	movl	%r13d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movl	36(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	_IEEE80211_TPT_LEDTRIG_FL_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_mt76_tpt_blink@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_ieee80211_create_tpt_led_trigger
	movl	%eax, 4(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rax, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_bool
	movl	%eax, 32(%rbx)
LBB0_7:
	movq	24(%rbx), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_devm_led_classdev_register
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mt76-%s"

	.comm	_IEEE80211_TPT_LEDTRIG_FL_RADIO,4,2 ## @IEEE80211_TPT_LEDTRIG_FL_RADIO
	.comm	_mt76_tpt_blink,4,2             ## @mt76_tpt_blink
L_.str.1:                               ## @.str.1
	.asciz	"led"

L_.str.2:                               ## @.str.2
	.asciz	"led-sources"

L_.str.3:                               ## @.str.3
	.asciz	"led-active-low"

	.no_dead_strip	_mt76_led_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_led_init
_mt76_led_init:                         ; @mt76_led_init
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	ldr	x22, [x0, #40]
	ldr	w8, [x0, #16]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_8
LBB0_2:
	add	x20, x19, #4
	ldr	w23, [x19, #36]
	ldr	w0, [x22]
	bl	_wiphy_name
	mov	x3, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	w1, #4
	bl	_snprintf
	ldr	w8, [x19, #36]
	str	w8, [x19, #8]
Lloh2:
	adrp	x8, _IEEE80211_TPT_LEDTRIG_FL_RADIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_TPT_LEDTRIG_FL_RADIO@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _mt76_tpt_blink@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mt76_tpt_blink@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_ieee80211_create_tpt_led_trigger
	str	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_get_child_by_name
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [sp, #12]
	str	w8, [x19]
LBB0_5:
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_bool
	str	w0, [x19, #32]
LBB0_6:
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_devm_led_classdev_register
LBB0_7:
	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
LBB0_8:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mt76-%s"

	.comm	_IEEE80211_TPT_LEDTRIG_FL_RADIO,4,2 ; @IEEE80211_TPT_LEDTRIG_FL_RADIO
	.comm	_mt76_tpt_blink,4,2             ; @mt76_tpt_blink
l_.str.1:                               ; @.str.1
	.asciz	"led"

l_.str.2:                               ; @.str.2
	.asciz	"led-sources"

l_.str.3:                               ; @.str.3
	.asciz	"led-active-low"

	.no_dead_strip	_mt76_led_init
.subsections_via_symbols
