	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$2, %edi
	callq	_IXP4XX_EXP_BUS_BASE
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$512, %edx                      ## imm = 0x200
	callq	_devm_ioremap
	movq	_latch_address@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	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	%rbx, %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:
	movq	_fsg_wan_led@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	js	LBB0_7
## %bb.4:
	movq	_fsg_sata_led@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	js	LBB0_7
## %bb.5:
	movq	_fsg_usb_led@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	_fsg_sync_led@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_led_classdev_register
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_fsg_ring_led@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_devm_led_classdev_register     ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	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	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, x0
	mov	w0, #2
	bl	_IXP4XX_EXP_BUS_BASE
	mov	x1, x0
	mov	x0, x19
	mov	w2, #512
	bl	_devm_ioremap
Lloh0:
	adrp	x8, _latch_address@GOTPAGE
Lloh1:
	ldr	x8, [x8, _latch_address@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	cbz	x0, LBB0_7
; %bb.1:
Lloh3:
	adrp	x8, _latch_value@GOTPAGE
Lloh4:
	ldr	x8, [x8, _latch_value@GOTPAGEOFF]
	mov	w9, #65535
Lloh5:
	str	w9, [x8]
	str	w9, [x0]
Lloh6:
	adrp	x1, _fsg_wlan_led@GOTPAGE
Lloh7:
	ldr	x1, [x1, _fsg_wlan_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_led_classdev_register
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh8:
	adrp	x1, _fsg_wan_led@GOTPAGE
Lloh9:
	ldr	x1, [x1, _fsg_wan_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_led_classdev_register
	tbnz	w0, #31, LBB0_8
; %bb.3:
Lloh10:
	adrp	x1, _fsg_sata_led@GOTPAGE
Lloh11:
	ldr	x1, [x1, _fsg_sata_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_led_classdev_register
	tbnz	w0, #31, LBB0_8
; %bb.4:
Lloh12:
	adrp	x1, _fsg_usb_led@GOTPAGE
Lloh13:
	ldr	x1, [x1, _fsg_usb_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_led_classdev_register
	tbnz	w0, #31, LBB0_8
; %bb.5:
Lloh14:
	adrp	x1, _fsg_sync_led@GOTPAGE
Lloh15:
	ldr	x1, [x1, _fsg_sync_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_led_classdev_register
	tbnz	w0, #31, LBB0_8
; %bb.6:
Lloh16:
	adrp	x1, _fsg_ring_led@GOTPAGE
Lloh17:
	ldr	x1, [x1, _fsg_ring_led@GOTPAGEOFF]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_devm_led_classdev_register
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.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
