	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dln2_gpio_probe
_dln2_gpio_probe:                       ## @dln2_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dln2_gpio_get_pin_count
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	_DLN2_GPIO_MAX_PINS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %r15d
	jle	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_warn
	movl	%ebx, %r15d
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$72, %rdi
	callq	_mutex_init
	movq	%r14, 64(%rbx)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, (%rbx)
	movq	%r14, 56(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movl	$-1, 8(%rbx)
	movl	%r15d, 12(%rbx)
	movl	$1, 16(%rbx)
	movq	_dln2_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_dln2_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_dln2_gpio_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_dln2_gpio_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_dln2_gpio_get_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_dln2_gpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_dln2_gpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_dln2_gpio_set_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_dln2_gpio_irqchip@GOTPCREL(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	_DLN2_GPIO_CONDITION_MET_EV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_dln2_gpio_event@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_dln2_register_event_cb
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_8:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get pin count: %d\n"

	.comm	_DLN2_GPIO_MAX_PINS,4,2         ## @DLN2_GPIO_MAX_PINS
L_.str.1:                               ## @.str.1
	.asciz	"clamping pins to %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"dln2"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_dln2_gpio_set,4,2              ## @dln2_gpio_set
	.comm	_dln2_gpio_get,4,2              ## @dln2_gpio_get
	.comm	_dln2_gpio_request,4,2          ## @dln2_gpio_request
	.comm	_dln2_gpio_free,4,2             ## @dln2_gpio_free
	.comm	_dln2_gpio_get_direction,4,2    ## @dln2_gpio_get_direction
	.comm	_dln2_gpio_direction_input,4,2  ## @dln2_gpio_direction_input
	.comm	_dln2_gpio_direction_output,4,2 ## @dln2_gpio_direction_output
	.comm	_dln2_gpio_set_config,4,2       ## @dln2_gpio_set_config
L_.str.3:                               ## @.str.3
	.asciz	"failed to add gpio chip: %d\n"

	.comm	_dln2_gpio_irqchip,4,2          ## @dln2_gpio_irqchip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.4:                               ## @.str.4
	.asciz	"failed to add irq chip: %d\n"

	.comm	_DLN2_GPIO_CONDITION_MET_EV,4,2 ## @DLN2_GPIO_CONDITION_MET_EV
	.comm	_dln2_gpio_event,4,2            ## @dln2_gpio_event
L_.str.5:                               ## @.str.5
	.asciz	"failed to register event cb: %d\n"

	.no_dead_strip	_dln2_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dln2_gpio_probe
_dln2_gpio_probe:                       ; @dln2_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	x19, x0
	bl	_dln2_gpio_get_pin_count
	mov	x20, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _DLN2_GPIO_MAX_PINS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DLN2_GPIO_MAX_PINS@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	cmp	w20, w21
	b.le	LBB0_3
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_warn
	mov	x20, x21
LBB0_3:
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	add	x0, x0, #72
	bl	_mutex_init
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [x21]
	stp	x19, x19, [x21, #56]
Lloh10:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mov	w9, #-1
	stp	w9, w20, [x21, #8]
	mov	w9, #1
Lloh13:
	adrp	x10, _dln2_gpio_set@GOTPAGE
Lloh14:
	ldr	x10, [x10, _dln2_gpio_set@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	stp	w10, w8, [x21, #48]
Lloh16:
	adrp	x8, _dln2_gpio_get@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dln2_gpio_get@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x10, _dln2_gpio_request@GOTPAGE
Lloh20:
	ldr	x10, [x10, _dln2_gpio_request@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	stp	w10, w8, [x21, #40]
Lloh22:
	adrp	x8, _dln2_gpio_free@GOTPAGE
Lloh23:
	ldr	x8, [x8, _dln2_gpio_free@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x10, _dln2_gpio_get_direction@GOTPAGE
Lloh26:
	ldr	x10, [x10, _dln2_gpio_get_direction@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
Lloh28:
	adrp	x11, _dln2_gpio_direction_input@GOTPAGE
Lloh29:
	ldr	x11, [x11, _dln2_gpio_direction_input@GOTPAGEOFF]
	stp	w10, w8, [x21, #32]
Lloh30:
	ldr	w8, [x11]
Lloh31:
	adrp	x10, _dln2_gpio_direction_output@GOTPAGE
Lloh32:
	ldr	x10, [x10, _dln2_gpio_direction_output@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	stp	w10, w8, [x21, #24]
Lloh34:
	adrp	x8, _dln2_gpio_set_config@GOTPAGE
Lloh35:
	ldr	x8, [x8, _dln2_gpio_set_config@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	stp	w9, w8, [x21, #16]
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	bl	_devm_gpiochip_add_data
	tbnz	w0, #31, LBB0_10
; %bb.5:
Lloh37:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh38:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
Lloh40:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh42:
	ldr	w4, [x8]
Lloh43:
	adrp	x1, _dln2_gpio_irqchip@GOTPAGE
Lloh44:
	ldr	x1, [x1, _dln2_gpio_irqchip@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #0
	bl	_gpiochip_irqchip_add
	tbnz	w0, #31, LBB0_11
; %bb.6:
Lloh45:
	adrp	x8, _DLN2_GPIO_CONDITION_MET_EV@GOTPAGE
Lloh46:
	ldr	x8, [x8, _DLN2_GPIO_CONDITION_MET_EV@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _dln2_gpio_event@GOTPAGE
Lloh49:
	ldr	x8, [x8, _dln2_gpio_event@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_dln2_register_event_cb
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.7:
Lloh51:
	adrp	x1, l_.str.5@PAGE
Lloh52:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh53:
	adrp	x1, l_.str@PAGE
Lloh54:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh55:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh56:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_10:
	mov	x20, x0
Lloh58:
	adrp	x1, l_.str.3@PAGE
Lloh59:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	x20, x0
Lloh60:
	adrp	x1, l_.str.4@PAGE
Lloh61:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_13:
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get pin count: %d\n"

	.comm	_DLN2_GPIO_MAX_PINS,4,2         ; @DLN2_GPIO_MAX_PINS
l_.str.1:                               ; @.str.1
	.asciz	"clamping pins to %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"dln2"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_dln2_gpio_set,4,2              ; @dln2_gpio_set
	.comm	_dln2_gpio_get,4,2              ; @dln2_gpio_get
	.comm	_dln2_gpio_request,4,2          ; @dln2_gpio_request
	.comm	_dln2_gpio_free,4,2             ; @dln2_gpio_free
	.comm	_dln2_gpio_get_direction,4,2    ; @dln2_gpio_get_direction
	.comm	_dln2_gpio_direction_input,4,2  ; @dln2_gpio_direction_input
	.comm	_dln2_gpio_direction_output,4,2 ; @dln2_gpio_direction_output
	.comm	_dln2_gpio_set_config,4,2       ; @dln2_gpio_set_config
l_.str.3:                               ; @.str.3
	.asciz	"failed to add gpio chip: %d\n"

	.comm	_dln2_gpio_irqchip,4,2          ; @dln2_gpio_irqchip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.4:                               ; @.str.4
	.asciz	"failed to add irq chip: %d\n"

	.comm	_DLN2_GPIO_CONDITION_MET_EV,4,2 ; @DLN2_GPIO_CONDITION_MET_EV
	.comm	_dln2_gpio_event,4,2            ; @dln2_gpio_event
l_.str.5:                               ; @.str.5
	.asciz	"failed to register event cb: %d\n"

	.no_dead_strip	_dln2_gpio_probe
.subsections_via_symbols
