	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_led_set
_iwl_mvm_led_set:                       ## @iwl_mvm_led_set
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_IWL_UCODE_TLV_CAPA_LED_CMD_SUPPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fw_has_capa
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iwl_mvm_send_led_fw_cmd        ## TAILCALL
LBB0_1:
	movl	(%rbx), %edi
	movq	_CSR_LED_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.3:
	movq	_CSR_LED_REG_TURN_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_CSR_LED_REG_TURN_ON@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iwl_write32                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_UCODE_TLV_CAPA_LED_CMD_SUPPORT,4,2 ## @IWL_UCODE_TLV_CAPA_LED_CMD_SUPPORT
	.comm	_CSR_LED_REG,4,2                ## @CSR_LED_REG
	.comm	_CSR_LED_REG_TURN_ON,4,2        ## @CSR_LED_REG_TURN_ON
	.comm	_CSR_LED_REG_TURN_OFF,4,2       ## @CSR_LED_REG_TURN_OFF
	.no_dead_strip	_iwl_mvm_led_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_led_set
_iwl_mvm_led_set:                       ; @iwl_mvm_led_set
	.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, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _IWL_UCODE_TLV_CAPA_LED_CMD_SUPPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_UCODE_TLV_CAPA_LED_CMD_SUPPORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fw_has_capa
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iwl_mvm_send_led_fw_cmd
LBB0_2:
Lloh3:
	adrp	x8, _CSR_LED_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CSR_LED_REG@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _CSR_LED_REG_TURN_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSR_LED_REG_TURN_ON@GOTPAGEOFF]
Lloh8:
	adrp	x9, _CSR_LED_REG_TURN_OFF@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CSR_LED_REG_TURN_OFF@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iwl_write32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_UCODE_TLV_CAPA_LED_CMD_SUPPORT,4,2 ; @IWL_UCODE_TLV_CAPA_LED_CMD_SUPPORT
	.comm	_CSR_LED_REG,4,2                ; @CSR_LED_REG
	.comm	_CSR_LED_REG_TURN_ON,4,2        ; @CSR_LED_REG_TURN_ON
	.comm	_CSR_LED_REG_TURN_OFF,4,2       ; @CSR_LED_REG_TURN_OFF
	.no_dead_strip	_iwl_mvm_led_set
.subsections_via_symbols
