	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl061_probe
_pl061_probe:                           ## @pl061_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$160, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	leaq	12(%r14), %rsi
	movq	%r15, %rdi
	callq	_devm_ioremap_resource
	movq	%rax, 144(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	144(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	leaq	152(%rbx), %rdi
	callq	_raw_spin_lock_init
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_gpiochip_generic_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%rbx)
	movq	_gpiochip_generic_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%rbx)
LBB0_5:
	movl	$-1, 8(%rbx)
	movq	_pl061_get_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 100(%rbx)
	movq	_pl061_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_pl061_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 92(%rbx)
	movq	_pl061_get_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movq	_pl061_set_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_PL061_GPIO_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	%r15, %rdi
	callq	_dev_name
	movq	%rax, 72(%rbx)
	movq	%r15, 64(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movq	%r15, %rdi
	callq	_dev_name
	movq	%rax, 136(%rbx)
	movq	_pl061_irq_ack@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%rbx)
	movq	_pl061_irq_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%rbx)
	movq	_pl061_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 120(%rbx)
	movq	_pl061_irq_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 116(%rbx)
	movq	_pl061_irq_set_wake@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 112(%rbx)
	movq	_GPIOIE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	144(%rbx), %rsi
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	callq	_writeb
	movq	(%r14), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	js	LBB0_12
## %bb.6:
	leaq	112(%rbx), %rax
	movl	%r13d, (%rbx)
	movq	%rax, 48(%rbx)
	movq	_pl061_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movl	$1, 16(%rbx)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$1, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rsi
	addq	$8, %rsi
	movl	%r13d, (%rax)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_handle_bad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_amba_set_drvdata
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_10:
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio-ranges"

	.comm	_gpiochip_generic_request,4,2   ## @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ## @gpiochip_generic_free
	.comm	_pl061_get_direction,4,2        ## @pl061_get_direction
	.comm	_pl061_direction_input,4,2      ## @pl061_direction_input
	.comm	_pl061_direction_output,4,2     ## @pl061_direction_output
	.comm	_pl061_get_value,4,2            ## @pl061_get_value
	.comm	_pl061_set_value,4,2            ## @pl061_set_value
	.comm	_PL061_GPIO_NR,4,2              ## @PL061_GPIO_NR
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_pl061_irq_ack,4,2              ## @pl061_irq_ack
	.comm	_pl061_irq_mask,4,2             ## @pl061_irq_mask
	.comm	_pl061_irq_unmask,4,2           ## @pl061_irq_unmask
	.comm	_pl061_irq_type,4,2             ## @pl061_irq_type
	.comm	_pl061_irq_set_wake,4,2         ## @pl061_irq_set_wake
	.comm	_GPIOIE,8,3                     ## @GPIOIE
L_.str.1:                               ## @.str.1
	.asciz	"invalid IRQ\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_pl061_irq_handler,4,2          ## @pl061_irq_handler
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_handle_bad_irq,4,2             ## @handle_bad_irq
L_.str.2:                               ## @.str.2
	.asciz	"PL061 GPIO chip registered\n"

	.no_dead_strip	_pl061_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl061_probe
_pl061_probe:                           ; @pl061_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	add	x19, x0, #8
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #160
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	add	x1, x20, #12
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x21, #144]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x21, #144]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	add	x0, x21, #152
	bl	_raw_spin_lock_init
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
	cbz	x0, LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _gpiochip_generic_request@GOTPAGE
