	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function byt_gpio_probe
_byt_gpio_probe:                        ## @byt_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, %rbx
	leaq	16(%rdi), %r14
	movq	_byt_gpio_chip@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm1, 32(%rdi)
	movups	%xmm0, 16(%rdi)
	movq	(%rdi), %rdi
	callq	_dev_name
	movl	%eax, 40(%rbx)
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rdi
	movq	8(%rbx), %rax
	movq	%rdi, 32(%rbx)
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_byt_init_irq_valid_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	movq	(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_2:
	callq	_dev_name
	movq	8(%rbx), %rcx
	movl	(%rcx), %r8d
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_gpiochip_add_pin_range
	movq	(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	%r12d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r12
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_byt_gpio_irq_init_hw
	movq	_handle_bad_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_byt_irqchip@GOTPCREL(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r13d
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movl	%r13d, %r15d
	jmp	LBB0_9
LBB0_8:
	movl	(%r12), %edx
	movq	_byt_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_byt_irqchip@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_gpiochip_set_chained_irqchip
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_byt_gpio_chip,32,3             ## @byt_gpio_chip
	.comm	_byt_init_irq_valid_mask,4,2    ## @byt_init_irq_valid_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed adding byt-gpio chip\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to add GPIO pin range\n"

	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.comm	_byt_irqchip,4,2                ## @byt_irqchip
	.comm	_handle_bad_irq,4,2             ## @handle_bad_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.2:                               ## @.str.2
	.asciz	"failed to add irqchip\n"

	.comm	_byt_gpio_irq_handler,4,2       ## @byt_gpio_irq_handler
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_byt_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function byt_gpio_probe
_byt_gpio_probe:                        ; @byt_gpio_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, x0
Lloh0:
	adrp	x8, _byt_gpio_chip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _byt_gpio_chip@GOTPAGEOFF]
	add	x19, x0, #16
	ldp	q1, q0, [x8]
	stp	q1, q0, [x0, #16]
	ldr	x0, [x0]
	bl	_dev_name
	str	w0, [x20, #40]
	movi	d0, #0x000000ffffffff
	str	d0, [x20, #16]
	ldp	x0, x8, [x20]
	str	x0, [x20, #32]
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _byt_init_irq_valid_mask@GOTPAGE
Lloh3:
	ldr	x9, [x9, _byt_init_irq_valid_mask@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #24]
	mov	x1, x19
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x21, x0
	ldr	x0, [x20]
	cbz	w21, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	bl	_dev_name
	mov	x1, x0
	ldr	x8, [x20, #8]
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_gpiochip_add_pin_range
	mov	x21, x0
	ldr	x0, [x20]
	cbz	w21, LBB0_6
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	bl	_dev_err
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
Lloh9:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_10
; %bb.7:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_byt_gpio_irq_init_hw
Lloh12:
	adrp	x8, _handle_bad_irq@GOTPAGE
Lloh13:
	ldr	x8, [x8, _handle_bad_irq@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x1, _byt_irqchip@GOTPAGE
Lloh19:
	ldr	x1, [x1, _byt_irqchip@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #0
	bl	_gpiochip_irqchip_add
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.9:
	ldr	x0, [x20]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_10:
	mov	w21, #0
	b	LBB0_5
LBB0_11:
	ldr	w2, [x22]
Lloh22:
	adrp	x8, _byt_gpio_irq_handler@GOTPAGE
Lloh23:
	ldr	x8, [x8, _byt_gpio_irq_handler@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
Lloh25:
	adrp	x1, _byt_irqchip@GOTPAGE
Lloh26:
	ldr	x1, [x1, _byt_irqchip@GOTPAGEOFF]
	mov	x0, x19
	bl	_gpiochip_set_chained_irqchip
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_byt_gpio_chip,32,3             ; @byt_gpio_chip
	.comm	_byt_init_irq_valid_mask,4,2    ; @byt_init_irq_valid_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed adding byt-gpio chip\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to add GPIO pin range\n"

	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.comm	_byt_irqchip,4,2                ; @byt_irqchip
	.comm	_handle_bad_irq,4,2             ; @handle_bad_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.2:                               ; @.str.2
	.asciz	"failed to add irqchip\n"

	.comm	_byt_gpio_irq_handler,4,2       ; @byt_gpio_irq_handler
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_byt_gpio_probe
.subsections_via_symbols
