	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_leds_init            ## -- Begin function b43legacy_leds_init
	.p2align	4, 0x90
_b43legacy_leds_init:                   ## @b43legacy_leds_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	movl	4(%rbx), %eax
	movl	8(%rbx), %r13d
	cmpl	$255, %eax
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	movq	_PCI_VENDOR_ID_COMPAQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.3:
	movq	_B43legacy_LED_RADIO_ALL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_B43legacy_LED_BEHAVIOUR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%eax, %edx
	movq	_B43legacy_LED_ACTIVELOW@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	testl	%eax, (%rsi)
	setne	%cl
	jmp	LBB0_6
LBB0_2:
	movq	_B43legacy_LED_ACTIVITY@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	movl	$1, %ecx
LBB0_6:
	movl	12(%rbx), %r15d
	movl	16(%rbx), %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_b43legacy_map_led
	cmpl	$255, %r13d
	jne	LBB0_7
## %bb.8:
	movl	(%rbx), %eax
	movq	_PCI_VENDOR_ID_ASUSTEK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.10:
	movq	_B43legacy_LED_ASSOC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_B43legacy_LED_BEHAVIOUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r13d, %edx
	movq	_B43legacy_LED_ACTIVELOW@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%r13d, (%rax)
	setne	%cl
	jmp	LBB0_12
LBB0_9:
	movq	_B43legacy_LED_RADIO_B@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %edx
	xorl	%ecx, %ecx
LBB0_12:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_b43legacy_map_led
	cmpl	$255, %r15d
	jne	LBB0_13
## %bb.14:
	movq	_B43legacy_LED_RADIO_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_13:
	movq	_B43legacy_LED_BEHAVIOUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r15d, %edx
	movq	_B43legacy_LED_ACTIVELOW@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%r15d, (%rax)
	setne	%cl
LBB0_15:
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_b43legacy_map_led
	cmpl	$255, %r14d
	jne	LBB0_16
## %bb.17:
	movq	_B43legacy_LED_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	jmp	LBB0_18
LBB0_16:
	movq	_B43legacy_LED_BEHAVIOUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r14d, %edx
	movq	_B43legacy_LED_ACTIVELOW@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%r14d, (%rax)
	setne	%cl
LBB0_18:
	movq	%r12, %rdi
	movl	$3, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43legacy_map_led              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_LED_ACTIVITY,4,2     ## @B43legacy_LED_ACTIVITY
	.comm	_PCI_VENDOR_ID_COMPAQ,4,2       ## @PCI_VENDOR_ID_COMPAQ
	.comm	_B43legacy_LED_RADIO_ALL,4,2    ## @B43legacy_LED_RADIO_ALL
	.comm	_B43legacy_LED_RADIO_B,4,2      ## @B43legacy_LED_RADIO_B
	.comm	_PCI_VENDOR_ID_ASUSTEK,4,2      ## @PCI_VENDOR_ID_ASUSTEK
	.comm	_B43legacy_LED_ASSOC,4,2        ## @B43legacy_LED_ASSOC
	.comm	_B43legacy_LED_RADIO_A,4,2      ## @B43legacy_LED_RADIO_A
	.comm	_B43legacy_LED_OFF,4,2          ## @B43legacy_LED_OFF
	.comm	_B43legacy_LED_BEHAVIOUR,4,2    ## @B43legacy_LED_BEHAVIOUR
	.comm	_B43legacy_LED_ACTIVELOW,4,2    ## @B43legacy_LED_ACTIVELOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43legacy_leds_init            ; -- Begin function b43legacy_leds_init
	.p2align	2
_b43legacy_leds_init:                   ; @b43legacy_leds_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x24, [x8]
	ldp	w8, w25, [x24, #4]
Lloh0:
	adrp	x21, _B43legacy_LED_BEHAVIOUR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _B43legacy_LED_BEHAVIOUR@GOTPAGEOFF]
Lloh2:
	adrp	x20, _B43legacy_LED_ACTIVELOW@GOTPAGE
