	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsg_led_probe
_fsg_led_probe:                         ## @fsg_led_probe
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$2, %edi
	callq	_IXP4XX_EXP_BUS_BASE
	movl	%eax, %edi
	movl	$512, %esi                      ## imm = 0x200
	callq	_ioremap
	movq	_latch_address@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_latch_value@GOTPCREL(%rip), %rcx
	movl	$65535, (%rcx)                  ## imm = 0xFFFF
	movl	$65535, (%rax)                  ## imm = 0xFFFF
	movq	_fsg_wlan_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_fsg_wan_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_fsg_sata_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_fsg_usb_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	_fsg_sync_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_led_classdev_register
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	_fsg_ring_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_led_classdev_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_19
## %bb.13:
	movq	_fsg_sync_led@GOTPCREL(%rip), %rdi
	callq	_led_classdev_unregister
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_18
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_11:
	movl	%eax, %ebx
LBB0_14:
	movq	_fsg_usb_led@GOTPCREL(%rip), %rdi
	callq	_led_classdev_unregister
LBB0_15:
	movq	_fsg_sata_led@GOTPCREL(%rip), %rdi
	callq	_led_classdev_unregister
LBB0_16:
	movq	_fsg_wan_led@GOTPCREL(%rip), %rdi
	callq	_led_classdev_unregister
LBB0_17:
	movq	_fsg_wlan_led@GOTPCREL(%rip), %rdi
	callq	_led_classdev_unregister
LBB0_18:
	movq	(%r15), %rdi
	callq	_iounmap
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_latch_address,8,3              ## @latch_address
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_latch_value,4,2                ## @latch_value
	.comm	_fsg_wlan_led,4,2               ## @fsg_wlan_led
	.comm	_fsg_wan_led,4,2                ## @fsg_wan_led
	.comm	_fsg_sata_led,4,2               ## @fsg_sata_led
	.comm	_fsg_usb_led,4,2                ## @fsg_usb_led
	.comm	_fsg_sync_led,4,2               ## @fsg_sync_led
	.comm	_fsg_ring_led,4,2               ## @fsg_ring_led
	.no_dead_strip	_fsg_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsg_led_probe
_fsg_led_probe:                         ; @fsg_led_probe
	.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, x0
	mov	w0, #2
	bl	_IXP4XX_EXP_BUS_BASE
	mov	w1, #512
	bl	_ioremap
Lloh0:
	adrp	x21, _latch_address@GOTPAGE
Lloh1:
	ldr	x21, [x21, _latch_address@GOTPAGEOFF]
	str	x0, [x21]
	cbz	x0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _latch_value@GOTPAGE
Lloh3:
	ldr	x8, [x8, _latch_value@GOTPAGEOFF]
	mov	w9, #65535
Lloh4:
	str	w9, [x8]
	str	w9, [x0]
Lloh5:
	adrp	x1, _fsg_wlan_led@GOTPAGE
Lloh6:
	ldr	x1, [x1, _fsg_wlan_led@GOTPAGEOFF]
	mov	x0, x20
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_9
; %bb.2:
Lloh7:
	adrp	x1, _fsg_wan_led@GOTPAGE
Lloh8:
	ldr	x1, [x1, _fsg_wan_led@GOTPAGEOFF]
	mov	x0, x20
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh9:
	adrp	x1, _fsg_sata_led@GOTPAGE
Lloh10:
	ldr	x1, [x1, _fsg_sata_led@GOTPAGEOFF]
	mov	x0, x20
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_11
; %bb.4:
Lloh11:
	adrp	x1, _fsg_usb_led@GOTPAGE
Lloh12:
	ldr	x1, [x1, _fsg_usb_led@GOTPAGEOFF]
	mov	x0, x20
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_12
; %bb.5:
Lloh13:
	adrp	x1, _fsg_sync_led@GOTPAGE
Lloh14:
	ldr	x1, [x1, _fsg_sync_led@GOTPAGEOFF]
	mov	x0, x20
	bl	_led_classdev_register
	tbnz	w0, #31, LBB0_13
; %bb.6:
Lloh15:
	adrp	x1, _fsg_ring_led@GOTPAGE
Lloh16:
	ldr	x1, [x1, _fsg_ring_led@GOTPAGEOFF]
	mov	x0, x20
	bl	_led_classdev_register
	mov	x19, x0
	tbz	w0, #31, LBB0_19
; %bb.7:
Lloh17:
	adrp	x0, _fsg_sync_led@GOTPAGE
Lloh18:
	ldr	x0, [x0, _fsg_sync_led@GOTPAGEOFF]
	bl	_led_classdev_unregister
	b	LBB0_14
LBB0_8:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_19
LBB0_9:
	mov	x19, x0
	b	LBB0_18
LBB0_10:
	mov	x19, x0
	b	LBB0_17
LBB0_11:
	mov	x19, x0
	b	LBB0_16
LBB0_12:
	mov	x19, x0
	b	LBB0_15
LBB0_13:
	mov	x19, x0
LBB0_14:
Lloh22:
	adrp	x0, _fsg_usb_led@GOTPAGE
Lloh23:
	ldr	x0, [x0, _fsg_usb_led@GOTPAGEOFF]
	bl	_led_classdev_unregister
LBB0_15:
Lloh24:
	adrp	x0, _fsg_sata_led@GOTPAGE
Lloh25:
	ldr	x0, [x0, _fsg_sata_led@GOTPAGEOFF]
	bl	_led_classdev_unregister
LBB0_16:
Lloh26:
	adrp	x0, _fsg_wan_led@GOTPAGE
Lloh27:
	ldr	x0, [x0, _fsg_wan_led@GOTPAGEOFF]
	bl	_led_classdev_unregister
LBB0_17:
Lloh28:
	adrp	x0, _fsg_wlan_led@GOTPAGE
Lloh29:
	ldr	x0, [x0, _fsg_wlan_led@GOTPAGEOFF]
	bl	_led_classdev_unregister
LBB0_18:
	ldr	x0, [x21]
	bl	_iounmap
LBB0_19:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_latch_address,8,3              ; @latch_address
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_latch_value,4,2                ; @latch_value
	.comm	_fsg_wlan_led,4,2               ; @fsg_wlan_led
	.comm	_fsg_wan_led,4,2                ; @fsg_wan_led
	.comm	_fsg_sata_led,4,2               ; @fsg_sata_led
	.comm	_fsg_usb_led,4,2                ; @fsg_usb_led
	.comm	_fsg_sync_led,4,2               ; @fsg_sync_led
	.comm	_fsg_ring_led,4,2               ; @fsg_ring_led
	.no_dead_strip	_fsg_led_probe
.subsections_via_symbols
