	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_ledstate          ## -- Begin function ath5k_hw_set_ledstate
	.p2align	4, 0x90
_ath5k_hw_set_ledstate:                 ## @ath5k_hw_set_ledstate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movq	_AR5K_AR5210@GOTPCREL(%rip), %r15
	xorl	%edx, %edx
	movq	_AR5K_PCICFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_AR5K_PCICFG_LED@GOTPCREL(%rip), %rax
	cmpq	(%r15), %rcx
	je	LBB0_2
## %bb.1:
	movq	_AR5K_PCICFG_LEDMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_2:
	orl	(%rax), %edx
	movq	%r14, %rdi
	callq	_AR5K_REG_DISABLE_BITS
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_7
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_AR5K_PCICFG_LEDMODE_PROP@GOTPCREL(%rip), %rcx
	movq	_AR5K_PCICFG_LED_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %edx
	orl	%eax, %edx
	movq	_AR5K_PCICFG_LED_BCTL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_9
LBB0_6:
	movq	_AR5K_PCICFG_LEDMODE_PROP@GOTPCREL(%rip), %rcx
	movq	_AR5K_PCICFG_LED_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %edx
	orl	%eax, %edx
	jmp	LBB0_9
LBB0_7:
	movq	_AR5K_PCICFG_LEDMODE_PROM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_AR5K_PCICFG_LEDMODE_PROP@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_AR5K_PCICFG_LED_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_AR5K_PCICFG_LED_PEND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	(%r14), %rcx
	cmpq	(%r15), %rcx
	movl	(%r12), %esi
	cmovel	%eax, %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AR5K_REG_ENABLE_BITS           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
	.comm	_AR5K_PCICFG,4,2                ## @AR5K_PCICFG
	.comm	_AR5K_PCICFG_LEDMODE,4,2        ## @AR5K_PCICFG_LEDMODE
	.comm	_AR5K_PCICFG_LED,4,2            ## @AR5K_PCICFG_LED
	.comm	_AR5K_PCICFG_LEDMODE_PROP,4,2   ## @AR5K_PCICFG_LEDMODE_PROP
	.comm	_AR5K_PCICFG_LED_PEND,4,2       ## @AR5K_PCICFG_LED_PEND
	.comm	_AR5K_PCICFG_LED_BCTL,4,2       ## @AR5K_PCICFG_LED_BCTL
	.comm	_AR5K_PCICFG_LED_NONE,4,2       ## @AR5K_PCICFG_LED_NONE
	.comm	_AR5K_PCICFG_LED_ASSOC,4,2      ## @AR5K_PCICFG_LED_ASSOC
	.comm	_AR5K_PCICFG_LEDMODE_PROM,4,2   ## @AR5K_PCICFG_LEDMODE_PROM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_set_ledstate          ; -- Begin function ath5k_hw_set_ledstate
	.p2align	2
_ath5k_hw_set_ledstate:                 ; @ath5k_hw_set_ledstate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _AR5K_AR5210@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AR5K_AR5210@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	adrp	x22, _AR5K_PCICFG@GOTPAGE
Lloh3:
	ldr	x22, [x22, _AR5K_PCICFG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh4:
	adrp	x10, _AR5K_PCICFG_LED@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AR5K_PCICFG_LED@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
Lloh7:
	adrp	x11, _AR5K_PCICFG_LEDMODE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _AR5K_PCICFG_LEDMODE@GOTPAGEOFF]
Lloh9:
	ldr	w11, [x11]
	cmp	x8, x9
	csel	w8, wzr, w11, eq
	orr	w2, w10, w8
	bl	_AR5K_REG_DISABLE_BITS
	sub	w8, w20, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.1:
Lloh10:
	adrp	x9, lJTI0_0@PAGE
Lloh11:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh12:
	adrp	x8, _AR5K_PCICFG_LEDMODE_PROP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR5K_PCICFG_LEDMODE_PROP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _AR5K_PCICFG_LED_PEND@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AR5K_PCICFG_LED_PEND@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x10, _AR5K_PCICFG_LED_BCTL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _AR5K_PCICFG_LED_BCTL@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	b	LBB0_7
LBB0_3:
Lloh21:
	adrp	x8, _AR5K_PCICFG_LEDMODE_PROP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR5K_PCICFG_LEDMODE_PROP@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _AR5K_PCICFG_LED_ASSOC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AR5K_PCICFG_LED_ASSOC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_4:
Lloh27:
	adrp	x8, _AR5K_PCICFG_LEDMODE_PROM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AR5K_PCICFG_LEDMODE_PROM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh29:
	adrp	x8, _AR5K_PCICFG_LEDMODE_PROP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AR5K_PCICFG_LEDMODE_PROP@GOTPAGEOFF]
LBB0_6:
Lloh31:
	adrp	x9, _AR5K_PCICFG_LED_NONE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AR5K_PCICFG_LED_NONE@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _AR5K_PCICFG_LED_PEND@GOTPAGE
Lloh35:
	ldr	x9, [x9, _AR5K_PCICFG_LED_PEND@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
LBB0_7:
	ldr	x10, [x19]
	ldr	x11, [x21]
	ldr	w1, [x22]
	cmp	x10, x11
	csel	w2, w9, w8, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_AR5K_REG_ENABLE_BITS
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
	.comm	_AR5K_PCICFG,4,2                ; @AR5K_PCICFG
	.comm	_AR5K_PCICFG_LEDMODE,4,2        ; @AR5K_PCICFG_LEDMODE
	.comm	_AR5K_PCICFG_LED,4,2            ; @AR5K_PCICFG_LED
	.comm	_AR5K_PCICFG_LEDMODE_PROP,4,2   ; @AR5K_PCICFG_LEDMODE_PROP
	.comm	_AR5K_PCICFG_LED_PEND,4,2       ; @AR5K_PCICFG_LED_PEND
	.comm	_AR5K_PCICFG_LED_BCTL,4,2       ; @AR5K_PCICFG_LED_BCTL
	.comm	_AR5K_PCICFG_LED_NONE,4,2       ; @AR5K_PCICFG_LED_NONE
	.comm	_AR5K_PCICFG_LED_ASSOC,4,2      ; @AR5K_PCICFG_LED_ASSOC
	.comm	_AR5K_PCICFG_LEDMODE_PROM,4,2   ; @AR5K_PCICFG_LEDMODE_PROM
.subsections_via_symbols