Lloh3:
	ldr	x20, [x20, _B43legacy_LED_ACTIVELOW@GOTPAGEOFF]
	cmp	w8, #255
	b.ne	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _B43legacy_LED_ACTIVITY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _B43legacy_LED_ACTIVITY@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh6:
	adrp	x10, _PCI_VENDOR_ID_COMPAQ@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PCI_VENDOR_ID_COMPAQ@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _B43legacy_LED_RADIO_ALL@GOTPAGE
Lloh10:
	ldr	x11, [x11, _B43legacy_LED_RADIO_ALL@GOTPAGEOFF]
	cmp	w9, w10
	csel	x8, x11, x8, eq
	ldr	w2, [x8]
	mov	w3, #1
	b	LBB0_3
LBB0_2:
	ldr	w9, [x21]
	and	w2, w9, w8
	ldr	w9, [x20]
	tst	w9, w8
	cset	w3, ne
LBB0_3:
	ldp	w23, w22, [x24, #12]
	mov	x0, x19
	mov	w1, #0
	bl	_b43legacy_map_led
	cmp	w25, #255
	b.ne	LBB0_5
; %bb.4:
	mov	w3, #0
Lloh11:
	adrp	x8, _B43legacy_LED_RADIO_B@GOTPAGE
Lloh12:
	ldr	x8, [x8, _B43legacy_LED_RADIO_B@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh13:
	adrp	x10, _PCI_VENDOR_ID_ASUSTEK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _PCI_VENDOR_ID_ASUSTEK@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	adrp	x11, _B43legacy_LED_ASSOC@GOTPAGE
Lloh17:
	ldr	x11, [x11, _B43legacy_LED_ASSOC@GOTPAGEOFF]
	cmp	w9, w10
	csel	x8, x11, x8, eq
	ldr	w2, [x8]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x21]
	and	w2, w8, w25
	ldr	w8, [x20]
	tst	w8, w25
	cset	w3, ne
LBB0_6:
	mov	x0, x19
	mov	w1, #1
	bl	_b43legacy_map_led
	cmp	w23, #255
	b.ne	LBB0_8
; %bb.7:
	mov	w3, #0
Lloh18:
	adrp	x8, _B43legacy_LED_RADIO_A@GOTPAGE
Lloh19:
	ldr	x8, [x8, _B43legacy_LED_RADIO_A@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	b	LBB0_9
LBB0_8:
	ldr	w8, [x21]
	and	w2, w8, w23
	ldr	w8, [x20]
	tst	w8, w23
	cset	w3, ne
LBB0_9:
	mov	x0, x19
	mov	w1, #2
	bl	_b43legacy_map_led
	cmp	w22, #255
	b.ne	LBB0_11
; %bb.10:
	mov	w3, #0
Lloh21:
	adrp	x8, _B43legacy_LED_OFF@GOTPAGE
Lloh22:
	ldr	x8, [x8, _B43legacy_LED_OFF@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	b	LBB0_12
LBB0_11:
	ldr	w8, [x21]
	and	w2, w8, w22
	ldr	w8, [x20]
	tst	w8, w22
	cset	w3, ne
LBB0_12:
	mov	x0, x19
	mov	w1, #3
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_b43legacy_map_led
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_LED_ACTIVITY,4,2     ; @B43legacy_LED_ACTIVITY
	.comm	_PCI_VENDOR_ID_COMPAQ,4,2       ; @PCI_VENDOR_ID_COMPAQ
	.comm	_B43legacy_LED_RADIO_ALL,4,2    ; @B43legacy_LED_RADIO_ALL
	.comm	_B43legacy_LED_RADIO_B,4,2      ; @B43legacy_LED_RADIO_B
	.comm	_PCI_VENDOR_ID_ASUSTEK,4,2      ; @PCI_VENDOR_ID_ASUSTEK
	.comm	_B43legacy_LED_ASSOC,4,2        ; @B43legacy_LED_ASSOC
	.comm	_B43legacy_LED_RADIO_A,4,2      ; @B43legacy_LED_RADIO_A
	.comm	_B43legacy_LED_OFF,4,2          ; @B43legacy_LED_OFF
	.comm	_B43legacy_LED_BEHAVIOUR,4,2    ; @B43legacy_LED_BEHAVIOUR
	.comm	_B43legacy_LED_ACTIVELOW,4,2    ; @B43legacy_LED_ACTIVELOW
.subsections_via_symbols
