	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmt_pinctrl_probe              ## -- Begin function wmt_pinctrl_probe
	.p2align	4, 0x90
_wmt_pinctrl_probe:                     ## @wmt_pinctrl_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	%rsi, %rbx
	movq	%rdi, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 44(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	44(%rbx), %edi
	jmp	LBB0_2
LBB0_3:
	movl	40(%rbx), %eax
	movq	_wmt_desc@GOTPCREL(%rip), %r15
	movl	%eax, 4(%r15)
	movl	36(%rbx), %eax
	movl	%eax, (%r15)
	movq	_wmt_gpio_chip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%r14, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	(%rbx), %eax
	shll	$5, %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r14, 24(%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_devm_pinctrl_register
	movl	%eax, 32(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	32(%rbx), %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_10
LBB0_7:
	movq	24(%rbx), %rdi
	callq	_dev_name
	movl	(%rbx), %r8d
	shll	$5, %r8d
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gpiochip_add_pin_range
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_gpiochip_remove
	movl	%ebx, %r15d
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
LBB0_10:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_wmt_desc,8,2                   ## @wmt_desc
	.comm	_wmt_gpio_chip,16,3             ## @wmt_gpio_chip
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register pinctrl\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not add GPIO chip\n"

L_.str.2:                               ## @.str.2
	.asciz	"Pin controller initialized\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmt_pinctrl_probe              ; -- Begin function wmt_pinctrl_probe
	.p2align	2
_wmt_pinctrl_probe:                     ; @wmt_pinctrl_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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #44]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #44]
	b	LBB0_4
LBB0_2:
	ldur	d0, [x20, #36]
Lloh3:
	adrp	x22, _wmt_desc@GOTPAGE
Lloh4:
	ldr	x22, [x22, _wmt_desc@GOTPAGEOFF]
	str	d0, [x22]
Lloh5:
	adrp	x8, _wmt_gpio_chip@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wmt_gpio_chip@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mov	x21, x20
	str	x8, [x21, #8]!
	str	x19, [x20, #16]
	ldr	w8, [x19]
	str	w8, [x20, #12]
	ldr	w8, [x20]
	lsl	w8, w8, #5
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	str	x19, [x20, #24]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_devm_pinctrl_register
	str	w0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #32]
LBB0_4:
	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	_PTR_ERR
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_gpiochip_add_data
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_7:
	ldr	x0, [x20, #24]
	bl	_dev_name
	mov	x1, x0
	ldr	w8, [x20]
	lsl	w4, w8, #5
	mov	x0, x21
	mov	w2, #0
	mov	w3, #0
	bl	_gpiochip_add_pin_range
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_gpiochip_remove
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_10:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_wmt_desc,8,2                   ; @wmt_desc
	.comm	_wmt_gpio_chip,16,3             ; @wmt_gpio_chip
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register pinctrl\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not add GPIO chip\n"

l_.str.2:                               ; @.str.2
	.asciz	"Pin controller initialized\n"

.subsections_via_symbols
