	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_led_update
_b43_led_update:                        ## @b43_led_update
	.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
	cmpl	$0, 16(%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%ecx, %ecx
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.2:
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	movq	_LED_OFF@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	setne	%cl
LBB0_4:
	cmpl	(%rbx), %ecx
	jne	LBB0_5
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	%ecx, (%rbx)
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_led_turn_on                ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_led_turn_off               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_OFF,8,3                    ## @LED_OFF
	.no_dead_strip	_b43_led_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_led_update
_b43_led_update:                        ; @b43_led_update
	.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
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	add	x0, x20, #12
	bl	_atomic_read
Lloh0:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w8, ne
LBB0_4:
	ldr	w9, [x20]
	cmp	w8, w9
	b.ne	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	str	w8, [x20]
	ldp	w2, w1, [x20, #4]
	mov	x0, x19
	cbz	w8, LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_led_turn_on
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_led_turn_off
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_OFF,8,3                    ; @LED_OFF
	.no_dead_strip	_b43_led_update
.subsections_via_symbols
