	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hts221_allocate_trigger        ## -- Begin function hts221_allocate_trigger
	.p2align	4, 0x90
_hts221_allocate_trigger:               ## @hts221_allocate_trigger
	.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	%rdi, %r13
	callq	_iio_priv_to_dev
	movq	%rax, %r14
	movq	8(%r13), %rax
	movq	8(%rax), %rbx
	movl	16(%r13), %edi
	callq	_irq_get_irq_data
	movl	%eax, %edi
	callq	_irqd_get_trigger_type
	movq	%rax, %r15
	addq	$-128, %rax
	cmpq	$4, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jae	LBB0_2
## %bb.1:
	leaq	L_switch.table.hts221_allocate_trigger(%rip), %rax
	movl	-512(%rax,%r15,4), %esi
	jmp	LBB0_3
LBB0_2:
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_dev_info
	movl	$128, %r15d
	xorl	%esi, %esi
LBB0_3:
	movl	24(%r13), %ebx
	movq	_HTS221_REG_DRDY_HL_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_HTS221_REG_DRDY_HL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r12d, %edi
	callq	_FIELD_PREP
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_13
## %bb.4:
	movq	8(%r13), %rax
	movq	(%rax), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	jne	LBB0_8
LBB0_6:
	xorl	%esi, %esi
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.7:
	cmpq	$0, (%rbx)
	je	LBB0_9
LBB0_8:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	movl	$1, %esi
LBB0_9:
	movl	24(%r13), %r14d
	movq	_HTS221_REG_DRDY_PP_OD_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_HTS221_REG_DRDY_PP_OD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_FIELD_PREP
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_13
## %bb.10:
	movq	8(%r13), %rdi
	movl	16(%r13), %esi
	movq	_hts221_trigger_handler_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orq	(%rax), %r15
	movl	20(%r13), %r9d
	movq	%r13, (%rsp)
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_devm_request_threaded_irq
	movq	8(%r13), %rdi
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movl	%eax, %ebx
	movl	16(%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_17
LBB0_13:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_devm_iio_trigger_alloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_iio_trigger_set_drvdata
	movq	(%r13), %rdi
	movq	_hts221_trigger_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rdi)
	movq	8(%r13), %rax
	movq	%rax, (%rdi)
	callq	_iio_trigger_get
	movl	%eax, (%rbx)
	movq	(%r13), %rsi
	movq	8(%r13), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_trigger_register      ## TAILCALL
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mode %lx unsupported, using IRQF_TRIGGER_RISING\n"

	.comm	_HTS221_REG_DRDY_HL_ADDR,4,2    ## @HTS221_REG_DRDY_HL_ADDR
	.comm	_HTS221_REG_DRDY_HL_MASK,4,2    ## @HTS221_REG_DRDY_HL_MASK
L_.str.1:                               ## @.str.1
	.asciz	"drive-open-drain"

	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_HTS221_REG_DRDY_PP_OD_ADDR,4,2 ## @HTS221_REG_DRDY_PP_OD_ADDR
	.comm	_HTS221_REG_DRDY_PP_OD_MASK,4,2 ## @HTS221_REG_DRDY_PP_OD_MASK
	.comm	_hts221_trigger_handler_thread,4,2 ## @hts221_trigger_handler_thread
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"failed to request trigger irq %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s-trigger"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hts221_trigger_ops,4,2         ## @hts221_trigger_ops
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.hts221_allocate_trigger
L_switch.table.hts221_allocate_trigger:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hts221_allocate_trigger        ; -- Begin function hts221_allocate_trigger
	.p2align	2
