	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1363_probe
_max1363_probe:                         ## @max1363_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	8(%r14), %eax
	movl	%eax, 24(%r12)
	movl	12(%r14), %esi
	movq	%r12, %rdi
	callq	_iio_map_array_register
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_32
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_33
LBB0_3:
	movl	%eax, %r13d
	jmp	LBB0_33
LBB0_6:
	callq	_regulator_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_32
## %bb.7:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_max1363_chip_info_tbl@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	leaq	(%rax,%rax,4), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, 32(%rbx)
LBB0_9:
	movq	%r14, 24(%rbx)
	imull	$1000, (%rax), %eax             ## imm = 0x3E8
	movl	%eax, (%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
LBB0_15:
	movl	16(%r14), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_i2c_master_recv@GOTPCREL(%rip), %rax
	movq	_i2c_master_send@GOTPCREL(%rip), %rcx
LBB0_20:
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rbx)
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r12, %rdi
	callq	_max1363_alloc_scan_masks
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.21:
	movq	%r15, 32(%r12)
	movl	(%r15), %eax
	movl	%eax, 24(%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, 16(%r12)
	movq	32(%rbx), %rax
	movl	16(%rax), %ecx
	movl	%ecx, 12(%r12)
	movl	12(%rax), %ecx
	movl	%ecx, 8(%r12)
	movl	8(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%rbx, %rdi
	callq	_max1363_initial_setup
	testl	%eax, %eax
	js	LBB0_22
## %bb.23:
	movq	_max1363_trigger_handler@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.24:
	cmpq	$0, (%r14)
	je	LBB0_26
## %bb.25:
	movq	24(%rbx), %rax
	movq	(%rax), %rsi
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	(%rax), %r8d
	movq	%r12, (%rsp)
	movq	_max1363_event_handler@GOTPCREL(%rip), %rcx
	leaq	L_.str.2(%rip), %r9
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_devm_request_threaded_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_28
LBB0_26:
	movq	%r12, %rdi
	callq	_iio_device_register
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jns	LBB0_33
## %bb.27:
	movl	%eax, %r13d
LBB0_28:
	movq	%r12, %rdi
	callq	_iio_triggered_buffer_cleanup
	jmp	LBB0_29
LBB0_10:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_regulator_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_29
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, 16(%rbx)
	callq	_regulator_get_voltage
	testl	%eax, %eax
	jle	LBB0_12
## %bb.14:
	movl	%eax, (%rbx)
	jmp	LBB0_15
LBB0_17:
	movl	16(%r14), %edi
	movq	_I2C_FUNC_SMBUS_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testq	%rax, %rax
	je	LBB0_34
## %bb.18:
	movq	32(%rbx), %rax
	cmpl	$8, 4(%rax)
	jne	LBB0_34
## %bb.19:
	movq	_max1363_smbus_recv@GOTPCREL(%rip), %rax
	movq	_max1363_smbus_send@GOTPCREL(%rip), %rcx
	jmp	LBB0_20
LBB0_34:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_22:
	movl	%eax, %r13d
	jmp	LBB0_29
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_29:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	callq	_regulator_disable
LBB0_31:
	movq	8(%rbx), %rdi
	callq	_regulator_disable
LBB0_32:
	movq	%r12, %rdi
	callq	_iio_map_array_unregister
LBB0_33:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

	.comm	_max1363_chip_info_tbl,8,3      ## @max1363_chip_info_tbl
L_.str.1:                               ## @.str.1
	.asciz	"vref"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.comm	_i2c_master_send,4,2            ## @i2c_master_send
	.comm	_i2c_master_recv,4,2            ## @i2c_master_recv
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ## @I2C_FUNC_SMBUS_BYTE
	.comm	_max1363_smbus_send,4,2         ## @max1363_smbus_send
	.comm	_max1363_smbus_recv,4,2         ## @max1363_smbus_recv
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_max1363_trigger_handler,4,2    ## @max1363_trigger_handler
	.comm	_max1363_event_handler,4,2      ## @max1363_event_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"max1363_event"

	.no_dead_strip	_max1363_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max1363_probe
_max1363_probe:                         ; @max1363_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	x23, x1
	mov	x22, x0
	add	x21, x0, #8
	mov	x0, x21
	mov	w1, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldp	w8, w1, [x22, #8]
	str	w8, [x0, #24]
	bl	_iio_map_array_register
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_iio_priv
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #8]
	cbz	x8, LBB0_6
; %bb.3:
	bl	_PTR_ERR
	mov	x24, x0
	b	LBB0_32
LBB0_4:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_33
LBB0_5:
	mov	x24, x0
	b	LBB0_33
LBB0_6:
	bl	_regulator_enable
	mov	x24, x0
	cbnz	w0, LBB0_32
; %bb.7:
	mov	x0, x22
	mov	x1, x19
	bl	_i2c_set_clientdata
	mov	x0, x21
	bl	_of_device_get_match_data
	str	x0, [x20, #32]
	cbnz	x0, LBB0_9
; %bb.8:
Lloh5:
	adrp	x8, _max1363_chip_info_tbl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _max1363_chip_info_tbl@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x23]
	mov	w10, #20
	madd	x0, x9, x10, x8
	str	x0, [x20, #32]
LBB0_9:
	str	x22, [x20, #24]
	ldr	w8, [x0]
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get_optional
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_19
LBB0_10:
	ldr	w0, [x22, #16]
Lloh10:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_22
; %bb.11:
Lloh13:
	adrp	x8, _i2c_master_recv@GOTPAGE
Lloh14:
	ldr	x8, [x8, _i2c_master_recv@GOTPAGEOFF]
Lloh15:
	adrp	x9, _i2c_master_send@GOTPAGE
Lloh16:
	ldr	x9, [x9, _i2c_master_send@GOTPAGEOFF]
LBB0_12:
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w8, w9, [x20, #40]
	mov	x0, x19
	bl	_max1363_alloc_scan_masks
	mov	x24, x0
	cbnz	w0, LBB0_29
; %bb.13:
	str	x21, [x19, #32]
	ldr	w8, [x21]
	str	w8, [x19, #24]
	ldr	w8, [x23, #8]
	ldr	x9, [x20, #32]
	ldr	w10, [x9, #16]
	stp	w10, w8, [x19, #12]
	ldr	d0, [x9, #8]
	stur	d0, [x19, #4]
Lloh17:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x20
	bl	_max1363_initial_setup
	tbnz	w0, #31, LBB0_26
; %bb.14:
Lloh20:
	adrp	x2, _max1363_trigger_handler@GOTPAGE
Lloh21:
	ldr	x2, [x2, _max1363_trigger_handler@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x24, x0
	cbnz	w0, LBB0_29
; %bb.15:
	ldr	x8, [x22]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	x8, [x20, #24]
Lloh22:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
	ldr	x1, [x8]
Lloh24:
	ldr	w8, [x9]
Lloh25:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh28:
	adrp	x3, _max1363_event_handler@GOTPAGE
Lloh29:
	ldr	x3, [x3, _max1363_event_handler@GOTPAGEOFF]
Lloh30:
	adrp	x5, l_.str.2@PAGE
Lloh31:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x24, x0
	cbnz	w0, LBB0_35
LBB0_17:
	mov	x0, x19
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_34
; %bb.18:
	mov	w24, #0
	b	LBB0_33
LBB0_19:
	mov	x0, x25
	bl	_regulator_enable
	mov	x24, x0
	cbnz	w0, LBB0_29
; %bb.20:
	str	x25, [x20, #16]
	mov	x0, x25
	bl	_regulator_get_voltage
	cmp	w0, #0
	b.le	LBB0_27
; %bb.21:
	str	w0, [x20]
	b	LBB0_10
LBB0_22:
	ldr	w0, [x22, #16]
Lloh32:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	x0, LBB0_25
; %bb.23:
	ldr	x8, [x20, #32]
	ldr	w8, [x8, #4]
	cmp	w8, #8
	b.ne	LBB0_25
; %bb.24:
Lloh35:
	adrp	x8, _max1363_smbus_recv@GOTPAGE
Lloh36:
	ldr	x8, [x8, _max1363_smbus_recv@GOTPAGEOFF]
Lloh37:
	adrp	x9, _max1363_smbus_send@GOTPAGE
Lloh38:
	ldr	x9, [x9, _max1363_smbus_send@GOTPAGEOFF]
	b	LBB0_12
LBB0_25:
Lloh39:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh40:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
	mov	x24, x0
	ldr	x0, [x20, #16]
	cbnz	x0, LBB0_30
	b	LBB0_31
LBB0_27:
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_29:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_31
LBB0_30:
	bl	_regulator_disable
LBB0_31:
	ldr	x0, [x20, #8]
	bl	_regulator_disable
LBB0_32:
	mov	x0, x19
	bl	_iio_map_array_unregister
LBB0_33:
	mov	x0, x24
	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_34:
	mov	x24, x0
LBB0_35:
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
	ldr	x0, [x20, #16]
	cbnz	x0, LBB0_30
	b	LBB0_31
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

	.comm	_max1363_chip_info_tbl,8,3      ; @max1363_chip_info_tbl
l_.str.1:                               ; @.str.1
	.asciz	"vref"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.comm	_i2c_master_send,4,2            ; @i2c_master_send
	.comm	_i2c_master_recv,4,2            ; @i2c_master_recv
	.comm	_I2C_FUNC_SMBUS_BYTE,4,2        ; @I2C_FUNC_SMBUS_BYTE
	.comm	_max1363_smbus_send,4,2         ; @max1363_smbus_send
	.comm	_max1363_smbus_recv,4,2         ; @max1363_smbus_recv
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_max1363_trigger_handler,4,2    ; @max1363_trigger_handler
	.comm	_max1363_event_handler,4,2      ; @max1363_event_handler
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"max1363_event"

	.no_dead_strip	_max1363_probe
.subsections_via_symbols