Lloh5:
	ldr	x8, [x8, _gpiochip_generic_request@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _gpiochip_generic_free@GOTPAGE
Lloh8:
	ldr	x9, [x9, _gpiochip_generic_free@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #104]
LBB0_5:
	mov	w8, #-1
	mov	x22, x21
	str	w8, [x22, #8]!
Lloh10:
	adrp	x8, _pl061_get_direction@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pl061_get_direction@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _pl061_direction_input@GOTPAGE
Lloh14:
	ldr	x9, [x9, _pl061_direction_input@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #96]
Lloh16:
	adrp	x8, _pl061_direction_output@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pl061_direction_output@GOTPAGEOFF]
Lloh18:
	adrp	x9, _pl061_get_value@GOTPAGE
Lloh19:
	ldr	x9, [x9, _pl061_get_value@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #88]
Lloh22:
	adrp	x8, _pl061_set_value@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pl061_set_value@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _PL061_GPIO_NR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PL061_GPIO_NR@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #80]
	mov	x0, x19
	bl	_dev_name
	stp	x19, x0, [x21, #64]
Lloh28:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x21, #56]
	mov	x0, x19
	bl	_dev_name
Lloh31:
	adrp	x8, _pl061_irq_set_wake@GOTPAGE
Lloh32:
	ldr	x8, [x8, _pl061_irq_set_wake@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	mov	x24, x21
	str	w8, [x24, #112]!
	str	x0, [x24, #24]
Lloh34:
	adrp	x8, _pl061_irq_ack@GOTPAGE
Lloh35:
	ldr	x8, [x8, _pl061_irq_ack@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _pl061_irq_mask@GOTPAGE
Lloh38:
	ldr	x9, [x9, _pl061_irq_mask@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _pl061_irq_unmask@GOTPAGE
Lloh41:
	ldr	x10, [x10, _pl061_irq_unmask@GOTPAGEOFF]
	stp	w9, w8, [x24, #12]
Lloh42:
	ldr	w8, [x10]
Lloh43:
	adrp	x9, _pl061_irq_type@GOTPAGE
Lloh44:
	ldr	x9, [x9, _pl061_irq_type@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	stp	w9, w8, [x24, #4]
	ldr	x8, [x24, #32]
Lloh46:
	adrp	x9, _GPIOIE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _GPIOIE@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	ldr	x8, [x20]
	ldr	w25, [x8]
	tbnz	w25, #31, LBB0_12
; %bb.6:
	str	w25, [x21]
Lloh49:
	adrp	x8, _pl061_irq_handler@GOTPAGE
Lloh50:
	ldr	x8, [x8, _pl061_irq_handler@GOTPAGEOFF]
	str	x24, [x21, #48]
Lloh51:
	ldr	w8, [x8]
	str	w8, [x21, #40]
	mov	w8, #1
	str	w8, [x21, #16]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x21, #24]
	cbz	x0, LBB0_9
; %bb.7:
	str	w25, [x0]
Lloh52:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _handle_bad_irq@GOTPAGE
Lloh56:
	ldr	x9, [x9, _handle_bad_irq@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #32]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_devm_gpiochip_add_data
	cbnz	w0, LBB0_11
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_amba_set_drvdata
Lloh58:
	adrp	x1, l_.str.2@PAGE
Lloh59:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh60:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh61:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh62:
	adrp	x1, l_.str.1@PAGE
Lloh63:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh64:
	adrp	x8, _ENODEV@GOTPAGE
Lloh65:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpAdd	Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio-ranges"

	.comm	_gpiochip_generic_request,4,2   ; @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ; @gpiochip_generic_free
	.comm	_pl061_get_direction,4,2        ; @pl061_get_direction
	.comm	_pl061_direction_input,4,2      ; @pl061_direction_input
	.comm	_pl061_direction_output,4,2     ; @pl061_direction_output
	.comm	_pl061_get_value,4,2            ; @pl061_get_value
	.comm	_pl061_set_value,4,2            ; @pl061_set_value
	.comm	_PL061_GPIO_NR,4,2              ; @PL061_GPIO_NR
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_pl061_irq_ack,4,2              ; @pl061_irq_ack
	.comm	_pl061_irq_mask,4,2             ; @pl061_irq_mask
	.comm	_pl061_irq_unmask,4,2           ; @pl061_irq_unmask
	.comm	_pl061_irq_type,4,2             ; @pl061_irq_type
	.comm	_pl061_irq_set_wake,4,2         ; @pl061_irq_set_wake
	.comm	_GPIOIE,8,3                     ; @GPIOIE
l_.str.1:                               ; @.str.1
	.asciz	"invalid IRQ\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_pl061_irq_handler,4,2          ; @pl061_irq_handler
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_handle_bad_irq,4,2             ; @handle_bad_irq
l_.str.2:                               ; @.str.2
	.asciz	"PL061 GPIO chip registered\n"

	.no_dead_strip	_pl061_probe
.subsections_via_symbols
