	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_led_probe
_s3c24xx_led_probe:                     ## @s3c24xx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_s3c24xx_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	12(%r12), %eax
	movl	%eax, 8(%r15)
	movl	8(%r12), %eax
	movl	%eax, 4(%r15)
	movq	_LED_CORE_SUSPENDRESUME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	%r12, 16(%r15)
	movl	4(%r12), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_devm_gpio_request
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	4(%r12), %edi
	movq	_S3C_GPIO_PULL_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_s3c_gpio_setpull
	movl	(%r12), %eax
	movl	4(%r12), %edi
	movq	_S3C24XX_LEDF_TRISTATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	callq	_gpio_direction_input
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_S3C24XX_LEDF_ACTLOW@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	andl	(%rcx), %eax
	setne	%sil
	callq	_gpio_direction_output
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_led_classdev_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_s3c24xx_led_set,4,2            ## @s3c24xx_led_set
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ## @LED_CORE_SUSPENDRESUME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S3C24XX_LED"

	.comm	_S3C_GPIO_PULL_NONE,4,2         ## @S3C_GPIO_PULL_NONE
	.comm	_S3C24XX_LEDF_TRISTATE,4,2      ## @S3C24XX_LEDF_TRISTATE
	.comm	_S3C24XX_LEDF_ACTLOW,4,2        ## @S3C24XX_LEDF_ACTLOW
L_.str.1:                               ## @.str.1
	.asciz	"led_classdev_register failed\n"

	.no_dead_strip	_s3c24xx_led_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_led_probe
_s3c24xx_led_probe:                     ; @s3c24xx_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	x19, x0
	bl	_dev_get_platdata
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _s3c24xx_led_set@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s3c24xx_led_set@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #12]
	ldr	d0, [x21, #8]
	stur	d0, [x0, #4]
Lloh6:
	adrp	x8, _LED_CORE_SUSPENDRESUME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LED_CORE_SUSPENDRESUME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
	str	x21, [x0, #16]
	ldr	w1, [x21, #4]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_gpio_request
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w0, [x21, #4]
Lloh11:
	adrp	x8, _S3C_GPIO_PULL_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S3C_GPIO_PULL_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_s3c_gpio_setpull
Lloh14:
	adrp	x8, _S3C24XX_LEDF_TRISTATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _S3C24XX_LEDF_TRISTATE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x8]
	ldp	w8, w0, [x21]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	bl	_gpio_direction_input
	b	LBB0_7
LBB0_4:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_5:
	mov	x22, x0
	b	LBB0_9
LBB0_6:
Lloh20:
	adrp	x9, _S3C24XX_LEDF_ACTLOW@GOTPAGE
Lloh21:
	ldr	x9, [x9, _S3C24XX_LEDF_ACTLOW@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	bl	_gpio_direction_output
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_led_classdev_register
	mov	x22, x0
	tbz	w0, #31, LBB0_9
; %bb.8:
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_s3c24xx_led_set,4,2            ; @s3c24xx_led_set
	.comm	_LED_CORE_SUSPENDRESUME,4,2     ; @LED_CORE_SUSPENDRESUME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S3C24XX_LED"

	.comm	_S3C_GPIO_PULL_NONE,4,2         ; @S3C_GPIO_PULL_NONE
	.comm	_S3C24XX_LEDF_TRISTATE,4,2      ; @S3C24XX_LEDF_TRISTATE
	.comm	_S3C24XX_LEDF_ACTLOW,4,2        ; @S3C24XX_LEDF_ACTLOW
l_.str.1:                               ; @.str.1
	.asciz	"led_classdev_register failed\n"

	.no_dead_strip	_s3c24xx_led_probe
.subsections_via_symbols