_hts221_allocate_trigger:               ; @hts221_allocate_trigger
	.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	x19, x0
	bl	_iio_priv_to_dev
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x22, [x8, #8]
	ldr	w0, [x19, #16]
	bl	_irq_get_irq_data
	bl	_irqd_get_trigger_type
	mov	x21, x0
	sub	x8, x0, #128
	cmp	x8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, l_switch.table.hts221_allocate_trigger@PAGE
Lloh1:
	add	x9, x9, l_switch.table.hts221_allocate_trigger@PAGEOFF
	ldr	w1, [x9, x8, lsl #2]
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_info
	mov	w1, #0
	mov	w21, #128
LBB0_3:
	ldr	w23, [x19, #24]
Lloh4:
	adrp	x8, _HTS221_REG_DRDY_HL_ADDR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HTS221_REG_DRDY_HL_ADDR@GOTPAGEOFF]
Lloh6:
	ldr	w24, [x8]
Lloh7:
	adrp	x8, _HTS221_REG_DRDY_HL_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HTS221_REG_DRDY_HL_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_FIELD_PREP
	mov	x3, x0
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_13
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x23, [x8]
	cbz	x22, LBB0_6
; %bb.5:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbnz	x0, LBB0_8
LBB0_6:
	cbz	x23, LBB0_9
; %bb.7:
	ldr	x8, [x23]
	cbz	x8, LBB0_9
LBB0_8:
Lloh12:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	orr	x21, x8, x21
	mov	w1, #1
	b	LBB0_10
LBB0_9:
	mov	w1, #0
LBB0_10:
	ldr	w22, [x19, #24]
Lloh15:
	adrp	x8, _HTS221_REG_DRDY_PP_OD_ADDR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HTS221_REG_DRDY_PP_OD_ADDR@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
Lloh18:
	adrp	x8, _HTS221_REG_DRDY_PP_OD_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HTS221_REG_DRDY_PP_OD_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_FIELD_PREP
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_13
; %bb.11:
	ldr	x0, [x19, #8]
Lloh21:
	adrp	x8, _hts221_trigger_handler_thread@GOTPAGE
Lloh22:
	ldr	x8, [x8, _hts221_trigger_handler_thread@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
Lloh24:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	orr	x4, x8, x21
	ldp	w1, w5, [x19, #16]
	mov	x2, #0
	mov	x6, x19
	bl	_devm_request_threaded_irq
	mov	x23, x0
	ldr	x0, [x19, #8]
	cbz	w23, LBB0_15
; %bb.12:
	ldr	w2, [x19, #16]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_14
LBB0_13:
	mov	x23, x0
LBB0_14:
	mov	x0, x23
	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_15:
	ldr	w2, [x20, #4]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_devm_iio_trigger_alloc
	str	x0, [x19]
	cbz	x0, LBB0_17
; %bb.16:
	mov	x1, x20
	bl	_iio_trigger_set_drvdata
Lloh31:
	adrp	x8, _hts221_trigger_ops@GOTPAGE
Lloh32:
	ldr	x8, [x8, _hts221_trigger_ops@GOTPAGEOFF]
	ldp	x0, x9, [x19]
	stp	x9, x8, [x0]
	bl	_iio_trigger_get
	str	w0, [x20]
	ldp	x1, x0, [x19]
	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	_devm_iio_trigger_register
LBB0_17:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mode %lx unsupported, using IRQF_TRIGGER_RISING\n"

	.comm	_HTS221_REG_DRDY_HL_ADDR,4,2    ; @HTS221_REG_DRDY_HL_ADDR
	.comm	_HTS221_REG_DRDY_HL_MASK,4,2    ; @HTS221_REG_DRDY_HL_MASK
l_.str.1:                               ; @.str.1
	.asciz	"drive-open-drain"

	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_HTS221_REG_DRDY_PP_OD_ADDR,4,2 ; @HTS221_REG_DRDY_PP_OD_ADDR
	.comm	_HTS221_REG_DRDY_PP_OD_MASK,4,2 ; @HTS221_REG_DRDY_PP_OD_MASK
	.comm	_hts221_trigger_handler_thread,4,2 ; @hts221_trigger_handler_thread
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"failed to request trigger irq %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s-trigger"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hts221_trigger_ops,4,2         ; @hts221_trigger_ops
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.hts221_allocate_trigger
l_switch.table.hts221_allocate_trigger:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1

.subsections_via_symbols
