	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hlwd_gpio_probe
_hlwd_gpio_probe:                       ## @hlwd_gpio_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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 80(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	80(%r12), %rsi
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	movq	%rsi, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	_HW_GPIO_OWNER@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	$-1, %edi
	callq	_iowrite32be
	leaq	8(%r12), %r15
	movq	80(%r12), %rax
	movq	_HW_GPIOB_IN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	_HW_GPIOB_OUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	addq	%rax, %r8
	movq	_HW_GPIOB_DIR@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
	movq	_BGPIOF_BIG_ENDIAN_BYTE_ORDER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	$0
	pushq	%rax
	callq	_bgpio_init
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	$32, -44(%rbp)
	movl	$32, %eax
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_14
LBB0_6:
	movl	-44(%rbp), %eax
LBB0_8:
	movl	%eax, 8(%r12)
	movq	_HW_GPIOB_INTMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	80(%r12), %rsi
	xorl	%edi, %edi
	callq	_iowrite32be
	movq	_HW_GPIOB_INTFLAG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	80(%r12), %rsi
	movl	$-1, %edi
	callq	_iowrite32be
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r12)
	testq	%rax, %rax
	js	LBB0_10
## %bb.11:
	movq	%r14, %rdi
	callq	_dev_name
	movq	%r12, %rcx
	addq	$56, %rcx
	movl	%eax, 72(%r12)
	movq	_hlwd_gpio_irq_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12)
	movq	_hlwd_gpio_irq_unmask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	_hlwd_gpio_irq_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r12)
	movq	_hlwd_gpio_irq_set_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movq	%rcx, 48(%r12)
	movq	_hlwd_gpio_irqhandler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movl	$1, 16(%r12)
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.12:
	movl	(%r12), %ecx
	movl	%ecx, (%rax)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_handle_level_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
LBB0_13:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_devm_gpiochip_add_data
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_dev_info
	movl	(%r12), %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HW_GPIO_OWNER,8,3              ## @HW_GPIO_OWNER
	.comm	_HW_GPIOB_IN,8,3                ## @HW_GPIOB_IN
	.comm	_HW_GPIOB_OUT,8,3               ## @HW_GPIOB_OUT
	.comm	_HW_GPIOB_DIR,8,3               ## @HW_GPIOB_DIR
	.comm	_BGPIOF_BIG_ENDIAN_BYTE_ORDER,4,2 ## @BGPIOF_BIG_ENDIAN_BYTE_ORDER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bgpio_init failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"ngpios"

	.comm	_HW_GPIOB_INTMASK,8,3           ## @HW_GPIOB_INTMASK
	.comm	_HW_GPIOB_INTFLAG,8,3           ## @HW_GPIOB_INTFLAG
L_.str.2:                               ## @.str.2
	.asciz	"interrupt-controller"

L_.str.3:                               ## @.str.3
	.asciz	"platform_get_irq returned %d\n"

	.comm	_hlwd_gpio_irq_mask,4,2         ## @hlwd_gpio_irq_mask
	.comm	_hlwd_gpio_irq_unmask,4,2       ## @hlwd_gpio_irq_unmask
	.comm	_hlwd_gpio_irq_enable,4,2       ## @hlwd_gpio_irq_enable
	.comm	_hlwd_gpio_irq_set_type,4,2     ## @hlwd_gpio_irq_set_type
	.comm	_hlwd_gpio_irqhandler,4,2       ## @hlwd_gpio_irqhandler
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_handle_level_irq,4,2           ## @handle_level_irq
	.no_dead_strip	_hlwd_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hlwd_gpio_probe
_hlwd_gpio_probe:                       ; @hlwd_gpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #80]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #80]
	cbz	x8, LBB0_3
; %bb.2:
	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
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh2:
	adrp	x8, _HW_GPIO_OWNER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HW_GPIO_OWNER@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x1, x8, x0
	mov	w0, #-1
	bl	_iowrite32be
	add	x21, x20, #8
	ldr	x8, [x20, #80]
Lloh5:
	adrp	x9, _HW_GPIOB_IN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HW_GPIOB_IN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x3, x9, x8
Lloh8:
	adrp	x9, _HW_GPIOB_OUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HW_GPIOB_OUT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _HW_GPIOB_DIR@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HW_GPIOB_DIR@GOTPAGEOFF]
	add	x4, x9, x8
Lloh13:
	ldr	x9, [x10]
	add	x6, x9, x8
