	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_init_leds                ## -- Begin function ath5k_init_leds
	.p2align	4, 0x90
_ath5k_init_leds:                       ## @ath5k_init_leds
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ATH5K_LED_MAX_NAME_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	24(%rbx), %rsi
	xorl	%r13d, %r13d
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	32(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ath5k_led_devices@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_pci_match_id
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r12
	movq	_ATH_STAT_LEDSOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movl	(%r12), %edi
	callq	_ATH_PIN
	movl	%eax, 16(%rbx)
	movl	(%r12), %edi
	callq	_ATH_POLARITY
	movl	%eax, 12(%rbx)
LBB0_3:
	movq	_ATH_STAT_LEDSOFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_ath5k_led_enable
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %edi
	callq	_wiphy_name
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	leaq	4(%rbx), %r12
	movq	%r13, %rdi
	callq	_ieee80211_get_rx_led_name
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_ath5k_register_led
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %edi
	callq	_wiphy_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r12, %rdi
	callq	_ieee80211_get_tx_led_name
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_ath5k_register_led
	movl	%eax, %r13d
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH5K_LED_MAX_NAME_LEN,4,2     ## @ATH5K_LED_MAX_NAME_LEN
	.comm	_ath5k_led_devices,8,3          ## @ath5k_led_devices
	.comm	_ATH_STAT_LEDSOFT,4,2           ## @ATH_STAT_LEDSOFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ath5k-%s::rx"

L_.str.1:                               ## @.str.1
	.asciz	"ath5k-%s::tx"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_init_leds                ; -- Begin function ath5k_init_leds
	.p2align	2
_ath5k_init_leds:                       ; @ath5k_init_leds
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x0, #32]
Lloh3:
	adrp	x8, _ATH5K_LED_MAX_NAME_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH5K_LED_MAX_NAME_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w22, w8, #1
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x1, [x0, #24]
	cbz	x1, LBB0_6
; %bb.1:
Lloh8:
	adrp	x8, _ath5k_led_devices@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ath5k_led_devices@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	bl	_pci_match_id
Lloh11:
	adrp	x24, _ATH_STAT_LEDSOFT@GOTPAGE
Lloh12:
	ldr	x24, [x24, _ATH_STAT_LEDSOFT@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	mov	x23, x0
	ldr	w0, [x24]
	ldr	w1, [x19, #8]
	bl	___set_bit
	ldr	w0, [x23]
	bl	_ATH_PIN
	str	w0, [x19, #16]
	ldr	w0, [x23]
	bl	_ATH_POLARITY
	str	w0, [x19, #12]
LBB0_3:
	ldr	w0, [x24]
	ldr	w1, [x19, #8]
	bl	_test_bit
	cbz	w0, LBB0_7
; %bb.4:
	mov	x0, x19
	bl	_ath5k_led_enable
	ldr	w0, [x20]
	bl	_wiphy_name
	mov	x3, x0
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
	add	x23, x19, #4
	mov	x0, x20
	bl	_ieee80211_get_rx_led_name
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	bl	_ath5k_register_led
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x20]
	bl	_wiphy_name
	mov	x3, x0
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_snprintf
	mov	x0, x20
	bl	_ieee80211_get_tx_led_name
	mov	x3, x0
	mov	x0, x19
	mov	x1, x19
	mov	x2, x21
	bl	_ath5k_register_led
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #48
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH5K_LED_MAX_NAME_LEN,4,2     ; @ATH5K_LED_MAX_NAME_LEN
	.comm	_ath5k_led_devices,8,3          ; @ath5k_led_devices
	.comm	_ATH_STAT_LEDSOFT,4,2           ; @ATH_STAT_LEDSOFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ath5k-%s::rx"

l_.str.1:                               ; @.str.1
	.asciz	"ath5k-%s::tx"

.subsections_via_symbols