Lloh14:
	adrp	x8, _BGPIOF_BIG_ENDIAN_BYTE_ORDER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BGPIOF_BIG_ENDIAN_BYTE_ORDER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	x1, x19
	mov	w2, #4
	mov	x5, #0
	mov	x7, #0
	bl	_bgpio_init
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	w0, LBB0_7
; %bb.5:
	mov	w8, #32
	str	w8, [sp, #12]
	b	LBB0_8
LBB0_6:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_warn
	b	LBB0_14
LBB0_7:
	ldr	w8, [sp, #12]
LBB0_8:
	str	w8, [x20, #8]
	ldr	x8, [x20, #80]
Lloh21:
	adrp	x9, _HW_GPIOB_INTMASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HW_GPIOB_INTMASK@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32be
	ldr	x8, [x20, #80]
Lloh24:
	adrp	x9, _HW_GPIOB_INTFLAG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HW_GPIOB_INTFLAG@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_iowrite32be
	ldr	w0, [x19]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_property_read_bool
	cbz	x0, LBB0_12
; %bb.9:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20]
	tbnz	x0, #63, LBB0_15
; %bb.10:
	mov	x0, x19
	bl	_dev_name
Lloh29:
	adrp	x8, _hlwd_gpio_irq_set_type@GOTPAGE
Lloh30:
	ldr	x8, [x8, _hlwd_gpio_irq_set_type@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	mov	x22, x20
	str	w8, [x22, #56]!
Lloh32:
	adrp	x8, _hlwd_gpio_irq_mask@GOTPAGE
Lloh33:
	ldr	x8, [x8, _hlwd_gpio_irq_mask@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	stp	w8, w0, [x22, #12]
Lloh35:
	adrp	x8, _hlwd_gpio_irq_unmask@GOTPAGE
Lloh36:
	ldr	x8, [x8, _hlwd_gpio_irq_unmask@GOTPAGEOFF]
Lloh37:
	adrp	x9, _hlwd_gpio_irq_enable@GOTPAGE
Lloh38:
	ldr	x9, [x9, _hlwd_gpio_irq_enable@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #4]
Lloh41:
	adrp	x8, _hlwd_gpio_irqhandler@GOTPAGE
Lloh42:
	ldr	x8, [x8, _hlwd_gpio_irqhandler@GOTPAGEOFF]
	stur	x22, [x22, #-8]
Lloh43:
	ldr	w8, [x8]
	stur	w8, [x22, #-16]
	mov	w8, #1
	stur	w8, [x22, #-40]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	bl	_devm_kcalloc
	stur	x0, [x22, #-32]
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x20]
	str	w8, [x0]
Lloh44:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _handle_level_irq@GOTPAGE
Lloh48:
	ldr	x9, [x9, _handle_level_irq@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #32]
LBB0_12:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x22, x0
	b	LBB0_14
LBB0_13:
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_14:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_15:
	mov	x2, x0
Lloh53:
	adrp	x1, l_.str.3@PAGE
Lloh54:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w22, [x20]
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh39
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HW_GPIO_OWNER,8,3              ; @HW_GPIO_OWNER
	.comm	_HW_GPIOB_IN,8,3                ; @HW_GPIOB_IN
	.comm	_HW_GPIOB_OUT,8,3               ; @HW_GPIOB_OUT
	.comm	_HW_GPIOB_DIR,8,3               ; @HW_GPIOB_DIR
	.comm	_BGPIOF_BIG_ENDIAN_BYTE_ORDER,4,2 ; @BGPIOF_BIG_ENDIAN_BYTE_ORDER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bgpio_init failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"ngpios"

	.comm	_HW_GPIOB_INTMASK,8,3           ; @HW_GPIOB_INTMASK
	.comm	_HW_GPIOB_INTFLAG,8,3           ; @HW_GPIOB_INTFLAG
l_.str.2:                               ; @.str.2
	.asciz	"interrupt-controller"

l_.str.3:                               ; @.str.3
	.asciz	"platform_get_irq returned %d\n"

	.comm	_hlwd_gpio_irq_mask,4,2         ; @hlwd_gpio_irq_mask
	.comm	_hlwd_gpio_irq_unmask,4,2       ; @hlwd_gpio_irq_unmask
	.comm	_hlwd_gpio_irq_enable,4,2       ; @hlwd_gpio_irq_enable
	.comm	_hlwd_gpio_irq_set_type,4,2     ; @hlwd_gpio_irq_set_type
	.comm	_hlwd_gpio_irqhandler,4,2       ; @hlwd_gpio_irqhandler
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_handle_level_irq,4,2           ; @handle_level_irq
	.no_dead_strip	_hlwd_gpio_probe
.subsections_via_symbols
